-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSaveCodePage.html
More file actions
51 lines (50 loc) · 1.51 KB
/
Copy pathSaveCodePage.html
File metadata and controls
51 lines (50 loc) · 1.51 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
<html>
<head>
<title>Portal Jump</title>
<link rel="icon" type = "png" href="PortalJumpFavicon.png" />
<meta name = "apple-mobile-web-app-capable" content = "yes">
<style>
body {
margin: 100px;
display: block;
font-family: Impact;
font-size: 20px;
text-align: center;
}
#pwd {
border-style: solid;
width: 30%;
margin: auto;
}
a {
border-style: solid;
text-decoration: none;
color: black;
}
@font-face {
font-family: Impact;
src: url(impact.ttf);
}
</style>
</head>
<body>
<a href = "index.html">Back</a>
<h1>Instructions for Save Code</h1>
The Save Code is a way you can take your game progress to another computer. To do so, copy and paste the code in the box below into the box on the computer you wish to bring your progress to. Don't try to cheat with it though- if you put in an invalid save code all of your progress will be deleted.
<h2>Save Code Box</h2>
<div id = "pwd" contenteditable = "true">
</div>
<script>
//Sets the pass variable to the save code ID
var pass = document.getElementById("pwd");
//Sets the pass inner text
pass.innerText = (localStorage.highscore * 367423786);
setInterval(function(){
//sets highscore to pass inner text
localStorage.highscore = pass.innerText / 367423786;
//Checks for cheating
if(localStorage.highscore != Math.floor(localStorage.highscore)) localStorage.highscore = 0;
}, 1);
</script>
</body>
</html>