-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.js
68 lines (60 loc) · 1.97 KB
/
main.js
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
//Redirect functions
function redirectFunc() {
window.top.location.reload();
}
function refreshButton() {
window.top.location.reload();
}
function refreshPopup(){
location.reload();
}
function redirectHomeFunc() {
window.top.location.href = "../index.html";
}
/*Barge Toggles*/
function barge1916Button() {
window.top.location.assign("../1916barge.html?0");
}
function barge2017Button() {
window.top.location.assign("../barge.html?0");
}
/*Herm Toggles*/ /*DON'T USE WINDOW.TOP*/
function herm1916Button() {
window.parent.location.replace("../1916Herm.html");
}
function herm2017Button() {
window.parent.location.replace("../2017herm.html");
}
/*Sculptures Toggles*/
function sculptures1916Button() {
window.parent.location.assign("../1916Mermaids.html");
}
function sculptures2017Button() {
window.parent.location.assign("../mermaids.html");
}
/* HTML5 Fullscreen API
*****************************************************/
function toggleFullScreen() {
if ((document.fullScreenElement && document.fullScreenElement !== null) ||
(!document.mozFullScreen && !document.webkitIsFullScreen)) {
if (document.documentElement.requestFullScreen) {
document.documentElement.requestFullScreen();
} else if (document.documentElement.mozRequestFullScreen) {
document.documentElement.mozRequestFullScreen();
} else if (document.documentElement.webkitRequestFullScreen) {
document.documentElement.webkitRequestFullScreen(Element.ALLOW_KEYBOARD_INPUT);
}
} else {
if (document.cancelFullScreen) {
document.cancelFullScreen();
} else if (document.mozCancelFullScreen) {
document.mozCancelFullScreen();
} else if (document.webkitCancelFullScreen) {
document.webkitCancelFullScreen();
}
}
}
//Function to change Touch to HotspotName
function changeHotspotName(newName){
document.getElementById('hotspotName').innerHTML = newName;
}