-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathindex.html
117 lines (114 loc) · 4.84 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
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Generated by GameMaker:Studio http://www.yoyogames.com/gamemaker/studio -->
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta http-equiv="pragma" content="no-cache"/>
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name ="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
<meta charset="utf-8"/>
<!-- Set the title bar of the page -->
<link href="" id="retroicon" rel="icon"/>
<title id="retrotitle"></title>
<script>
let disg = [["To-do","https://ssl.gstatic.com/classroom/favicon.png"],["Google Docs","https://ssl.gstatic.com/docs/documents/images/kix-favicon7.ico"],["My Drive - Google Drive","https://ssl.gstatic.com/images/branding/product/1x/drive_2020q4_32dp.png"]]
let thetitle = document.getElementById("retrotitle")
let theicon = document.getElementById("retroicon")
let randomdisguise = disg[Math.floor(Math.random() * disg.length)]
thetitle.innerHTML = randomdisguise[0]
theicon.href = randomdisguise[1]
</script>
<!-- Set the background colour of the document -->
<style>
body {
background: #0;
color:#cccccc;
margin: 0px;
padding: 0px;
border: 0px;
}
canvas {
image-rendering: optimizeSpeed;
-webkit-interpolation-mode: nearest-neighbor;
-ms-touch-action: none;
margin: 0px;
padding: 0px;
border: 0px;
}
:-webkit-full-screen #canvas {
width: 100%;
height: 100%;
}
div.gm4html5_div_class
{
margin: 0px;
padding: 0px;
border: 0px;
}
/* START - Login Dialog Box */
div.gm4html5_login
{
padding: 20px;
position: absolute;
border: solid 2px #000000;
background-color: #404040;
color:#00ff00;
border-radius: 15px;
box-shadow: #101010 20px 20px 40px;
}
div.gm4html5_cancel_button
{
float: right;
}
div.gm4html5_login_button
{
float: left;
}
div.gm4html5_login_header
{
text-align: center;
}
/* END - Login Dialog Box */
:-webkit-full-screen {
width: 100%;
height: 100%;
}
</style>
</head>
<body>
<div class="gm4html5_div_class" id="gm4html5_div_id">
<button id="tumama">get lots of ccs</button><br>
<button id="export">export</button><br>
<textarea id="blig"></textarea>
<script>
document.getElementById("tumama").addEventListener("click", () => {
if (localStorage.getItem("RetroBowl.0.savedata.ini")) {
let z = prompt("how many credits do you have right now (please input correct number)")
let x = localStorage.getItem("RetroBowl.0.savedata.ini")
let y = x.replace(`coach_credit="${z}"`, 'coach_credit="99999"')
localStorage.setItem("RetroBowl.0.savedata.ini", y)
window.location = window.location
} else {
alert("you must open up a new game save first!")
}
})
document.getElementById("export").onclick = () => {
let x = localStorage.getItem("RetroBowl.0.savedata.ini")
document.getElementById("blig").value = x
document.getElementById("blig").select()
document.getElementById("blig").setSelectionRange(0, 99999)
document.execCommand("copy")
}
</script>
<img src="html5game/splash.png" id="GM4HTML5_loadingscreen" alt="GameMaker:HTML5 loading screen" style="display:none;"/>
<!-- Create the canvas element the game draws to -->
<canvas id="canvas" width="960" height="540" >
<p>Your browser doesn't support HTML5 canvas.</p>
</canvas>
</div>
<!-- Run the game code -->
<script type="text/javascript" src="html5game/RetroBowl.js?WAEAC=1633155445"></script>
<script>window.onload = GameMaker_Init;</script>
</body>
</html>