forked from va3c/viewer
-
Notifications
You must be signed in to change notification settings - Fork 31
/
Copy pathindex.html
89 lines (78 loc) · 3.57 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
<!--
//The MIT License (MIT)
//
//Copyright (c) 2015 Thornton Tomasetti, Inc.
//
//Permission is hereby granted, free of charge, to any person obtaining a copy
//of this software and associated documentation files (the "Software"), to deal
//in the Software without restriction, including without limitation the rights
//to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
//copies of the Software, and to permit persons to whom the Software is
//furnished to do so, subject to the following conditions:
//
//The above copyright notice and this permission notice shall be included in
//all copies or substantial portions of the Software.
//
//THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
//IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
//FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
//AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
//LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
//OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
//THE SOFTWARE.
-->
<!DOCTYPE html>
<html>
<head>
<title>Spectacles</title>
<!-- local refs to libs for development. We should pull them from their respective servers in production -->
<script type="text/javascript" src="js/libs/jquery-1.9.0.js"></script>
<script type="text/javascript" src="js/libs/dat.gui.js"></script>
<link rel="stylesheet" type="text/css" href="css/datgui_styleOverride.css">
<script type="text/javascript" src="js/libs/three.js"></script>
<script type="text/javascript" src="js/libs/OrbitControls.js"></script>
<script type="text/javascript" src="js/libs/Projector.js"></script>
<script type="text/javascript" src="js/libs/stats.js"></script>
<script type="text/javascript" src="js/libs/jquery-ui.js"></script>
<!-- Application files -->
<link rel='stylesheet' type='text/css' href='css/SPECTACLES.css'/>
<script type="text/javascript" src="js/SPECTACLES.js"></script>
<script type="text/javascript" src="js/APP_INIT.js"></script>
<!-- Single Page App - specific CSS -->
<style type="text/css">
body{
margin: 0px;
overflow: hidden;
font-family: 'lucida grande', Sans-Serif;
font-size: 75%;
height: 100%;
width: 100%
}
a:link {color: #787878;}
a:visited {color:#787878;}
a:hover {color: #a0a0a0;}
</style>
</head>
<body>
<div id="Spectacles_output" style="position:fixed; top:0; left:0; width:100%; height:100%;"></div>
<script type="application/javascript">
window.addEventListener('resize', function(){
$("#Spectacles_output").css("height",window.innerHeight.toString());
$("#Spectacles_output").css("width",window.innerWidth.toString());
$("#Spectacles_output").resize();
});
</script>
<div id='OpenLocalFile' class='Spectacles_openFile'>
<h1>Open a Spectacles .json file</h1>
<div class='Spectacles_openButton'>
<h3>Open a local file</h3>
<input id='Spectacles_openButton' type='file' onclick='mySpectacles.jsonLoader.clearFile(event)' onchange='mySpectacles.jsonLoader.openLocalFile(event)'>
</div>
<div class="Spectacles_openUrl">
<h3>Or, paste a url below, and press the 'Open from URL' button.</h3>
<input type ="text" id="Spectacles_urlInput" style="width: 335px">
<button type="button" onclick='mySpectacles.jsonLoader.openUrl($("#Spectacles_urlInput").val())'>Open from URL</button>
</div>
</div>
</body>
</html>