-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
executable file
·644 lines (520 loc) · 21.8 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
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
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Nuevo proyecto | Virtual tour generated by Panotour</title>
<meta name="description" content="Virtual tour generated by Panotour"/>
<meta name="keywords" content="Nuevo proyecto,Virtual tour generated by Panotour"/>
<meta name="medium" content="mult"/>
<meta name="video_height" content="480"/>
<meta name="video_width" content="640"/>
<link rel="image_src" href="indexdata/thumbnail.jpg"/>
<!-- <meta name="directory" content="PATH/"></meta> -->
<!-- <link rel="target_url" href="index.html" /> -->
<meta name="generator" content="Panotour Pro V2.5.3 64bits"/>
<meta name="viewport" content="target-densitydpi=device-dpi, width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no, minimal-ui"/>
<meta name="apple-mobile-web-app-capable" content="yes"/>
<meta name="apple-mobile-web-app-status-bar-style" content="default"/>
<style type="text/css">
@-ms-viewport { width: device-width; }
@media only screen and (min-device-width: 800px) { html { overflow:hidden; } }
* { padding: 0; margin: 0; }
html { height: 100%; }
body { height: 100%; overflow:hidden; }
div#container { height: 100%; min-height: 100%; width: 100%; margin: 0 auto; }
div#tourDIV {
height:100%;
position:relative;
overflow:hidden;
}
div#panoDIV {
height:100%;
position:relative;
overflow:hidden;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-o-user-select: none;
user-select: none;
}
</style>
<!--[if !IE]><!-->
<script type="text/javascript" src="indexdata/lib/jquery-2.1.1.min.js"></script>
<!--<![endif]-->
<!--[if lte IE 8]>
<script type="text/javascript" src="indexdata/lib/jquery-1.11.1.min.js"></script>
<![endif]-->
<!--[if gt IE 8]>
<script type="text/javascript" src="indexdata/lib/jquery-2.1.1.min.js"></script>
<![endif]-->
<style type="text/css">
div#panoDIV.cursorMoveMode {
cursor: move;
cursor: url(indexdata/graphics/cursors_move_html5.cur), move;
}
div#panoDIV.cursorDragMode {
cursor: grab;
cursor: -moz-grab;
cursor: -webkit-grab;
cursor: url(indexdata/graphics/cursors_drag_html5.cur), default;
}
div#frame{
width: 79%;
height: 100%;
position: absolute;
top:0px;
right: -100%;
background-color: white;
z-index: 3;
overflow-x: hidden;
overflow-y: scroll;
box-shadow: 0 1px 8px 1px #BABABA;
}
#closeicon{
position: absolute;
right: 5%;
top: 5%;
opacity: 0.3;
z-index: 20;
width: 35px;
}
#closeicon:hover{
cursor: pointer;
opacity: 1;
}
img#spotimg{
position: absolute;
top: 50%;
left: 50%;
z-index: 50;
-webkit-transform: translate(-35%,-50%);
opacity: 0;
pointer-events: none;
height: 100vh;
}
.showup{
opacity: 0.2;
-webkit-animation-name: showup;
animation-name: showup;
-webkit-animation-duration: 0.6s;
animation-duration: 0.6s;
-webkit-animation-fill-mode: forwards;
animation-fill-mode: forwards;
}
@-webkit-keyframes showup{
from{left:50%; opacity:0.2;}
to{left:12%; opacity: 1;}
}
@keyframes showup{
from{left:50%; opacity:0.2;}
to{left:12%; opacity: 1;}
}
.showdown{
opacity: 0.2;
-webkit-animation-name: showdown;
animation-name: showdown;
-webkit-animation-duration: 0.6s;
animation-duration: 0.6s;
-webkit-animation-fill-mode: forwards;
animation-fill-mode: forwards;
}
@-webkit-keyframes showdown{
from{left:12%; opacity:1;}
to{left:50%; opacity: 0;}
}
@keyframes showdown{
from{left:12%; opacity:1;}
to{left:50%; opacity: 0;}
}
.openup{
-webkit-animation-name: openup;
animation-name: openup;
-webkit-animation-duration: 0.6s;
animation-duration: 0.6s;
-webkit-animation-fill-mode: forwards;
animation-fill-mode: forwards;
}
@-webkit-keyframes openup{
from{right:-100%;}
to{right:0%;}
}
@keyframes openup{
from{right:-100%;}
to{right:0%;}
}
.opendown{
-webkit-animation-name: opendown;
animation-name: opendown;
-webkit-animation-duration: 0.6s;
animation-duration: 0.6s;
-webkit-animation-fill-mode: forwards;
animation-fill-mode: forwards;
}
@-webkit-keyframes opendown{
from{right:-0%;}
to{right:-100%;}
}
@keyframes opendown{
from{right:0%;}
to{right:-100%;}
}
a img{ margin: -6px 7px; }
.morebutton{
float: right;
border-radius: 25px;
text-align: center;
color: #FFFFFF;
font-family: 'Roboto', sans-serif;
font-size: 16px;
text-decoration: none;
padding: 13px 14px;
margin-top: -8px;
margin-right: -39px;
}
.morebutton:hover{
cursor: pointer;
}
.widebtn{ font-size: 18px; background-color: #C13227; width: 70%; margin-right: 6%; margin-bottom: 80px; border-radius:4px; margin-top: 7%; min-width: 228px; box-shadow: 1px 2px 2px 1px #D6D6D6;}
.widebtn:hover{background-color: #1C8ADF;}
#roundbtn{
position: absolute;
top: 6%;
left: 19%;
width: 35px;
opacity: 0.3;
}
#roundbtn:hover{
opacity: 1;
}
#detailContainer{
box-sizing: border-box;
width: 87%;
margin: 12% auto;
max-height: 315px;
max-width: 900px;
padding-left: 77px;
position: relative;
top: 5%;
}
.baserville{font-family: 'Libre Baskerville', serif;}
.red{color: #C13227;}
.gray{color:#3A3737;}
.lightgray{color: #696363;}
#bookTitle, #bookAuthor, #bookEdition{ font-weight: 700; margin: 7px 0px; font-size: 14px; margin-left: 18%;}
#bookTitle{
font-size: 20px;
font-weight: 700;
}
#bookEditor{display: inline;}
#bookResume{
font-family: 'Roboto', sans-serif;
font-size: 16px;
margin: 30px 0;
margin-left: 18%;
line-height: 150%;
}
@media screen and (min-width: 800px) {
img#spotimg {
width: 28vw;
height: auto;
-webkit-transform: translate(-5%,-53%);
}
#detailContainer{
width: 64%;
margin: 11% auto;
max-height: 1020px;
overflow: auto;
top: 4%;
}
.baserville{font-family: 'Libre Baskerville', serif;}
.red{color: #C13227;}
.gray{color:#3A3737;}
#bookTitle, #bookAuthor, #bookEdition{ font-size: 15px; margin-left: 16%;}
#bookTitle{
font-size: 34px;
font-weight: 700;
}
.widebtn{
width: 40%;
margin-left: 16%;
margin-top: 0%;
float: left;
}
#roundbtn{ display: none; }
#bookYear, #bookEditor{display: inline;}
#bookResume{
font-family: 'Roboto', sans-serif;
font-size: 18px;
margin: 50px 0;
line-height: 170%;
margin-left: 16%;
color: #212121
}
}
/* Portrait */
@media screen and (orientation: portrait)
{
#detailContainer{ width: 75%; }
img#spotimg{
width: 100%;
top: 23%;
-webkit-transform: translate(-12%,-34%);
max-width: 1000px;
}
div#frame{
width: 100%;
z-index: 100;
top: 30%;
height: 71%;
}
#roundbtn{ left: 10%; }
#bookTitle{ font-size: 26px; }
#bookAuthor, #bookEdition{ font-size: 20px;}
#bookTitle, #bookAuthor, #bookEdition, #bookResume{ margin-left: 0%;}
#bookResume{ font-size: 20px; }
}
</style>
<style type="text/css">
div#panoDIV.cursorMoveMode {
cursor: move;
cursor: url(indexdata/graphics/cursors_move_html5.cur), move;
}
div#panoDIV.cursorDragMode {
cursor: grab;
cursor: -moz-grab;
cursor: -webkit-grab;
cursor: url(indexdata/graphics/cursors_drag_html5.cur), default;
}
</style>
<script type="text/javascript">
function webglAvailable() {
try {
var canvas = document.createElement("canvas");
return !!window.WebGLRenderingContext && (canvas.getContext("webgl") || canvas.getContext("experimental-webgl"));
} catch(e) {
return false;
}
}
function getWmodeValue() {
var webglTest = webglAvailable();
if(webglTest){
return 'direct';
}
return 'opaque';
}
function readDeviceOrientation() {
// window.innerHeight is not supported by IE
var winH = window.innerHeight ? window.innerHeight : jQuery(window).height();
var winW = window.innerWidth ? window.innerWidth : jQuery(window).width();
//force height for iframe usage
if(!winH || winH == 0){
winH = '100%';
}
// set the height of the document
jQuery('html').css('height', winH);
// scroll to top
window.scrollTo(0,0);
}
jQuery( document ).ready(function() {
if (/(iphone|ipod|ipad|android|iemobile|webos|fennec|blackberry|kindle|series60|playbook|opera\smini|opera\smobi|opera\stablet|symbianos|palmsource|palmos|blazer|windows\sce|windows\sphone|wp7|bolt|doris|dorothy|gobrowser|iris|maemo|minimo|netfront|semc-browser|skyfire|teashark|teleca|uzardweb|avantgo|docomo|kddi|ddipocket|polaris|eudoraweb|opwv|plink|plucker|pie|xiino|benq|playbook|bb|cricket|dell|bb10|nintendo|up.browser|playstation|tear|mib|obigo|midp|mobile|tablet)/.test(navigator.userAgent.toLowerCase())) {
if(/iphone/.test(navigator.userAgent.toLowerCase()) && window.self === window.top){
jQuery('body').css('height', '100.18%');
}
// add event listener on resize event (for orientation change)
if (window.addEventListener) {
window.addEventListener("load", readDeviceOrientation);
window.addEventListener("resize", readDeviceOrientation);
window.addEventListener("orientationchange", readDeviceOrientation);
}
//initial execution
setTimeout(function(){readDeviceOrientation();},10);
}
});
function accessWebVr(){
unloadPlayer();
setTimeout(function(){ loadPlayer(true); }, 100);
}
function accessStdVr(){
unloadPlayer();
setTimeout(function(){ loadPlayer(false); }, 100);
}
function loadPlayer(isWebVr) {
if (isWebVr) {
embedpano({
id:"krpanoSWFObject"
,xml:"indexdata/index_vr.xml"
,target:"panoDIV"
,passQueryParameters:true
,bgcolor:"#000000"
,html5:"only+webgl"
,vars:{skipintro:true,norotation:true}
});
} else {
embedpano({
id:"krpanoSWFObject"
,swf:"indexdata/index.swf"
,target:"panoDIV"
,passQueryParameters:true
,bgcolor:"#000000"
,html5:"prefer"
});
}
//apply focus on the visit if not embedded into an iframe
if(top.location === self.location){
kpanotour.Focus.applyFocus();
}
}
function unloadPlayer(){
if(jQuery('#krpanoSWFObject')){
removepano('krpanoSWFObject');
}
}
function isVRModeRequested() {
var querystr = window.location.search.substring(1);
var params = querystr.split('&');
for (var i=0; i<params.length; i++){
if (params[i].toLowerCase() == "vr"){
return true;
}
}
return false;
}
</script>
</head>
<body>
<div id="container">
<div id=frame>
<img id="closeicon" onclick="closee()" src="indexdata/graphics/close.svg"/>
<a href=""> <img id="roundbtn" src="indexdata/graphics/ic_find_in_page_black_24px.svg"/></a>
<div id="detailContainer">
<div id="bookTitle" class="baserville red">Introducción a la ciencia de materiales para ingenieros</div>
<div id="bookAuthor" class="baserville gray">James F. Shackelford </div>
<div id="bookEdition" class="baserville gray">Edición 1, Pearson </div>
<div id="bookResume">
Introducción a la ciencia de materiales para ingenieros proporciona un tratamiento equilibrado y actual del espectro de materiales de ingeniería, tratando todas las propiedades físicas, aplicaciones y propiedades fundamentales asociadas con la ingeniería de materiales. Analiza todas las principales categorías de materiales a la vez que ofrece exámenes detallados de una amplia gama de materiales nuevos con aplicaciones de última tecnología.
<br>
<br>
<br>
</div>
<a class="morebutton widebtn" id="bookURL" href="" target="_blank"> <img src="indexdata/graphics/ic_find_in_page_white_24px.svg"/>QUIERO VER MÁS</a>
</div>
</div><!-- close frame -->
<img id="spotimg" src=""/>
<div id="tourDIV">
<div id="panoDIV">
<noscript>
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="100%" height="100%" id="indexdata/index">
<param name="movie" value="indexdata/index.swf"/>
<param name="allowFullScreen" value="true"/>
<!--[if !IE]>-->
<object type="application/x-shockwave-flash" data="indexdata/index.swf" width="100%" height="100%">
<param name="movie" value="indexdata/index.swf"/>
<param name="allowFullScreen" value="true"/>
<!--<![endif]-->
<a href="http://www.adobe.com/go/getflash">
<img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player to visualize the Virtual Tour : Nuevo proyecto (Virtual tour generated by Panotour)"/>
</a>
<!--[if !IE]>-->
</object>
<!--<![endif]-->
</object>
</noscript>
</div>
<script type="text/javascript" src="indexdata/index.js"></script>
<script type="text/javascript">
if (isVRModeRequested()){
accessWebVr();
}else{
accessStdVr();
}
</script>
</div>
</div>
<script type="text/javascript">
accessStdVr();
var frame = document.getElementById('frame');
var spot,spotcoords, movetocoords;
var krpano;
var spotimg = document.getElementById('spotimg');
var bookTitle = document.getElementById('bookTitle');
var bookAuthor = document.getElementById('bookAuthor');
var bookEdition = document.getElementById('bookEdition');
var bookResume = document.getElementById('bookResume');
var bookURL = document.getElementById('bookURL');
var spotwidth = 200;
var spotheight = 309;
function getkr(){
krpano = document.getElementById("krpanoSWFObject");
view = krpano.get("view");
wallOne = krpano.get("hotspot");
}
function setanchorFrame(x,y){ //set the position for info frame
frame.style.left = x + "px";
frame.style.top = y + "px";
}
function getspotcoords(ath, atv){ // gets hotspots spherical coords from xml
spotcoords = [ath,atv];
setanchorFrame(spotcoords[0],spotcoords[1]);
return spotcoords;
}
function getspotinfo(title, author, year, edition, editor, url, detailurl, resume){
var newurl;
var rootFolder;
newurl = url.split("/");
switch (document.location.hostname)
{
case 'test.uao.edu.co':
rootFolder = '/biblioteca360/'; break;
case 'cit.uao.edu.co':
rootFolder = '/biblioteca360/'; break;
case '172.16.15.25' :
rootFolder = ''; break;
default : // set whatever you want
rootFolder = ''; break;
}
newurl = rootFolder + "indexdata/spots/imgLarge/" + newurl[2];
spotimg.src = newurl;
bookTitle.innerHTML = title;
bookAuthor.innerHTML = author + " (" + year + ")";
bookEdition.innerHTML = "Edición " + edition + ", " + editor;
bookResume.innerHTML = resume;
bookURL.href = detailurl;
}
function getspot(spott){
spot = spott;
spot.alpha = "0.0";
animate();
var init = 0;
var xgutter = 0.8;
var ygutter = 0;
var i = 0;
/* for(var y = 0 ; y < 2 ; y++){
for(var x = 0 ; x < 4 ; x++){
krpano.set("hotspot["+i+"].ath", (spotwidth + xgutter) * x);
krpano.set("hotspot["+i+"].atv", (spotheight + ygutter) * -y);
console.log(krpano.get("hotspot["+i+"].ath"),krpano.get("hotspot["+i+"].atv"));
i++;
}
ygutter += 0.5;
}*/
//console.log(krpano.get("hotspot[1].name"));
/*for(var i = 0 ; i < 8 ; i++){
krpano.get("hotspot[book" + i + "].name") );
}*/
}
function animate(){
$(frame).removeClass("opendown");
$(spotimg).removeClass("showdown");
spotimg.className += "showup";
frame.className += "openup";
}
function closee(){
$(frame).removeClass("openup");
$(spotimg).removeClass("showup");
frame.className += "opendown";
spotimg.className += "showdown";
spot.alpha = "1.0";
}
</script>
</body>
</html>