-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscripts.js
More file actions
232 lines (196 loc) · 6.06 KB
/
Copy pathscripts.js
File metadata and controls
232 lines (196 loc) · 6.06 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
"use strict";
//onclick Events
var gotoYoutube = function () {
var url = 'http://www.youtube.com',
win = window.open(url, '_blank');
win.focus();
}
var gotoNavigationMap = function () {
window.location = 'NavigationMap.html';
}
var goto10BrainMyth = function () {
window.location = 'Myth10percentBrain.html';
}
var gotoArtsMyth = function () {
window.location = 'MythOnlyFoundInArts.html';
}
var gotoExcelMyth = function () {
window.location = 'MythDrivenToExcel.html';
}
var gotoComputerMyth = function () {
window.location = 'MythBrainsAreComputers.html';
}
var gotoHome = function () {
window.location = 'index.html';
}
var gotoAboutUs = function () {
window.location = 'AboutUs.html';
}
var gotoContact = function () {
location.hash = 'contactModal';
}
var gotoEmilyBearSound = function () {
var url = 'https://www.youtube.com/watch?v=qrmzcK09-8E#t=05m37s',
win = window.open(url, '_blank');
win.focus();
}
var gotoEmilyBearVideo = function () {
window.location = 'EmilyBearThemeVideo.html';
}
var gotoEmilyBearText = function () {
window.location = 'EmilyBearThemeText.html';
}
var gotoCameronThompsonText = function () {
window.location = 'CameronThompsonThemeText.html';
}
var gotoCameronThompsonVideo = function () {
window.location = 'CameronThompsonThemeVideo.html';
}
var gotoCameronThompsonKinesthetic = function () {
window.location = 'CameronThompsonThemeKinesthetic.html';
}
var gotoCameronFacebook = function () {
var url = 'https://www.facebook.com/Teenagegenius',
win = window.open(url, '_blank');
win.focus();
}
var gotoCameronTwitter = function () {
var url = 'https://twitter.com/aspergergenius',
win = window.open(url, '_blank');
win.focus();
}
var gotoCameronYouCaring = function () {
var url = 'http://www.youcaring.com/tuition-fundraiser/help-cameron-thompson-complete-his-open-university-degree-/302325',
win = window.open(url, '_blank');
win.focus();
}
var gotoTanishQText = function () {
window.location = 'TanishQThemeText.html';
}
var gotoTanishQVideo = function () {
window.location = 'TanishQThemeVideo.html';
}
var gotoTanishqSservi = function () {
var url = 'http://sservi.nasa.gov/tanishq-abraham/',
win = window.open(url, '_blank');
win.focus();
}
var gotoSservi = function () {
var url = 'http://sservi.nasa.gov/',
win = window.open(url, '_blank');
win.focus();
}
var gotoTanishQKinesthetic = function () {
window.location = 'TanishQThemeKinesthetic.html';
};
var gotoSantiagoGonzalezText = function () {
window.location = 'SantiagoGonzalezThemeText.html';
}
var gotoSantiagoGonzalezVideo = function () {
window.location = 'SantiagoGonzalezThemeVideo.html';
}
var gotoSantiagoGonzalezKinesthetic = function () {
window.location = 'SantiagoGonzalezThemeKinesthetic.html';
}
var gotoSantiagoCheckers = function () {
var url = 'https://itunes.apple.com/us/app/checkers-board-game/id405250363?mt=12',
win = window.open(url, '_blank');
win.focus();
}
var gotoSantiagoConway = function () {
var url = 'https://itunes.apple.com/us/app/conways-game-of-life/id423536172?mt=12',
win = window.open(url, '_blank');
win.focus();
}
var gotoSantiagoMetronome = function () {
var url = 'https://itunes.apple.com/us/app/digital-metronome/id422025540?mt=8',
win = window.open(url, '_blank');
win.focus();
}
var gotoSantiagoRollability = function () {
var url = 'https://itunes.apple.com/us/app/rollability/id668396013?mt=12',
win = window.open(url, '_blank');
win.focus();
}
var gotoSantiagoSlidePuzzle = function () {
var url = 'https://itunes.apple.com/us/app/super-slide-puzzle/id436842485?mt=8',
win = window.open(url, '_blank');
win.focus();
}
var gotoSantiagoSnippets = function () {
var url = 'https://itunes.apple.com/us/app/snippet-saver/id413605721?mt=12',
win = window.open(url, '_blank');
win.focus();
}
// functions
var closeModal = function () {
location.hash = "#";
}
var hideAllPages = function () {
"use strict";
var panels = [],
count;
panels = document.getElementsByClassName("panel");
for ( count = 0; count < panels.length; count = count + 1 ) {
panels[count].hidden = true;
};
};
var showPageNext = function () {
var panels = document.getElementsByClassName("panel"),
count,
numerator = 0;
for (count = 0; count < panels.length; count = count +1) {
if (panels[count].hidden == false) {
numerator = count;
};
};
console.log(numerator);
hideAllPages()
console.log(panels.length);
if (numerator == panels.length - 1) {
numerator = 0;
} else {
numerator = numerator + 1;
};
console.log(numerator);
panels[numerator].hidden = false;
}
var showPagePrevious = function () {
var panels = document.getElementsByClassName("panel"),
count,
numerator ;
for (count = 0; count < panels.length; count = count +1) {
if (panels[count].hidden == false) {
numerator = count;
};
};
hideAllPages()
if (numerator == 0) {
numerator = panels.length - 1;
} else {
numerator = numerator - 1;
};
panels[numerator].hidden = false;
};
var displayButtonsIfMoreThanOnePanel = function () {
var panels = document.getElementsByClassName("panel"),
leftButton = document.getElementById('leftButton'),
rightButton = document.getElementById('rightButton');
if (panels.length > 1) {
leftButton.hidden = false;
rightButton.hidden = false;
leftButton.addEventListener("click", showPagePrevious);
rightButton.addEventListener("click", showPageNext);
}
};
var skipNavMap = function () {
var videoElement = document.getElementById('navVideo'),
skipElement = document.getElementById('navScreenElements1'),
nextElement = document.getElementById('navigationMapTable');
videoElement.pause();
skipElement.hidden = true;
nextElement.hidden = false;
}
var mouseover = function () {
document.getElementById('brain').className = 'mouseOver';
};