-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
181 lines (151 loc) Β· 5.5 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<link rel="stylesheet" href="style.css" />
<title>
<%= htmlWebpackPlugin.options.title %>
</title>
</head>
<body>
<div>
<button class="sound global-sound button"></button>
</div>
<audio id="background-music" src="audio/265549__vikuserro__cheap-flash-game-tune.mp3" type="audio/mpeg" loop></audio>
<header class="header">
<h1>π¦ Ice Cream Stand π¦</h1>
</header>
<div class="message"></div>
<aside class="sidebar">
<div class="info">
<div>Day:<span class="day">0</span></div>
<div>$<span class="money">0</span></div>
</div>
<div class="info">
<div class="day-meter meter">
<div class="bar"></div>
</div>
<div class="ice-cream">
<span class="small-emoji">π¦</span>x<span class="ice-cream-count">0</span>
</div>
</div>
<!-- <div class="make-wrapper">
<div>
<button class="button make">
Make 10 <span class="small-emoji">π¦</span>
<div class="text-small">$<span class="icecream-cost">0</span> each</div>
</button>
</div> -->
<!-- <div class="make-meter meter"> -->
<span></span>
</div>
</div>
<div class="price">
Price: $<span class="icecream-sale-price">0.00</span>
<!-- <input
type="range"
min="1"
max="100"
value="50"
class="slider"
id="myRange"
/> -->
</div>
</aside>
<main class="board">
<div class="board-wrapper">
<div class="weather hidden">π§</div>
<div class="weather rain-wrapper">
<div class="rain front-row"></div>
</div>
<div class="weather sun">βοΈ</div>
<div class="weather thunderstorm">π©</div>
<div class="stand">
<div class="sign">π¦ $<span class="price"></span> π¦</div>
<div class="icon">π</div>
</div>
<div class="ground"></div>
</div>
<div class="fade-out hidden"></div>
</main>
<footer class="footer">Hi Kaitlyn, Anna, and Jack! ππ»</footer>
<div class="day-start-modal modal hidden">
<div class="modal-wrapper">
<form class="day-start">
<div class="ticker-wrap">
<div class="ticker">
</div>
</div>
<h2 class="wrapper-day"><span class="player-name"></span> Day: <span class="day">0</span></h2>
<div>
<div><span class="medium-emoji">π¦</span><span class="current-ice-cream-count"></span> + <span
class="medium-emoji">π¦</span><span class="create-ice-cream-count"></span> new </div>
<div class="cash-error error"></div>
<div>Cash: $<span class="cash" /> </div>
</div>
<div>
<span class="price-wrapper"></span> Berries per ice cream:
<span class="berries berries-center">
<input type="range" min="1" max="20" value="0" class="slider berry-slider" id="myRange" />
<span class="berry-count">0</span>π x $<span class="berry-cost">0.00</span> = $<span
class="berries-per-item-cost">0.00</span>
</div>
</div>
<div>
<div class="sticks">How much ice cream do you want to make?</div>
<div class="icecream-count-error error"> </div>
<div>Ice Cream:<input type="number" min="0" value="0" required class="icecream-count" /> π¦</div>
</div>
<div>How much do you sell your ice cream for?</div>
<div>
<div class="icecream-price-error error"> </div>
<div>Price: $<input value="0.00" min="0.01" step="0.01" type="number" min="0" required class="icecream-price" />
</div>
</div>
<button class="button go rainbow-background">Go!</button>
</form>
</div>
</div>
<div class="day-result-modal modal hidden">
<div class="modal-wrapper">
<h2 class="wrapper-day">Day: <span class="day">0</span></h2>
<h2>Sales: <span class="icecream-sold"></span>π¦ x
<span class="icecream-sale-price"></span> =
<span class="revenue"></span>
</h2>
<h2>Profit: <span class="icecream-sold2"></span>π¦ x
<span class="icecream-profit-per-item"></span> =
<span class="total-profit"></span>
</h2>
<h2>Starting Cash: $<span class="starting-cash"></span> -> Ending Cash: $<span class="cash"></span></h2>
<h2>Inventory: <span class="inventory"></span>π¦</h2>
<button class="button ok rainbow-background">OK</button>
</div>
</div>
<div class="end-game-modal modal hidden">
<div class="modal-wrapper">
<h1> π₯³ Game over π₯³</h1>
<h2 class="wrapper-day">Days: <span class="days"></span></h2>
<h2>You made: $<span class="cash"></span></h2>
<button class="button ok rainbow-background">OK</button>
</div>
</div>
<div class="game-over-modal modal hidden">
<div class="modal-wrapper">
<h1> π₯³ Game over π₯³</h1>
<div class="high-scores">
<h2>High Scores</h2>
<ul class="high-scores-list"></ul>
<button class="button new-game rainbow-background">New Game</button>
<div class="name-wrapper hidden">Name:
<input type="text" class="name" id="name" required minlength="1" maxlength="10" size="10">
<button class="button go rainbow-background">Go</button>
</div>
</div>
</div>
</div>
<div class="overlay hidden"></div>
</body>
</html>