| 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 <!-- Setup Polymer --> | 12 <!-- Setup Polymer --> |
| 13 <script src="inc/bower_components/webcomponentsjs/webcomponents-lite.min.js"> | 13 <script src="inc/bower_components/webcomponentsjs/webcomponents-lite.min.js"> |
| 14 <script> | |
| 15 window.Polymer = window.Polymer || {}; | |
| 16 window.Polymer.dom = 'shadow'; | |
| 17 </script> | |
| 18 | 14 |
| 19 <!-- Because this project uses vulcanize this should be your only html import | 15 <!-- Because this project uses vulcanize this should be your only html import |
| 20 in this file. All other imports should go in elements.html --> | 16 in this file. All other imports should go in elements.html --> |
| 21 <link rel="import" href="elements/elements.html"> | 17 <link rel="import" href="elements/elements.html"> |
| 22 | 18 |
| 23 <link rel="stylesheet" href="styles/main.css"> | 19 <link rel="stylesheet" href="styles/main.css"> |
| 24 | 20 |
| 25 <!-- For shared styles, shared-styles.html import in elements.html --> | 21 <!-- For shared styles, shared-styles.html import in elements.html --> |
| 26 <style is="custom-style" include="shared-styles"></style> | 22 <style is="custom-style" include="shared-styles"></style> |
| 27 </head> | 23 </head> |
| (...skipping 10 matching lines...) Expand all Loading... |
| 38 | 34 |
| 39 <script> | 35 <script> |
| 40 // Grab a reference to our auto-binding template | 36 // Grab a reference to our auto-binding template |
| 41 // and give it some initial binding values | 37 // and give it some initial binding values |
| 42 // Learn more about auto-binding templates at http://goo.gl/Dx1u2g | 38 // Learn more about auto-binding templates at http://goo.gl/Dx1u2g |
| 43 var app = document.querySelector('#app'); | 39 var app = document.querySelector('#app'); |
| 44 | 40 |
| 45 // Sets app default base URL. | 41 // Sets app default base URL. |
| 46 app.baseUrl = window.location.pathname; | 42 app.baseUrl = window.location.pathname; |
| 47 | 43 |
| 48 // Set up our default LogDog pRPC host. | 44 // Set up our default LogDog host. |
| 49 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 } |
| 50 </script> | 50 </script> |
| 51 | 51 |
| 52 </body> | 52 </body> |
| 53 </html> | 53 </html> |
| OLD | NEW |