-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
139 lines (123 loc) · 3.38 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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
<head>
<meta name=viewport content="width=device-width, initial-scale=1">
<script src="animation.js"></script>
<script src="content.js"></script>
<script src="random.js"></script>
<script src="maze.js"></script>
<script src="path.js"></script>
<script src="game.js"></script>
<script src="audio.js"></script>
</head>
<style>
body{
font-family: helvetica;
letter-spacing: 1x;
line-height: 1.5em;
background: #ccc;
padding: 50px;
text-align: center;
text-transform: uppercase;
color: #222;
}
#animation{
line-height: 1em;
display: none;
opacity:0;
font-size: 1.2vw;
}
#description{
opacity: 0;
display: none;
}
.fade {
opacity:0;
}
p{
display: block;
opacity:1;
font-size: 1em;
font-size-adjust: none !important;
}
body * {
-webkit-transition: opacity 1s ease-in;
-moz-transition: opacity s ease-in;
-ms-transition: opacity 1s ease-in;
-o-transition: opacity 1s ease-in;
transition: opacity 1s ease-in;
margin: 10px;
}
br{
width:100%;
margin:10px;
height:10px;
}
input {
background-color: #ccc;
padding: 5px;
border: none;
font-size: 1em !important;"
font-size-adjust: none !important;
color: #222;
text-decoration: underline;
}
.border{
border:2px solid
}
#title{
display:none;
opacity:0;"
}
#mastergrid {
font-family: monospace;
display: none;
}
#mastergrid *{
margin: 0px;
}
#controls {
display:none;
}
#inventory{
display:none;
}
#debugDiv{
display:none;
}
#seedChoice{
opacity:0;
display:none;
}
@media only screen and (max-width: 768px) {
body {
padding: 20px 0px 20px 0px;
margin: 0px;
}
p {
font-size-adjust: none !important;
font-size: 1em !important;
}
input {
font-size-adjust: none !important;
font-size: 1em !important;
}
}
</style>
<body onload='introduction();'>
<div class = "border" id="debugDiv"></div>
<div id ="text">
<div id = "seedChoice">
<p>Choose a 4 digit seed value. If you generate the maze twice using the same value, the maze will be identical</p>
<input class= "border" id="seed" type = "text" placeholder="Enter 4 digit seed number" value = 1234>
<input class = "border" id="seed" type = "button" value="Choose seed" onclick="chooseSeed(parseInt(document.getElementById('seed').value))">
</div>
<p id="title"></p>
<pre id='animation'></pre>
<p id = "distance"></p>
<p id ="description"></p>
<p id = "redThread"></p>
<p id="direction"></p>
<p id="controls"><input value='LEFT' type = "button" id='the left'><input value='RIGHT' type = "button" id='the right'><input value='FORWARD' type = "button" id='ahead'><input value='BACK' type = "button" id='behind'><input value='ASCEND' type = "button" id='ascend' onclick = 'ascendTwo()'><input value='GO BACK' type = "button" id='goback' onclick='ascendGoBack()'></p>
<p id="inventory"></p>
</div>
<div id="masterGrid"><div id="gridDiv"></div></div>
</body>