-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
229 lines (191 loc) · 6.79 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
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
<!doctype html>
<html lang="en">
<head>
<title>ants - Bordeaux 3D</title>
<meta charset="utf-8">
<link rel="shortcut icon" href="/favicon.png" type="image/x-icon">
<link rel="icon" href="/favicon.ico" type="image/x-icon">
<style>
/*
http://www.paulirish.com/2012/box-sizing-border-box-ftw/
*/
*, *:before, *:after {
box-sizing: border-box;
/* if you really care about older browsers, add prefixed versions at your own risks */
/* commented out because of dat.gui*/
/*overflow: auto; /* http://bocoup.com/weblog/new-overflow-default/ */
}
/*
Repeating the background mostly makes sense in the <body>. Otherwise, people usually want the image and preferably its center (not the top-right corner)
*/
*:not(body) {
background-repeat: no-repeat;
background-position: center center;
background-size: cover;
}
/*
Makes the hidden attribute works even when an element is styled display: flex
http://lists.whatwg.org/pipermail/whatwg-whatwg.org/2014-May/254198.html
*/
[hidden] {
display: none !important;
}
html, body {
padding: 0;
margin: 0;
}
body{
width: 100vw;
height: 100vh;
overflow: hidden;
position: relative;
}
/*
In applications, there can be lists but HTML lists have bullet points and a bunch of useless styling attributes
*/
ul, ol, menu {
margin: 0;
padding: 0;
}
ul, menu {
list-style: none;
}
li {
margin: 0;
padding: 0;
}
/* empty divs being invisible is an annoying default */
div:empty{
width: 300px;
height: 100px;
background-color: rgb(224, 174, 224);
}
/*
fairly classic thing to do
*/
.table-layout {
display: table;
}
.table-layout > *, .table-row-layout {
display: table-row;
}
.table-layout > * > *, table-row-layout > * {
display: table-cell;
vertical-align: top;
}
/* Splash-screen */
#splash-screen {
display: block;
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgb(50, 50, 50);
opacity: 0.9;
z-index: 1;
color: white;
font-size: 1em;
font-family: 'Raleway', sans-serif;
font-weight: 300;
transition: opacity 1s;
}
#instructions{
width: 40%;
margin: 13% auto;
text-align: justify;
}
p {
font-size: 0.8em;
}
h1 {
text-shadow: 0 0 10px #DBB460;
text-align: center;
font-size: 2.5em;
font-weight: 300;
color: white;
}
h2 {
font-size: 1em;
font-weight: 300;
text-decoration: underline;
}
strong{
font-weight: 300;
color: #DBB460;
}
.centered{
text-align: center;
font-size: 1.2em;
}
#intro{
font-size: 1.2;
}
#enter {
text-shadow: 0 0 5px #DBB460;
}
#view{
width: 100%;
height: 100%;
}
* {
border-collapse: collapse;
}
</style>
<!-- used for skysphere -->
<script type="application/x-glsl" id="sky-vertex">
varying vec2 vUV;
void main() {
vUV = uv;
vec4 pos = vec4(position, 1.0);
gl_Position = projectionMatrix * modelViewMatrix * pos;
}
</script>
<script type="application/x-glsl" id="sky-fragment">
uniform sampler2D texture;
varying vec2 vUV;
void main() {
vec4 sample = texture2D(texture, vUV);
gl_FragColor = vec4(sample.xyz, sample.w);
}
</script>
<script src="polyfills/harmony-collections.js"></script>
<script defer src="app.js"></script>
<script id="metadata" type="application/json"></script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-57145056-1', 'auto');
ga('send', 'pageview');
</script>
</head>
<body>
<div id="splash-screen">
<a href="https://github.com/anthill/city-core"><img style="position: absolute; top: 0; left: 0; border: 0;" src="https://camo.githubusercontent.com/c6286ade715e9bea433b4705870de482a654f78a/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f6c6566745f77686974655f6666666666662e706e67" alt="Fork me on GitHub" data-canonical-src="https://s3.amazonaws.com/github/ribbons/forkme_left_white_ffffff.png"></a>
<section id="instructions">
<h1>Welcome to CITY !</h1>
<p id="intro" class="centered">
You've reached Ants' <strong>C</strong>ollaborative <strong>I</strong>nterface <strong>T</strong>ool (<strong>Y</strong>eah!) for the 3D visualization of cities through browsers.<br/>
This is still a work in progress. Please feel free to contribute !
</p>
<br/>
<h2> Sky View Controls </h2>
<p> Move your <strong>mouse</strong> to go left/right/up/down.<br/>
<strong>Scroll</strong> to zoom in and out. <br/>
<strong>Click</strong> a spot and you'll enter First Person View.
</p>
<h2> First Person Controls </h2>
<p> Move your <strong>mouse</strong> to look around.<br/>
Use <strong>W-A-S-D</strong> keys to move (or Z-Q-S-D for AZERTY keyboards). <br/>
<strong>Double escape</strong> to switch back to Sky View.
</p>
<br/>
<br/>
<p id="enter" class="centered"> Now you're all set. Click to enter CITY ! </p>
</section>
</div>
<div id="view"></div>
</body>
</html>