-
Notifications
You must be signed in to change notification settings - Fork 35
Expand file tree
/
Copy pathindex.html
More file actions
219 lines (179 loc) · 5.39 KB
/
Copy pathindex.html
File metadata and controls
219 lines (179 loc) · 5.39 KB
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
<html>
<head>
<title>3DViewer++: VIew your models in 3D</title>
<link rel="stylesheet" href="css/lavalamp_test.css" type="text/css" media="screen">
<script type="text/javascript" src="js/jquery-1.2.3.min.js"></script>
<script type="text/javascript" src="js/jquery.easing.min.js"></script>
<script type="text/javascript" src="js/jquery.lavalamp.min.js"></script>
<script type="text/javascript">
function getParam( name )
{
name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
var regexS = "[\\?&]"+name+"=([^&#]*)";
var regex = new RegExp( regexS );
var results = regex.exec( window.location.href );
if( results == null )
return "";
else
return results[1];
}
function hideAll()
{
$('#dbg').hide();
$('#main').hide();
$('#step1').hide();
$('#step2').hide();
$('#step3').hide();
{% for album in models %}
$('#{{album.name}}_table').hide();
{% endfor %}
}
$(function() {
$("#1").lavaLamp({
fx: "backout",
speed: 700,
click: function(event, menuItem) {
return false;
}
});
});
$(document).ready(function() {
var tabName = '#' + getParam('tab');
hideAll();
if (tabName == '#')
$('#main').show();
else
$(tabName).show();
$('#home').click(function(){
hideAll();
$('#main').show();
});
$('#link1').click(function(){
hideAll();
$('#step1').show();
});
$('#link2').click(function(){
hideAll();
$('#step2').show();
});
$('#link3').click(function(){
hideAll();
$('#step3').show();
});
$('#view').click(function(){
hideAll();
$('#step3').show();
var id = '#' + $('#albums')[0].value + '_table';
$(id).show();
});
var dbg = getParam('dbg');
if (dbg != '') {
if (dbg.search("success") != -1)
var msg = "<div class = 'success'>" + dbg + "</div>";
else
var msg = "<div class = 'error'>" + dbg + "</div>";
msg = msg.replace(/%20/g, " ");
$('#dbg')[0].innerHTML = msg;
$('#dbg').show();
}
});
</script>
</head>
<body>
<div class="toolbar">
<img src = "img/logo.png" style="float:left; padding:15px; margin:10px">
<ul class="lavaLampNoImage" id="1">
<li class="current" id="home"><a href="#">Home</a></li>
<li><a href="#" id="link1">Step 1</a></li>
<li><a href="#" id="link2">Step 2</a></li>
<li><a href="#" id="link3">step 3</a></li>
</ul>
</div>
<div class = "content">
<div id = "dbg">
</div>
<div id="main">
<h1>View 3D Models in 1, 2, 3!</h1>
<h3>Step 1: Organize</h3>
Create a library to upload all your models to. Have one? Select your libary
from a list of existing ones.
<h3>Step 2: Upload</h3>
Select your model and upload it to your album!
<h3>Step 3: Visualize</h3>
View your model in 3D with HMDs or your webcam! Simply print out your
ARTags (emailed to you and available on this site) and bring it to your desination!
</div>
<div id="step1">
<h3> Create an album! </h3>
What is an album? An album is a collection of 3D models that you can create.
Think of it as a photo album, except the pictures can be viewed in 3D! Have an album already?
Proceed to Step 2 to upload to your album! <br><br>
<form action="/createAlbum" enctype="multipart/form-data" method="POST">
Please enter your album name:<br>
<input name="name" type="text" size="30">
<br><br>
Please enter a brief description:<br>
<textarea name = "description" COLS=40 ROWS=6></textarea>
<br><br>
<input type="submit" value="Submit">
</form>
</div>
<div id="step2">
<form action="/upload" enctype="multipart/form-data" method="POST">
Please enter your email:<br>
<input name="author" type="text" size="30">
<br><br>
Please enter the name of your model:<br>
<input name = "name" type="text" size = "30">
<br><br>
Select your album:<br>
<select name = "albums">
{% for album in albums %}
<option value="{{album.name}}">{{album.name}}</option>
{% endfor %}
</select>
<br><br>
Please select your model:<br>
<input name="model" type="file">
<br><br>
If applicable, please upload your zipped texture:<br>
<form ac
<input name="texture" type="file">
<br><br>
<input type="submit" value="Submit">
</form>
</div>
<div id="step3">
<h3>Manage and Visualize your models!</h3>
Now that you have created your model, manage them!
<br><br>
Select an album:
<form action="/broadcast" enctype="multipart/form-data" method="POST">
<select name = "albums" id = "albums">
{% for album in albums %}
<option id = "{{album.name}}" value="{{album.name}}">{{album.name}}</option>
{% endfor %}
</select>
<input type="button" id = "view" value="View">
{% if albums %}
<input type="submit" name="broadcast" value="Broadcast">
{% endif %}
</form>
{% for album in models%}
<div id = "{{album.name}}_table">
<table border = "1">
<tr><td>Check?</td><td>Name</td><td>Author</td><td>Fiducial Marker</td></tr>
{% for model in album.content %}
<tr>
<td></td>
<td>{{model.name}}</td>
<td>{{model.author}}</td>
<td>{{model.fiducial}}</td>
</tr>
{% endfor %}
</table>
</div>
{% endfor %}
</div>
</div>
</body></html>