-
Notifications
You must be signed in to change notification settings - Fork 1
/
index - FPS.html
295 lines (268 loc) · 13.6 KB
/
index - FPS.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
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
<!DOCTYPE html>
<html>
<head>
<title>Block42 World</title>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.2/css/bootstrap.min.css" integrity="sha384-Smlep5jCw/wG7hdkwQ/Z5nLIefveQRIY9nfy6xoR1uRYBtpZgI6339F5dgvm/e9B"
crossorigin="anonymous">
<!-- Font Awesome -->
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.1.1/css/all.css" integrity="sha384-O8whS3fhG2OnA5Kas0Y9l3cfpmYjapjI0E4theH4iuMD+pLhbf6JI0jIMfYcK3yZ" crossorigin="anonymous">
<link rel="stylesheet" type="text/css" href="css/main.css">
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.2/js/bootstrap.min.js"></script>
<script src="https://cdn.rawgit.com/ethereum/web3.js/1.0/dist/web3.min.js"></script>
<script src="js/threejs/three.js"></script>
<!--offical library-->
<script src="js/threejs/threejsplugin/Projector.js"></script>
<script src="js/threejs/threejsplugin/CanvasRenderer.js"></script>
<script src="js/threejs/threejsplugin/stats.min.js"></script>
<script src="js/threejs/threejsplugin/FBXLoader.js"></script>
<script src="js/threejs/threejsplugin/OBJLoader.js"></script>
<script src="js/threejs/threejsplugin/MTLLoader.js"></script>
<script src="js/threejs/threejsplugin/OrbitControls.js"></script>
<script src="js/threejs/threejsplugin/FirstPersonControls.js"></script>
<script src="js/threejs/threejsplugin/dat.gui.min.js"></script>
<script src="js/threejs/threejsplugin/inflate.min.js"></script>
<script src="js/threejs/threejsplugin/Sky.js"></script>
<!--outline-->
<script src="js/threejs/threejsplugin/Detector.js"></script>
<script src="js/threejs/threejsplugin/CopyShader.js"></script>
<script src="js/threejs/threejsplugin/FXAAShader.js"></script>
<script src="js/threejs/threejsplugin/EffectComposer.js"></script>
<script src="js/threejs/threejsplugin/RenderPass.js"></script>
<script src="js/threejs/threejsplugin/ShaderPass.js"></script>
<script src="js/threejs/threejsplugin/OutlinePass.js"></script>
<!--the library we write-->
<script src="js/Block42.js"></script>
<script src="js/block42/ThreejsUtility.js"></script>
<script src="js/block42/customOutline.js"></script>
<script src="js/block42/Index.js"></script>
<script src="js/block42/ObjLoaderUtils.js"></script>
<script src="js/block42/ModelBuilder.js"></script>
<script src="js/block42/Player.js"></script>
<script src="js/block42/Land.js"></script>
<script src="js/block42/UIManager.js"></script>
<script src="js/block42/customFPS3.js"></script>
<script src="js/bundle.js"></script>
<!--vox.js-->
<script src="js/voxjs/vox.min.js"></script>
<script src="js/mikolalysenko(optMesh)/monotone.js" type="text/javascript"></script>
</head>
<body>
<nav class="navbar fixed-top navbar-expand-lg navbar-dark bg-dark">
<a class="navbar-brand" href="https://www.block42.world/">
<img src="img/logo.png" width="35" height="35" alt="Block42">
</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent"
aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav mr-auto ">
<li class="nav-item active">
<a class="nav-link" href="#">Main
<span class="sr-only">(current)</span>
</a>
</li>
<li class="nav-item">
<a class="nav-link" id="build-tab" href="#">Build</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Buy</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Play</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#" onclick="showElementById('news-popup')">News</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#" onclick="showElementById('land-info')">Info</a>
</li>
</ul>
</div>
</nav>
<!-- Alerts-->
<div id="alerts">
<div id="no-metamask-alert" class="alert alert-warning alert-dismissible mb-0" role="alert" style="display:none">
<span class="close" data-dismiss="alert" aria-label="close">×</span>
Install and login
<strong>
<a href="https://metamask.io/" target="_blank">MetaMask</a>
</strong>
to enable buy / sell lands.
</div>
<div id="no-mainnet-alert" class="alert alert-danger alert-dismissible mb-0" role="alert" style="display:none">
<span class="close" data-dismiss="alert" aria-label="close">×</span>
<span id="no-mainnet-alert-text"></span>
</div>
</div>
<!-- Land info box -->
<div class="right-center" id="land-info" style="display: none">
<button type="button" class="close" aria-label="Close" onclick="hideElementById('land-info')">
<span aria-hidden="true">×</span>
</button>
<div>
<h2 class="center" id="plotname">PLOTNAME</h4>
</div>
<div>
<p class="center">Owned by:
<span><img src="img/default-user.png" alt="John" class="inline-icon"></span>
</p>
<div class="grey-box">
<div class="card-header">
<h6 class="my-0 font-weight-normal"><Transaction History></h4>
</div>
<table class="table">
<tbody>
<tr>
<td>100,000,000</td>
<td>1 month ago</td>
</tr>
<tr>
<td>75,000</td>
<td>5 months ago</td>
</tr>
<tr>
<td>1,000</td>
<td>1 year ago</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="text-center">
<a href="#"><p class="center">View Full History</p></a>
<img src="img/money.png" alt="$" width="35px" height="35px" style="vertical-align: middle; max-height: 35px; max-width: 35px;">
<h2 class="inline-header text-primary text-center align-middle">9,999</span>
</div>
<div class="button">
<button type="button" class="btn btn-lg btn-block btn-dark">Buy</button>
<form action="./editor.html" method="post" id="editForm">
<input type="text" name="fileName" id="fileName">
</form>
<button type="button" class="btn btn-lg btn-block btn-dark" onclick="document.getElementById('editForm').submit();">Edit</button>
</div>
</div>
<div class="news-popup" id="news-popup" style="display: none">
<button type="button" class="close" aria-label="Close" onclick="hideElementById('news-popup')">
<span aria-hidden="true">×</span>
</button>
<div class="single_left_coloum_wrapper">
<h2 class="title">From Around The World</h2>
<a class="more" href="#">more</a>
<div class="single_left_coloum floatleft">
<img src="img/news1.jpg" alt="" class="news"/>
<h3 class="news_coloum">Bitcoin's Price Sets Sights on $8K</h3>
<p>Bitcoin's price continues to hold ground amid a market sell-off, with growing momentum building to take out its next target of $8,000.</p>
<a class="readmore" target="_blank" href="https://www.coindesk.com/bitcoins-price-sets-sights-on-8k-after-sunday-sell-off/">read more</a>
</div>
<div class="single_left_coloum floatleft">
<img src="img/single_featured.png" alt="" class="news"/>
<h3 class="news_coloum">Bitcoin's Future Looks Bright for the First Time in 2018</h3>
<p>Catalysts can lead any currency higher. However, in the cryptocurrency market, Bitcoin is the peg for other currencies when it comes to trading. BTC also dominates the market cap of the total cryptocurrency space while being the only cryptocurrency futures are traded for through major commodity exchanges like the CBOE. This week saw Bitcoin hover in the low $6,000 range before mysteriously popping to above $7,500.</p>
<a class="readmore" target="_blank" href="https://bitcoinist.com/bitcoins-future-looks-bright-for-the-first-time-in-2018/">read more</a>
</div>
<div class="single_left_coloum floatleft">
<img src="img/news2.jpg" alt="" class="news"/>
<h3 class="news_coloum">Is This Bitcoin Rally For Real?</h3>
<p>I have been bearish on cryptocurrencies for a number of months now. I was feeling good about that view as Bitcoin flirted with breaking $6,000 again as recently as July 12th. Then it took off. It went from $6,185, to $6,662, to $7,314 in just 2 days (according to Bloomberg data).</p>
<a class="readmore" target="_blank" href="https://www.forbes.com/sites/petertchir/2018/07/22/is-this-bitcoin-rally-for-real/#774e38bd3b3b">read more</a>
</div>
</div>
</div>
<div class="control-type-box btn-group btn-group-toggle" data-toggle="buttons">
<label class="btn btn-secondary active">
<input type="radio" name="options" id="fly-control" autocomplete="off" checked><i class="fa fa-plane" aria-hidden="true"></i>
</label>
<label class="btn btn-secondary">
<input type="radio" name="options" id="fps-control" autocomplete="off"><i class="fa fa-user" aria-hidden="true"></i>
</label>
<label class="btn btn-secondary">
<input type="radio" name="options" id="orbit-control" autocomplete="off"><i class="fa fa-globe" aria-hidden="true"></i>
</label>
</div>
<div id="price-bar">
<div id="scroll-content">
<div class="price-block">
<span id="currency0" class="price-label">
<i class="fab fa-btc"></i>
</span>
<span id="currency0-price" class="price-tag red">+2.59%</span>
</div>
<div class="price-block">
<span id="currency1" class="price-label">
<i class="fab fa-ethereum"></i>
</span>
<span id="currency1-price" class="price-tag green">-1.34%</span>
</div>
<div class="price-block">
<span id="currency2" class="price-label">
</span>
<span id="currency2-price" class="price-tag green">-2.34%</span>
</div>
<div class="price-block">
<span id="currency3" class="price-label">
</span>
<span id="currency3-price" class="price-tag red">+9.86%</span>
</div>
<div class="price-block">
<span id="currency4" class="price-label">
</span>
<span id="currency4-price" class="price-tag red">+99.86%</span>
</div>
<div class="price-block">
<span id="currency5" class="price-label">
</span>
<span id="currency5-price" class="price-tag green">-1.62%</span>
</div>
<div class="price-block">
<span id="currency6" class="price-label">
</span>
<span id="currency6-price" class="price-tag red">+0.59%</span>
</div>
<div class="price-block">
<span id="currency7" class="price-label">
</span>
<span id="currency7-price" class="price-tag red">+6.22%</span>
</div>
<div class="price-block">
<span id="currency8" class="price-label">
</span>
<span id="currency8-price" class="price-tag red">+6.22%</span>
</div>
<div class="price-block">
<span id="currency9" class="price-label">
</span>
<span id="currency9-price" class="price-tag red">+6.22%</span>
</div>
</div>
<div id="scroll-content-copy">
</div>
</div>
<!-- Footer -->
<footer class="page-footer font-small bg-dark fixed-bottom">
<!-- Copyright -->
<div class="footer-copyright text-center py-1">© 2018 Copyright:
<a target="_blank" href="https://www.block42.world/"><span class="text-white pre"> block42.com</span></a>
</div>
<!-- Copyright -->
</footer>
<!-- Footer -->
<script type="text/javascript">
ThreejsUtility.init();
//ModelBuilder.build();
ModelBuilder.buildFromVox(Land.lands)
player = new Player(camera,ControlTypeEnum.FPS);
player.Initialize();
//var orbitControls = new THREE.OrbitControls(camera);
//Set our initial position
camera.position.set(210,479,1039);
//orbitControls.target.set(404,300,900);
//orbitControls.maxPolarAngle = (Math.PI / 2)
</script>
</body>
</html>