Skip to content

Commit 548fd09

Browse files
committed
ok maybe this one will work???
1 parent efa0287 commit 548fd09

File tree

15 files changed

+24
-30
lines changed

15 files changed

+24
-30
lines changed

404.html

+1
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,4 @@ <h3 id="title">404!</h3><br>
1313
</div></div>
1414
<script id="scriptBody" src="/javascript/bodyScript.js"></script>
1515
</body></html>
16+
<div id="bottomElement"></div>

games/html/animator-vs-animation.html

+1
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,4 @@ <h3 id="title">Animator Vs. Animation (Series)</h3><br>
1717
</div></div>
1818
<script id="scriptBody" src="/javascript/bodyScript.js"></script>
1919
</body></html>
20+
<div id="bottomElement"></div>

games/index.html

+1
Original file line numberDiff line numberDiff line change
@@ -56,3 +56,4 @@ <h3 id="title">Loading...</h3><br>
5656
<script id="scriptBody" src="/javascript/bodyScript.js"></script>
5757
<script id="scriptRuffle" src="/ruffle/ruffle.js"></script>
5858
</body></html>
59+
<div id="bottomElement"></div>

games/shithole/among-u-red-impostor.html

+1
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,4 @@ <h3 id="title">Among U: Red Impostor</h3><br>
1515
</div></div>
1616
<script id="scriptBody" src="/javascript/bodyScript.js"></script>
1717
</body></html>
18+
<div id="bottomElement"></div>

games/shithole/index.html

+1
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,4 @@ <h3 id="title">The Shithole</h3><br>
1616
</div></div>
1717
<script id="scriptBody" src="/javascript/bodyScript.js"></script>
1818
</body></html>
19+
<div id="bottomElement"></div>

games/shithole/run-3-html-5.html

+1
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,4 @@ <h3 id="title">Run 3 HTML 5</h3><br>
1515
</div></div>
1616
<script id="scriptBody" src="/javascript/bodyScript.js"></script>
1717
</body></html>
18+
<div id="bottomElement"></div>

index.html

+1
Original file line numberDiff line numberDiff line change
@@ -157,3 +157,4 @@ <h5 id="h5">well... kinda.</h5>
157157
</script>
158158
</body>
159159
</html>
160+
<div id="bottomElement"></div>

javascript/main.js

+10-30
Original file line numberDiff line numberDiff line change
@@ -422,35 +422,15 @@ function waitForSwfLoad() {
422422
}
423423
}
424424

425-
window.addEventListener('load', function() {
426-
console.log(0);
427-
var sidebarloaded = false;
428-
var headerloaded = false;
429-
var savedgamesloaded = false;
430-
var title = document.getElementById('title').textContent;
431-
console.log(1);
432-
document.getElementById('sidebar').onload = sidebarloaded = true;
433-
document.getElementById('header').onload = headerloaded = true;
434-
document.getElementById('savedgames').onload = savedgamesloaded = true;
435-
console.log(2);
436-
if (title == 'Home') {
437-
window.setInterval(function() {
438-
console.log(3);
439-
if (sidebarloaded && headerloaded && savedgamesloaded) {
440-
console.log(4);
441-
colorTheme();
442-
window.clearInterval(this);
425+
while (true) {
426+
if (document.getElementById('sidebar')) {
427+
document.getElementById('sidebar').onload = function () {
428+
while (true) {
429+
if (document.getElementById('bottomElement')) {
430+
colorTheme();
431+
}
443432
}
444-
},100);
445-
}
446-
else {
447-
window.setInterval(function() {
448-
console.log(5);
449-
if (sidebarloaded && headerloaded) {
450-
console.log(6);
451-
colorTheme();
452-
window.clearInterval(this);
453-
}
454-
},100);
433+
}
434+
break;
455435
}
456-
});
436+
}

stuff/contribute/index.html

+1
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,4 @@ <h4>Share it around!</h4>
2626
</div></div>
2727
<script id="scriptBody" src="/javascript/bodyScript.js"></script>
2828
</body></html>
29+
<div id="bottomElement"></div>

stuff/more/index.html

+1
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,4 @@ <h3 id="title">More Games</h3><br>
2020
</div></div>
2121
<script id="scriptBody" src="/javascript/bodyScript.js"></script>
2222
</body></html>
23+
<div id="bottomElement"></div>

stuff/problem/index.html

+1
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,4 @@ <h3 id="title">Report a Problem</h3><br>
1414
</div></div>
1515
<script id="scriptBody" src="/javascript/bodyScript.js"></script>
1616
</body></html>
17+
<div id="bottomElement"></div>

stuff/settings/index.html

+1
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,4 @@ <h1>this page is under development it currently does not work so please come bac
4949
</div>
5050
</body>
5151
</html>
52+
<div id="bottomElement"></div>

stuff/submit/index.html

+1
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,4 @@ <h3 id="title">Submit Something</h3><br>
1414
</div></div>
1515
<script id="scriptBody" src="/javascript/bodyScript.js"></script>
1616
</body></html>
17+
<div id="bottomElement"></div>

stuff/urls/index.html

+1
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,4 @@ <h3 id="title">Pringles URLs</h3><br>
1818
</div></div>
1919
<script id="scriptBody" src="/javascript/bodyScript.js"></script>
2020
</body></html>
21+
<div id="bottomElement"></div>

stuff/vote/index.html

+1
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,4 @@ <h3 id="title">Vote for the best game</h3><br>
1515
</div></div>
1616
<script id="scriptBody" src="/javascript/bodyScript.js"></script>
1717
</body></html>
18+
<div id="bottomElement"></div>

0 commit comments

Comments
 (0)