-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
204 lines (176 loc) · 4.78 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
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
<!DOCTYPE html>
<html>
<head>
<title>PETSCII</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
body {
margin: 0;
font-size: 14px;
color: #E8E6E3;
background-color: #181A1B;
}
button {
font-family: "Consolas", monospace;
color: #E8E6E3;
border-width: 1px;
border-style: solid;
border-color: rgb(115, 106, 94);
background-color: #2E3233;
}
button:hover {
background-color: rgb(44, 40, 31);
}
input, select {
font-family: "Consolas", monospace;
font-size: 14px;
color: #E8E6E3;
background-color: #181A1B;
border-style: solid;
border-color: rgb(115, 106, 94);
}
input[type=number]::-webkit-inner-spin-button {
display: none;
}
pre {
font-family: "Consolas", monospace;
font-size: 14px;
cursor: text;
overflow-x: auto;
}
#menu span, button, .click {
cursor: pointer;
}
::-webkit-scrollbar {
cursor: default;
color: #aba499;
background-color: #202324;
}
::-webkit-scrollbar-corner {
cursor: default;
background-color: #181a1b;
}
::-webkit-scrollbar-thumb {
cursor: default;
background-color: #454a4d;
}
.highlight {
background-color: #3C4144;
}
.bold {
font-weight: bold;
}
.center {
display: flex;
flex-direction: column;
align-items: center;
}
#menu {
position: fixed;
margin: 0;
background-color: #181A1B;
}
#textbox {
height: 40px;
margin: 10px 0;
text-align: center;
}
</style>
</head>
<body class="center">
<!--
__
.' o'.
/ o \
| O| Egg!
\ o /
'–..–'
-->
<pre id="menu" style="visibility: hidden"></pre>
<div style="height: 90px;"></div>
<div id="home" class="center">
<pre id="pet"></pre>
<pre id="textbox"></pre>
<button id="button" onclick="advance()">Open</button>
<div id="pet_interact" style="display: none;">
<button onclick="petPet()">Pet</button>
<button onclick="brushPet()">Brush</button>
</div>
</div>
<div id="pda" class="center" style="display: none;">
<pre id="pda_sprite"></pre>
<div style="width: 100%;">
<button id="pda_prev" style="visibility: hidden;" onclick="pdaPrevPage()">Previous page</button>
<button id="pda_next" style="float: right; visibility: hidden;" onclick="pdaNextPage()">Next page</button>
</div>
</div>
<div id="map" class="center" style="display: none;">
<button id="map_button" style="" onclick="">Back to the map</button>
<div style="max-width: 100vw;"><pre id="map_sprite" style="padding-bottom: 2em;"></pre></div>
</div>
<div id="cook" class="center" style="display: none;">
<div>
<pre id="cookbook"></pre>
<div style="margin-bottom: 2em; width: 100%;">
<button id="cook_prev" style="visibility: hidden;" onclick="cookPrevPage()">Previous page</button>
<button id="cook_next" style="float: right;" onclick="cookNextPage()">Next page</button>
</div>
<pre class="bold">What you want to put in the pan</pre>
<div style="margin-bottom: 1em;">
<input id="cook_amount" type="number"></input>
<pre style="display: inline;"> dekagrams of </pre>
<select id="cook_ingredient">
<option value="water">Water</option>
<option value="carrot">Carrot</option>
<option value="cucumber">Cucumber</option>
<option value="celery">Celery</option>
<option value="potato">Potato</option>
<option value="apple">Apple</option>
<option value="blueberries">Blueberries</option>
<!--<option value="ham">Ham</option>-->
<option value="tuna">Tuna</option>
<option value="milk">Milk</option>
<option value="sugar">Sugar</option>
</select>
</div>
<button style="margin-bottom: 1em;" onclick="cookPut()">Put that into the pan</button>
<pre class="bold">What is in the pan</pre>
<pre id="cook_inPan" style="margin-bottom: 2em; margin-left: 1em;"> </pre>
<pre class="bold">What you can do with it</pre>
<div>
<button onclick="cookStart('chop')">Chop</button>
<button onclick="cookStart('mix')">Mix</button>
<button onclick="cookStart('heat')">Heat</button>
<button onclick="cookStop()">Stop</button>
</div>
<pre id="cook_action"> </pre>
<button onclick="cookFinish()">Put in a bowl</button>
<pre id="cook_results"> </pre>
</div>
</div>
<div id="save" class="center" style="display: none;"></div>
<div id="config" class="center" style="display: none;"></div>
<script type="text/javascript" src="scripts/pet.js"></script>
<script type="text/javascript" src="scripts/game.js"></script>
<script type="text/javascript" src="scripts/menu.js"></script>
<script type="text/javascript" src="scripts/pda.js"></script>
<script type="text/javascript" src="scripts/dialog.js"></script>
<script type="text/javascript" src="scripts/cook.js"></script>
<script>
// DEBUG
/*me.tabs.home = true
game.tabs.pda = true
game.tabs.map = true
game.tabs.cook = true
goToPlace('Lawn')
game.state = states.finished
setSprite(pet, 'pet_idle')
textbox.style.display = 'none'
button.style.display = 'none'
updateMenu()
menu.style.visibility = null
//*/
</script>
</body>
</html>