-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathindex.html
181 lines (168 loc) · 6.37 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
<!doctype html>
<html lang="en">
<head>
<title>Swarm City</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, minimum-scale=1, initial-scale=1, user-scalable=yes">
<meta name="description" content="Swarm City is the first truly decentralized peer to peer sharing economy, enabled by the SWT token, running on the Ethereum blockchain.">
<meta name="theme-color" content="#ffffff"/>
<!-- Safari on iOS -->
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<meta name="apple-mobile-web-app-title" content="Swarm City">
<!-- Chrome on Android -->
<meta name="mobile-web-app-capable" content="yes">
<meta name="application-name" content="Swarm City">
<!-- iOS -->
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="apple-mobile-web-app-title" content="Swarm City">
<!-- home screen icons -->
<link rel="icon" sizes="192x192" href="images/icons/icon-192x192.png">
<link rel="apple-touch-icon" href="images/icons/icon-192x192.png">
<link rel="apple-touch-icon" sizes="152x152" href="images/icons/icon-152x152.png">
<link rel="apple-touch-icon" sizes="180x180" href="images/icons/icon-180x180.png">
<link rel="apple-touch-icon" sizes="167x167" href="images/icons/icon-157x167.png">
<!-- manifest -->
<link rel="manifest" href="./manifest.json">
<!-- app -->
<link rel="import" href="./src/sc-enter/sc-enter.html" async>
<!-- favicon -->
<link rel="icon" href="./images/favicon.ico">
<!-- msapp -->
<meta name="msapplication-TileImage" content="/assets/manifest/icon-144x144.png">
<meta name="msapplication-TileColor" content="#d72053">
<meta name="msapplication-tap-highlight" content="no">
<meta name="msapplication-starturl" content="/">
<!-- open graph -->
<meta name="twitter:card" value="summary">
<meta property="og:title" content="Swarm City" />
<meta property="og:type" content="article" />
<meta property="og:url" content="https://www.swarm.city/" />
<meta property="og:image" content="https://www.swarm.city/images/referrer.jpg" />
<meta property="og:description" content="Swarm City is the first truly decentralized peer to peer sharing economy, enabled by the SWT token, running on the Ethereum blockchain." />
<script>
window.Polymer = {
dom: 'shadow',
lazyRegister: true,
};
(function() {
'use strict';
var onload = function() {
if (!window.HTMLImports) {
document.dispatchEvent(
new CustomEvent('WebComponentsReady', {bubbles: true})
);
}
};
var webComponentsSupported = (
'registerElement' in document
&& 'import' in document.createElement('link')
&& 'content' in document.createElement('template')
);
if (!webComponentsSupported) {
var script = document.createElement('script');
script.async = true;
script.src = './bower_components/webcomponentsjs/webcomponents-lite.min.js';
script.onload = onload;
document.head.appendChild(script);
} else {
onload();
}
})();
if ('serviceWorker' in navigator) {
window.addEventListener('load', function() {
navigator.serviceWorker.register('./service-worker.js');
});
}
</script>
<script>
// disable pull to refresh && overscroll glow
window.addEventListener('load', function() {
var preventPullToRefreshCheckbox = true;
var preventOverscrollGlowCheckbox = false;
var preventScrollCheckbox = false;
var maybePreventPullToRefresh = false;
var lastTouchY = 0;
var touchstartHandler = function(e) {
if (e.touches.length != 1) return;
lastTouchY = e.touches[0].clientY;
// Pull-to-refresh will only trigger if the scroll begins when the
// document's Y offset is zero.
maybePreventPullToRefresh =
preventPullToRefreshCheckbox &&
window.pageYOffset == 0;
}
var touchmoveHandler = function(e) {
var touchY = e.touches[0].clientY;
var touchYDelta = touchY - lastTouchY;
lastTouchY = touchY;
if (maybePreventPullToRefresh) {
// To suppress pull-to-refresh it is sufficient to preventDefault the
// first overscrolling touchmove.
maybePreventPullToRefresh = false;
if (touchYDelta > 0) {
e.preventDefault();
return;
}
}
if (preventScrollCheckbox) {
e.preventDefault();
return;
}
if (preventOverscrollGlowCheckbox) {
if (window.pageYOffset == 0 && touchYDelta > 0) {
e.preventDefault();
return;
}
}
}
document.addEventListener('touchstart', touchstartHandler, {
passive: false
});
document.addEventListener('touchmove', touchmoveHandler, {
passive: false
});
});
</script>
<style>
body {
margin: 0px;
padding: 0px;
background-color: #F4F4F4;
min-height: 100vh;
}
::-webkit-scrollbar {
display: none;
}
@font-face {
font-family: montserratultralight;
src: url(bower_components/sc-style/sc-fonts/Montserrat-UltraLight.otf);
}
@font-face {
font-family: montserrathairline;
src: url(bower_components/sc-style/sc-fonts/Montserrat-Hairline.otf);
}
@font-face {
font-family: montserratlight;
src: url(bower_components/sc-style/sc-fonts/Montserrat-Light.otf);
}
@font-face {
font-family: montserrat;
src: url(bower_components/sc-style/sc-fonts/Montserrat-Regular.otf);
}
@font-face {
font-family: montserratsemibold;
src: url(bower_components/sc-style/sc-fonts/Montserrat-SemiBold.otf);
}
@font-face {
font-family: montserratbold;
src: url(bower_components/sc-style/sc-fonts/Montserrat-Bold.otf);
}
</style>
<noscript>Welcome to Swarm City Boardwalk, please enable JavaScript</noscript>
</head>
<body>
<sc-enter></sc-enter>
</body>
</html>