-
Notifications
You must be signed in to change notification settings - Fork 224
/
cookie.html
52 lines (46 loc) · 1.44 KB
/
cookie.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
<!DOCTYPE html>
<html>
<head>
<title>Cookie Clicker</title>
<link rel="shortcut icon" type="image/jpg"
href="cookie.png"/>
<script src='/everypage.js'></script>
</head>
<body onload='focus()'>
<style>
html, body{
width: 100%;
height: 100%;
}
</style>
<script src="load.js"></script>
<a href="/" style='font-size: 1.25rem;'>Back To Home Page</a>
<button onclick="openFullscreen('518929564')" style='font-size: 1.25rem;'>Fullscreen Mode</button>
<br>
<div id='servers'>
</div>
<h3>Playing On Server: <span id='currentServer'></span></h3>
<iframe style='height: 95vh; width: 95vw;' frameborder="0" id="518929564" allowtransparency="true"
src=""></iframe>
<br>
<script>
document.getElementById('518929564').src='/cookie/index.html';
document.getElementById('currentServer').innerHTML = '1';
const links = [['/cookie/index.html', 'Old Version'],
['/g/cookie/index.html','Newest Version']];
links.forEach(server);
function server(item, index) {
window[("s"+(index+1))] = function(){
document.getElementById('518929564').src= item[0];
document.getElementById('currentServer').innerHTML = (index+1);
document.getElementById('518929564').focus();
}
document.getElementById('servers').innerHTML += "<button style='font-size: 1rem;' onclick="+("s"+(index+1))+"()>"+item[1]+"</button>";
}
</script>
<script src="fullScreen.js"></script>
<script>
function focus() {document.getElementById('518929564').focus();}
</script>
</body>
</html>