-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
68 lines (55 loc) · 1.82 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, minimum-scale=1, initial-scale=1, user-scalable=yes">
<title>Unit Converter</title>
<meta name="description" content="Unit Converter is a really usefull app that lets you easily convert from various units into lots of others.">
<base href="/">
<!-- See https://goo.gl/OOhYW5 -->
<link rel="manifest" href="/manifest.json">
<script>
/**
* [polymer-root-path]
*
* By default, we set `Polymer.rootPath` to the server root path (`/`).
* Leave this line unchanged if you intend to serve your app from the root
* path (e.g., with URLs like `my.domain/` and `my.domain/view1`).
*
* If you intend to serve your app from a non-root path (e.g., with URLs
* like `my.domain/my-app/` and `my.domain/my-app/view1`), edit this line
* to indicate the path from which you'll be serving, including leading
* and trailing slashes (e.g., `/my-app/`).
*/
window.Polymer = {rootPath: '/'};
// Load and register pre-caching Service Worker
if ('serviceWorker' in navigator) {
window.addEventListener('load', function() {
navigator.serviceWorker.register('service-worker.js', {
scope: Polymer.rootPath,
});
});
}
</script>
<script src="/bower_components/webcomponentsjs/webcomponents-loader.js"></script>
<script>
if (!window.HTMLImports) {
HTMLImports = {};
}
</script>
<link rel="import" href="/src/unit-converter-app/unit-converter-app.html">
<style>
body {
margin: 0;
background-color: #f1f1f1;
font-family: sans-serif;
}
</style>
</head>
<body>
<unit-converter-app></unit-converter-app>
<noscript>
Please enable JavaScript to view this website.
</noscript>
</body>
</html>