-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
73 lines (51 loc) · 1.58 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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script src="https://raw.github.com/mrdoob/three.js/master/build/Three.js"></script>
<!-- <script src="https://raw.github.com/feesta/GMLify/master/gmlify_3drender.js"></script> -->
<script src="./gmlify_3drender.js"></script>
<style>
body {
background:#eee;
padding:0;
margin:0;
overflow:hidden;
}
</style>
</head>
<body>
<div id='main'></div>
<script>
$(function(){
$("<div id='gmlify_loader'>Downloading GML... please wait.</div>").css({
position:'fixed',
left:0,
top:0,
'font-size':18,
padding:10,
'font-family':'Helvetica',
'font-weight':'bold',
color:'black',
'background-color':'white',
'z-index':999999999999
}).appendTo("body");
continuouslyGetJSON();
});
function continuouslyGetJSON() {
getGMLJSON(function(){
$("#gmlify_loader").html("Rendering GML.");
continuouslyRender();
});
}
function continuouslyRender() {
renderGML(function(){
$("#gmlify_loader").html("Downloading GML... please wait.");
continuouslyGetJSON();
});
}
</script>
</body>
</html>