-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
328 lines (306 loc) · 10.5 KB
/
index.html
File metadata and controls
328 lines (306 loc) · 10.5 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
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
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>System Source Computer Museum -- Virtual Tour</title>
<link rel="stylesheet" href="pannellum.css"/>
<script type="text/javascript" src="pannellum.js"></script>
<style>
#panorama {
width: "80%";
height: 768px;
}
#basicModal{
display:none;
}
.custom-hotspot {
height: 26px;
width: 26px;
background-image: url("data:image/svg+xml, %3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='24'%3E%3Ccircle fill-opacity='.78' cy='12.5' cx='13' r='11' fill='%23fff'/%3E%3Cpath d='m13 6a7 7 0 0 0 -7 7 7 7 0 0 0 7 7 7 7 0 0 0 7 -7 7 7 0 0 0 -7 -7zm-1 3h2v2h-2zm0 3h2v5h-2z'/%3E%3C/svg%3E%0A");
}
div.custom-tooltip span {
visibility: hidden;
position: absolute;
border-radius: 3px;
background-color: #fff;
color: #000;
text-align: center;
max-width: 200px;
padding: 5px 10px;
margin-left: -220px;
cursor: default;
}
div.custom-tooltip:hover span{
visibility: visible;
}
div.custom-tooltip:hover span:after {
content: '';
position: absolute;
width: 0;
height: 0;
border-width: 10px;
border-style: solid;
border-color: #fff transparent transparent transparent;
bottom: -20px;
left: -10px;
margin: 0 50%;
}
</style>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>jQuery UI Dialog - Default functionality</title>
<link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">
<script src="https://code.jquery.com/jquery-1.12.4.js"></script>
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
</head>
<body style="background-color:#E6E6FA">
<center><h2>System Source Computer Museum Virtual Tour</h2><center>
<table>
<tr><td style="width:20%">
Use your mouse to move around, zoom or stop motion.
<br>
Click on
<svg xmlns="http://www.w3.org/2000/svg" width="26" height="24">
<circle fill-opacity=".78" cy="12.5" cx="13" r="11" fill="#fff"/>
<path d="m13 6a7 7 0 0 0 -7 7 7 7 0 0 0 7 7 7 7 0 0 0 7 -7 7 7 0 0 0 -7 -7zm-1 3h2v2h-2zm0 3h2v5h-2z"/>
</svg>
in image for more information about an artifact
<br>
<button type="button" style="width:400px" onclick="gallery1()">Gallery 1 <br>Abacus, Quipu, Napier's Bones, Slide Rules, Cap'n Crunch Whistle </button><br>
<button type="button" style="width:400px" onclick="gallery2()">Gallery 2 <br>Mechanical Calculators, Memory Systems</button><br>
<button type="button" style="width:400px" onclick="gallery3()">Gallery 3 <br>Altair, Imsai, Apple ][</button>
</td><td style="width:80%"><div id="panorama"></div></td></tr></table>
<iframe id="ModalContainer" style="display:none;width:100%"></iframe>
<script>
var bobobj = pannellum.viewer('panorama', {
"default": {
"firstScene": "gallery1",
"author": "System Source Computer Museum",
"sceneFadeDuration": 1000
},
"scenes": {
"gallery3": {
"title": "Gallery 3",
"hfov": 110,
"yaw": 117,
"type": "equirectangular",
"panorama": "gallery3.jpg",
"autoRotate": -2,
"autoLoad": true,
"compass": true,
"autoRotateInactivityDelay": 1000,
"minPitch": -70,
"maxPitch": 70,
"hotSpotDebug": true,
"hotSpots": [
{
"pitch": -2.6,
"yaw": 109.8,
"type": "info",
"text": "Apple //",
"URL": "https://museum.syssrc.com/artifact/personal-computers/410/"
},
{
"pitch": -28.79,
"yaw": 155.5,
"cssClass": "custom-hotspot",
"createTooltipFunc": hotspot,
"createTooltipArgs": "Altair 8800",
"clickHandlerArgs": "https://museum.syssrc.com/artifact/early-computing/400/",
"clickHandlerFunc": modalpop,
},
{
"pitch": -12.6,
"yaw": -4.2,
"type": "info",
"text": "Tracey",
"URL": "https://www.linkedin.com/in/traceymaranto/"
},
{
"pitch": -9.4,
"yaw": 222.6,
"type": "scene",
"text": "Roswell Living Room",
"sceneId": "house"
},
{
"pitch": -9.4,
"yaw": 35.6,
"type": "scene",
"text": "Gallery 1",
"sceneId": "gallery1"
}
]
},
"gallery1": {
"title": "Gallery 1",
"hfov": 90,
"yaw": 0,
"type": "equirectangular",
"panorama": "gallery1.jpg",
"autoRotate": -2,
"autoLoad": true,
"compass": true,
"autoRotateInactivityDelay": 3000,
"minPitch": -40,
"maxPitch": 40,
"minYaw": -150,
"maxYaw": 120,
"hotSpotDebug": false,
"hotSpots": [
{
"pitch": -11.0,
"yaw": -15.408,
"cssClass": "custom-hotspot",
"createTooltipFunc": hotspot,
"createTooltipArgs": "Chinese Abacus - suanpan, 算盤, calculating pan",
"clickHandlerArgs": "https://museum.syssrc.com/artifact/early-computing/10/",
"clickHandlerFunc": modalpop,
},
{
"pitch": -7.0,
"yaw": -15.408,
"cssClass": "custom-hotspot",
"createTooltipFunc": hotspot,
"createTooltipArgs": "Japanese Abacus - soroban (算盤, counting tray) ",
"clickHandlerArgs": "https://museum.syssrc.com/artifact/early-computing/20/",
"clickHandlerFunc": modalpop,
},
{
"pitch": -7.,
"yaw": 14.13,
"cssClass": "custom-hotspot",
"createTooltipFunc": hotspot,
"createTooltipArgs": "Slide Rules",
"clickHandlerArgs": "https://museum.syssrc.com/artifact/early-computing/40/",
"clickHandlerFunc": modalpop,
},
{
"pitch": -16.,
"yaw": 14.13,
"cssClass": "custom-hotspot",
"createTooltipFunc": hotspot,
"createTooltipArgs": "Napier's Bones",
"clickHandlerArgs": "https://museum.syssrc.com/artifact/early-computing/30/",
"clickHandlerFunc": modalpop,
},
{
"pitch": -4.,
"yaw": 1.8,
"cssClass": "custom-hotspot",
"createTooltipFunc": hotspot,
"createTooltipArgs": "Quipu",
"clickHandlerArgs": "https://museum.syssrc.com/artifact/early-computing/26/",
"clickHandlerFunc": modalpop,
},
{
"pitch": 3.49,
"yaw": -78.5,
"cssClass": "custom-hotspot",
"createTooltipFunc": hotspot,
"createTooltipArgs": "Cap'n Crunch Whistle",
"clickHandlerArgs": "https://en.wikipedia.org/wiki/John_Draper",
"clickHandlerFunc": modalpop,
},
{
"pitch": -23.12,
"yaw": 28.27,
"type": "scene",
"text": "Gallery 2",
"sceneId": "gallery2"
},
]
},
"gallery2": {
"title": "Gallery 2",
"hfov": 110,
"yaw": 0,
"type": "equirectangular",
"panorama": "gallery2.jpg",
"autoRotate": -2,
"autoLoad": true,
"compass": false,
"autoRotateInactivityDelay": 2000,
"minPitch": -70,
"maxPitch": 50,
"hotSpotDebug": true,
"hotSpots": [
{
"pitch": -23.12,
"yaw": -148,
"type": "scene",
"text": "Gallery 1",
"sceneId": "gallery1"
},
{
"pitch": -11,
"yaw": -24.5,
"cssClass": "custom-hotspot",
"createTooltipFunc": hotspot,
"createTooltipArgs": "Apple 1 (Replica)",
"clickHandlerArgs": "https://museum.syssrc.com/artifact/early-computing/406/",
"clickHandlerFunc": modalpop,
},
]
},
}
});
// Hot spot creation function
function hotspot(hotSpotDiv, args) {
hotSpotDiv.classList.add('custom-tooltip');
var span = document.createElement('span');
span.innerHTML = args;
hotSpotDiv.appendChild(span);
span.style.width = span.scrollWidth - 20 + 'px';
span.style.marginLeft = -(span.scrollWidth - hotSpotDiv.offsetWidth) / 2 + 'px';
span.style.marginTop = -span.scrollHeight - 12 + 'px';
}
function modalpop(myvar, urlargs){
/* container of the content loaded from a url */
var tag = $("#ModalContainer");
/* show the image loader */
//$('#imgLoader').show();
console.log("HEY! "+urlargs);
/* urlargs="altair8800.html";*/
/* $.ajax({
url: urlargs,
dataType: 'text',
cache: false,
success: function( data ) {
// Just be sure to have a data
//console.log(JSON.stringify(data));
//var result=$("<div>").html(data)[0].getElementsByTagName("body");
tag.html(data).show();
tag.dialog({
modal: true,
width: 80%,
});
tag.dialog('open');
//console.log(JSON.stringify(result));
// hide the image loader
//$('#imgLoader').hide();
}
});
*/
tag.attr("src",urlargs);
tag.dialog({
modal: true,
width: 1200,
height: 900
});
tag.dialog('open');
tag.removeClass("ui-dialog-content ui-widget-content").css({"width":"100%"});
}
function gallery1(args) {
bobobj.loadScene("gallery1",0,60,120);
}
function gallery2(args) {
bobobj.loadScene("gallery2",0,180,120);
}
function gallery3(args) {
bobobj.loadScene("gallery3",0,60,120);
}
</script>
</body>
</html>