-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
169 lines (157 loc) · 7.5 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
<!DOCTYPE html>
<html lang="en">
<head>
<title>ReVisit</title>
<meta name="Content-Type" content="text/html; charset=UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1">
<link type="text/css" rel="stylesheet" href="css/style.css" />
<link href="https://fonts.googleapis.com/css?family=Barlow" rel="stylesheet">
</head>
<body id='dropZone'>
<!-- window elements to append visualizers -->
<div id="window1" class="window"></div>
<div id="window2" class="window window-inactive"></div>
<!-- controls related to model appearance -->
<div id="modelCtrls" class='model-controls' data-state="collapsed">
<span class="toggle" for="model-controls">☰</span>
<h4 class="title">Active Visualization</h4>
<div id="modelName" class="select">
<p class="active">--</p>
<div class="select-collapse" data-state="expanded">
<ul class="select-list" data-for="modelSelect">
</ul>
</div>
<select id="modelSelect">
<option value=""></option>
</select>
</div>
<h4 class="title">Group Name</h4>
<div id="groupName" class="select">
<p class="active">--</p>
<div class="select-collapse" data-state="expanded">
<ul class="select-list" data-for="groupSelect">
</ul>
</div>
<select id="groupSelect">
<option value=""></option>
</select>
</div>
<h4 class="title">Color</h4>
<div class="control colors">
<label for="colorWell">-- : </label>
<input type="color" value="#ff0000" id="colorWell">
</div>
<h4 class="title">Textures</h4>
<div class="control control-texture">
<div class="textures" id="textures">
<a href="#" data-texture="bricks">bricks<span class="sample"></span></a>
<a href="#" data-texture="cloth">cloth<span class="sample"></span></a>
<a href="#" data-texture="concrete">concrete<span class="sample"></span></a>
<a href="#" data-texture="desert">desert<span class="sample"></span></a>
<a href="#" data-texture="grass">grass<span class="sample"></span></a>
<a href="#" data-texture="lace">lace<span class="sample"></span></a>
<a href="#" data-texture="marble">marble<span class="sample"></span></a>
<a href="#" data-texture="matrix">matrix<span class="sample"></span></a>
<a href="#" data-texture="metal">metal<span class="sample"></span></a>
<a href="#" data-texture="steel">steel<span class="sample"></span></a>
<a href="#" data-texture="stone">stone<span class="sample"></span></a>
<a href="#" data-texture="wood">wood<span class="sample"></span></a>
</div>
<input type="file" id="file-texture"/>
</div>
<div class="range-with-label">
<input id="transVal" class="value" type="text" value="1" />
<input id="transparencyCtrl" type="range" value="1" list="modelTransparency" min="0" max="1" step="0.1">
<label class="right-label">1</label>
<label class="left-label">0</label>
<p class="for">Transparency</p>
</div>
</div>
<div id = "progress-holder">
<div id = "progress-bar">
</div>
</div>
<div class='logfile-controls'>
</div>
<!-- controls related to controling the display features of the animation -->
<div class="ctrls-wrapper" data-for="playback-controls">
<div class="playback-controls">
<div id="playbackSlider" class='playback-slider' data-position="1">
<div class="playback-pane">
<div class="range-with-label">
<input id="speedInput" class="value" type="text" value="1" />
<input id="modelSpeed" type="range" min="-4" max="4" step="0.25" value="1">
<label class="right-label">4</label>
<label class="left-label">-4</label>
<p class="for">Playback Speed</p>
</div>
<button class="img-btn middle-btn" id="playPauseBtn" data-toggle="play"></button>
<div class="range-with-label">
<input id="timeInput" class="value" type="text" value="1" />
<input id="modelTime" type="range">
<label for="modelTime" class="right-label">--</label>
<label for="modelTime" class="left-label">--</label>
<p class="for">Current Time</p>
</div>
</div>
<div class="playback-pane">
<div class="control-group">
<h4>Camera</h4>
<button id="resetBtn" class="playback-btn">Reset camera</button>
</div>
<div class="control-group">
<h4>Playback</h4>
<button class="playback-btn" id="playAll">Play all</button>
<button class="playback-btn" id="pauseAll">Pause all</button>
</div>
</div>
</div>
<div class="pagination">
<label>page: </label>
<a data-page="1" href="#">1</a>
<a data-page="2" href="#">2</a>
</div>
</div>
</div>
<!-- splash screen -->
<div id="splash-screen" data-state="display">
<button id="show-button">⋮</button>
<div id="splash-head">
<p id="splash-title">Revisit</p>
</div>
<div id="instructions">
<div id="get-started">
<p id="description">To get started try one of the following</p>
</div>
<div id="option-container">
<div class="option">
<p>Drag a file onto the screen</p>
</div>
<div class="option">
<p>Specify log file using URL query</p>
</div>
<div class="option" id="last-option">
<p>Type the file path location into your URL</p>
</div>
</div>
<div id="hide-splash">
<button id="hide-button">→</button>
</div>
</div>
</div>
<!-- js -->
<script src="vendor/three.js"></script>
<script src="data/models.js"></script>
<script src="vendor/STLLoaders.js"></script>
<script src="vendor/OrbitControls.js"></script>
<script src="js/controls.js"></script>
<script src="js/visualizer.js"></script>
<script src="js/main.js"></script>
<script>
//
// Start the application
//
replay.start();
</script>
</body>
</html>