changeset 999:797fe390bcf0

fix arduinoNode for safari Ignore-this: dca839ff96575cb154d6ab0b0008196d darcs-hash:20150830184637-312f9-45ac1fc7598b8a8ccf500d84494a1a060917f7ec
author drewp <drewp@bigasterisk.com>
date Sun, 30 Aug 2015 11:46:37 -0700
parents ecb12305d5ca
children df5a40967a2f
files service/arduinoNode/static/index.html
diffstat 1 files changed, 31 insertions(+), 24 deletions(-) [+]
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>