| OLD | NEW |
| 1 <!-- | 1 <!-- |
| 2 Copyright 2016 The LUCI Authors. All rights reserved. | 2 Copyright 2016 The LUCI Authors. All rights reserved. |
| 3 Use of this source code is governed under the Apache License, Version 2.0 | 3 Use of this source code is governed under the Apache License, Version 2.0 |
| 4 that can be found in the LICENSE file. | 4 that can be found in the LICENSE file. |
| 5 --> | 5 --> |
| 6 | 6 |
| 7 <html> | 7 <html> |
| 8 <head> | 8 <head> |
| 9 <!-- Chrome for Android theme color --> | 9 <!-- Chrome for Android theme color --> |
| 10 <meta name="theme-color" content="#2E3AA1"> | 10 <meta name="theme-color" content="#2E3AA1"> |
| 11 | 11 |
| 12 <title>LogDog Viewer</title> | 12 <title>LogDog Viewer</title> |
| 13 | 13 |
| 14 <!-- Setup Polymer --> | 14 <!-- Setup Polymer --> |
| 15 <script src="inc/bower_components/webcomponentsjs/webcomponents-lite.min.js"> | 15 <script src="inc/bower_components/webcomponentsjs/webcomponents-lite.min.js"> |
| 16 <script> | |
| 17 window.Polymer = window.Polymer || {}; | |
| 18 window.Polymer.dom = 'shadow'; | |
| 19 </script> | 16 </script> |
| 20 | 17 |
| 21 <!-- Because this project uses vulcanize this should be your only html import | 18 <!-- Because this project uses vulcanize this should be your only html import |
| 22 in this file. All other imports should go in elements.html --> | 19 in this file. All other imports should go in elements.html --> |
| 23 <link rel="import" href="elements/elements.html"> | 20 <link rel="import" href="elements/elements.html"> |
| 24 | 21 |
| 25 <link rel="stylesheet" href="styles/main.css"> | 22 <link rel="stylesheet" href="styles/main.css"> |
| 26 | 23 |
| 27 <!-- For shared styles, shared-styles.html import in elements.html --> | 24 <!-- For shared styles, shared-styles.html import in elements.html --> |
| 28 <style is="custom-style" include="shared-styles"></style> | 25 <style is="custom-style" include="shared-styles"></style> |
| 29 </head> | 26 </head> |
| 30 | 27 |
| 31 <body unresolved> | 28 <body unresolved> |
| 32 | 29 |
| 33 <span id="browser-sync-binding"></span> | 30 <span id="browser-sync-binding"></span> |
| 34 | 31 |
| 35 <!-- Main application script --> | 32 <!-- Main application script --> |
| 36 <logdog-view | 33 <logdog-view |
| 37 id="app" | 34 id="app" |
| 38 client-id="446450136466-hdluvt4ofonh0q65pphab8egl59th2of.apps.googleuserconten
t.com"> | 35 client-id="446450136466-hdluvt4ofonh0q65pphab8egl59th2of.apps.googleuserconten
t.com"> |
| 39 </logdog-view> | 36 </logdog-view> |
| 40 | 37 |
| 41 <script> | 38 <script> |
| 42 // Grab a reference to our auto-binding template | 39 // Grab a reference to our auto-binding template |
| 43 // and give it some initial binding values | 40 // and give it some initial binding values |
| 44 // Learn more about auto-binding templates at http://goo.gl/Dx1u2g | 41 // Learn more about auto-binding templates at http://goo.gl/Dx1u2g |
| 45 var app = document.querySelector('#app'); | 42 var app = document.querySelector('#app'); |
| 46 | 43 |
| 47 // Set up our default LogDog pRPC host. | 44 // Set up our default LogDog host. |
| 48 app.host = logdog.host; | 45 app.host = window.location.hostname; |
| 46 if (app.host === "localhost") { |
| 47 // Running locally. Bind to our development instance. |
| 48 app.host = "luci-logdog-dev.appspot.com"; |
| 49 } |
| 49 </script> | 50 </script> |
| 50 | 51 |
| 51 </body> | 52 </body> |
| 52 </html> | 53 </html> |
| OLD | NEW |