-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
150 lines (132 loc) · 5.04 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>EV Startup Simulator</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="game-container">
<header>
<p id="welcome-message">Can your startup survive 2 years (104 weeks)?</p>
<div class="sound-controls">
<div class="volume-control">
<label for="bgm-volume">Music:</label>
<input type="range" id="bgm-volume" min="0" max="1" step="0.01" value="0.5">
</div>
<div class="volume-control">
<label for="sfx-volume">Sound Effects:</label>
<input type="range" id="sfx-volume" min="0" max="1" step="0.01" value="0.5">
</div>
</div>
</header>
<!-- Stock Ticker Bar -->
<div class="stock-ticker">
<div class="ticker-content" id="ticker-content"></div>
</div>
<div class="content">
<aside class="stats-panel">
<h2>Startup Stats</h2>
<p><strong>Startup Name:</strong> <span id="stat-name"></span></p>
<div class="stat-item">
<label>Week:</label>
<div class="progress-bar">
<div id="stat-week-bar" class="progress-bar-inner"></div>
</div>
</div>
<div class="stat-item">
<label>Cash:</label>
<div class="progress-bar">
<div id="stat-cash-bar" class="progress-bar-inner"></div>
</div>
</div>
<div class="stat-item">
<label>Reputation:</label>
<div class="progress-bar">
<div id="stat-reputation-bar" class="progress-bar-inner"></div>
</div>
</div>
<div class="stat-item">
<label>Workers:</label>
<div class="progress-bar">
<div id="stat-workers-bar" class="progress-bar-inner"></div>
</div>
</div>
<div class="stat-item">
<label>Environmental:</label>
<div class="progress-bar">
<div id="stat-environmental-bar" class="progress-bar-inner"></div>
</div>
</div>
</aside>
<main class="main-area">
<audio id="button-click-sound" src="sounds/button-click.mp3"></audio>
<audio id="decision-confirm-sound" src="sounds/decision-confirm.mp3"></audio>
<audio id="decision-cancel-sound" src="sounds/decision-cancel.mp3"></audio>
<audio id="event-positive-sound" src="sounds/event-positive.mp3"></audio>
<audio id="event-negative-sound" src="sounds/event-negative.mp3"></audio>
<audio id="background-music" src="sounds/background-music.mp3" loop></audio>
<div class="animation-container">
<h2 id="central-company-name"></h2>
<img src="images/production-line.webp" alt="Cartoon EV assembly line" class="production-animation">
</div>
</main>
<aside class="feed-panel">
<h2>News Feed</h2>
<div id="event-log" class="event-log"></div>
</aside>
</div>
<div class="action-button-container">
<button id="next-week" class="action-button">+</button>
<div class="action-button-label">Next Week</div>
</div>
</div>
<div class="start-screen" id="start-screen">
<div class="start-content">
<h1>Dear CEO,</h1>
<p>Welcome to the EV startup simulator. Your job is to make the right choices and make sure your company can survive its first two years as a startup. Press the Action button to advance the calendar but be prepared for the challenges you will face along the way! Name your flagship EV:</p>
<input type="text" id="car-name-input" placeholder="e.g. Aurora One"><br><br>
<button id="start-button">Start</button>
</div>
</div>
<div id="modal" class="modal hidden">
<div class="modal-content">
<p id="modal-message"></p>
<div class="modal-buttons">
<button id="modal-ok">OK</button>
<button id="modal-cancel" class="hidden">Cancel</button>
</div>
</div>
</div>
<div id="decision-popup" class="popup hidden">
<div class="popup-content">
<h3 id="popup-title"></h3>
<p id="popup-description"></p>
<div class="popup-buttons" id="popup-choices"></div>
</div>
</div>
<div id="minigame-popup" class="popup hidden">
<div class="popup-content">
<h3>Quality Control Check!</h3>
<p>Spot the odd component out. You have 5 seconds!</p>
<div id="minigame-grid" class="minigame-grid"></div>
</div>
</div>
<div id="investment-popup" class="popup hidden">
<div class="popup-content">
<h3>Investment Round!</h3>
<p>Click as many 💰 as you can in 3 seconds!</p>
<div id="investment-grid" class="minigame-grid"></div>
</div>
</div>
<div id="envminigame-popup" class="popup hidden">
<div class="popup-content">
<h3>Environmental Task!</h3>
<p>Click as many ♻️ as you can in 5 seconds (avoid 🗑️)!</p>
<div id="envminigame-grid" class="minigame-grid"></div>
</div>
</div>
<script src="script.js"></script>
</body>
</html>