Mercurial > code > home > repos > homeauto
diff service/arduinoNode/static/index.html @ 194:35e07a9f3287
fix arduinoNode for safari
Ignore-this: dca839ff96575cb154d6ab0b0008196d
author | drewp@bigasterisk.com |
---|---|
date | Sun, 30 Aug 2015 11:46:37 -0700 |
parents | 960b3b4cdd29 |
children | 06795f84fe29 |
line wrap: on
line diff
--- a/service/arduinoNode/static/index.html Sun Aug 30 01:19:57 2015 -0700 +++ b/service/arduinoNode/static/index.html Sun Aug 30 11:46:37 2015 -0700 @@ -2,6 +2,7 @@ <html> <head> <title>arduinoNode</title> + <meta name=viewport content="width=device-width, initial-scale=1"> <meta charset="utf-8" /> <script src="/lib/polymer/1.0.9/webcomponentsjs/webcomponents.min.js"></script> <link rel="import" href="/lib/polymer/1.0.9/polymer/polymer.html"> @@ -36,10 +37,12 @@ <a href$="{{href}}">{{compactUri(href)}}</a> </template> <script> - Polymer({ - is: 'linked-uri', - properties: { href: { notify: true } }, - behaviors: [BigastUri] + HTMLImports.whenReady(function () { + Polymer({ + is: 'linked-uri', + properties: { href: { notify: true } }, + behaviors: [BigastUri] + }); }); </script> </dom-module> @@ -59,23 +62,25 @@ </template> <script> - Polymer({ - is: 'watched-subgraph', - properties: { - graph: { notify: true }, - out: { notify: true }, - pred: { notify: true }, - subj: { notify: true } - }, - behaviors: [BigastUri], - formatted: function (out) { - var obj = out[this.compactUri(this.pred)]; - if (typeof obj == 'string') { - return this.compactUri(obj); - } else { - return obj['@value']; + HTMLImports.whenReady(function () { + Polymer({ + is: 'watched-subgraph', + properties: { + graph: { notify: true }, + out: { notify: true }, + pred: { notify: true }, + subj: { notify: true } + }, + behaviors: [BigastUri], + formatted: function (out) { + var obj = out[this.compactUri(this.pred)]; + if (typeof obj == 'string') { + return this.compactUri(obj); + } else { + return obj['@value']; + } } - } + }); }); </script> </dom-module> @@ -143,12 +148,14 @@ </template> </template> <script> - Polymer({ - is: 'arduinonode-boards', - behaviors: [BigastUri] + HTMLImports.whenReady(function () { + Polymer({ + is: 'arduinonode-boards', + behaviors: [BigastUri] + }); }); </script> </dom-module> - <arduinonode-boards></arduinonode-boards> + <arduinonode-boards></arduinonode-boards> </body> </html>