-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgame.html
More file actions
283 lines (262 loc) · 15.4 KB
/
Copy pathgame.html
File metadata and controls
283 lines (262 loc) · 15.4 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
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
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
<!-- ====================================================================
Project: Climate Journey - Sustainable Mobility Game (CLEA - FHSTP)
File: game.html
Author: Victor-Adriel de-Jesus-Oliveira
Created: 2025-08-10
Purpose: Main game interface page. Hosts interactive
dice, score tracking, and modal dialogs.
Structure:
- #dice-list: Selectable dice buttons
- #modal-dice: Animated dice roll display
- #stats: Live points, emissions, steps, and challenges
- #emissions-chart: Canvas chart of emissions per round
Notes:
- Requires app.js (main game logic) loaded after DOM ready
- Uses <dialog> elements for modals (native HTML5)
- Language text populated dynamically via data-i18n attributes
==================================================================== -->
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>CLEA Game - Climate Journey</title>
<meta name="description" content="The CLEA companion app was created to be used with the board game Climate Journey. The board game was designed and developed by researchers at the FH St. Pölten with Austrian schools with the goal to reflect on the topic of sustainable mobility. Use the CLEA companion app to replace game materials such as dice, points, tokens, and cards." />
<meta name="author" content="Project CLEA (Check and Leave for Environmental Action)" />
<link rel="apple-touch-icon" sizes="180x180" href="assets/favicon/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="assets/favicon/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="assets/favicon/favicon-16x16.png">
<link rel="manifest" href="assets/favicon/site.webmanifest">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="css/styles.css" />
<!-- SEO -->
<meta name="keywords" content="CLEA game, CLEA board game, CLEA companion app, sustainable mobility game, educational mobility game, climate change board game, transport and environment game, eco-friendly transport game, school board game sustainability, mobility education Austria, environmental education game, classroom mobility activity, sustainable transport teaching tool, eco-education for kids, educational games for schools, climate action teaching resources, companion app for board game, virtual dice app, digital board game tools, online points tracker for board games, game tokens and cards app, mobile app for classroom games, sustainable transport Austria, green mobility learning, climate-friendly travel education, public transport education game, cycling and walking game activity, eco-mobility teaching tool, how to teach sustainable mobility in schools, fun classroom activities about transport and climate, educational games for climate action, learning about eco-friendly transport through play, interactive school games for sustainability">
<meta name="robots" content="index, follow">
<meta property="og:image" content="assets/clea_logo.png">
<meta property="og:description" content="A companion app for the educational board game Climate Journey.">
<meta property="og:title" content="CLEA - Educational Eco-Game">
<meta property="og:url" content="https://fhstp.github.io/CLEA/index.html">
<meta property="og:type" content="website">
</head>
<body data-page="game">
<!-- Cookie Consent by TermsFeed https://www.TermsFeed.com -->
<script type="text/javascript" src="https://www.termsfeed.com/public/cookie-consent/4.1.0/cookie-consent.js" charset="UTF-8"></script>
<script type="text/javascript" charset="UTF-8">
document.addEventListener('DOMContentLoaded', function () {
cookieconsent.run({"notice_banner_type":"simple","consent_type":"express","palette":"light","language":"en","page_load_consent_levels":["strictly-necessary"],"notice_banner_reject_button_hide":false,"preferences_center_close_button_hide":false,"page_refresh_confirmation_buttons":false,"website_name":"CLEA App","website_privacy_policy_url":"https://www.fhstp.ac.at/en/legal-information/legal-information?set_language=en"});
});
</script>
<!-- Google Analytics -->
<script async data-cookie-consent="tracking" src="https://www.googletagmanager.com/gtag/js?id=G-4NDRMB2TMR"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-4NDRMB2TMR');
</script>
<!-- end of Google Analytics-->
<noscript>Free cookie consent management tool by <a href="https://www.termsfeed.com/">TermsFeed</a></noscript>
<!-- End Cookie Consent by TermsFeed https://www.TermsFeed.com -->
<!-- Below is the link that users can use to open Preferences Center to change their preferences. Do not modify the ID parameter. Place it where appropriate, style it as needed. -->
<a href="#" id="open_preferences_center">Update cookies preferences</a>
<header class="topbar">
<a href="index.html" id="btn-home" class="icon-btn left" title="Homepage" data-i18n-title="game.home" aria-label="homepage"></a>
<div class="right">
<button id="btn-identity" class="icon-btn" aria-label="identity cards" aria-haspopup="dialog" aria-controls="modal-identity" title="Identity" data-i18n-title="game.identity"></button>
<button id="btn-info" class="icon-btn" aria-label="info" aria-haspopup="dialog" aria-controls="modal-info" title="Info" data-i18n-title="game.help"></button>
</div>
</header>
<main class="game">
<div id="active-identity" class="identity-pill" hidden></div>
<section class="dice-list" id="dice-list">
<!-- Buttons injected by JS for 4 dice -->
</section>
</main>
<!-- Modals -->
<dialog id="modal-identity" class="modal" aria-modal="true">
<form method="dialog" class="modal-card">
<div class="identity-hero">
<div class="sprite image" id="identity-hero-image" aria-hidden="true"></div>
</div>
<h2 data-i18n="identity.title">Play with identity cards?</h2>
<p data-i18n="identity.desc">Identity cards let you role-play (e.g., young, elderly, person with disabilities) to reflect diverse mobility needs.</p>
<div class="modal-actions">
<button value="dismiss" class="secondary" data-i18n="common.dismiss">Dismiss</button>
<button value="no" class="danger" data-i18n="common.no">No</button>
<button value="yes" class="primary" data-i18n="common.yes">Yes</button>
</div>
</form>
</dialog>
<dialog id="modal-help" class="modal" aria-modal="true">
<form method="dialog" class="modal-card">
<div class="help-hero">
<div class="sprite image" id="help-hero-image" aria-hidden="true"></div>
</div>
<h2 data-i18n="help.title">How to play</h2>
<p data-i18n="help.desc">Choose a die, roll it, then follow the board steps and note emissions. Use points/challenge if you land on those spaces.</p>
<p data-i18n="help.descDie">Some dice let you move far in a single turn but produce a lot of emissions. You may choose any die, unless your identity card forbids it or a challenge card restricts your choice.</p>
<div class="modal-actions">
<button class="primary" value="ok" data-i18n="common.dismiss">Dismiss</button>
</div>
</form>
</dialog>
<dialog id="modal-info" class="modal" aria-modal="true">
<form method="dialog" class="modal-card">
<div class="info-hero">
<div class="sprite image" id="info-hero-image" aria-hidden="true"></div>
</div>
<h2 data-i18n="info.title">About us</h2>
<p data-i18n="info.desc"></p>
<p><b>Ersteller / Creator:</b><br/> Jonathan Latour & Philipp Herzog</p>
<p><b>Redaktion / Editors:</b><br/> Hirut Grossberger, Pamela Nolz, Susanne Binder, Victor-Adriel De-Jesus-Oliveira, Zora Heis, Ana-Klarissa Breitkopf</p>
<p><b>Illustrationen / Illustrations:</b><br/> Ana-Klarissa Breitkopf</p>
<p><b>Companion App:</b><br/> Victor-Adriel De-Jesus-Oliveira</p>
<div class="modal-actions">
<button class="secondary" value="ok" data-i18n="common.dismiss">Dismiss</button>
</div>
</form>
</dialog>
<dialog id="modal-dice" class="modal wide" aria-modal="true">
<form method="dialog" class="modal-card dice">
<div class="dice-hero">
<div class="sprite image" id="dice-hero-image" aria-hidden="true"></div>
</div>
<p id="dice-small-text" class="small" data-i18n="dice.small">Roll to see your mobility action!</p>
<div class="dice-roller">
<div class="cube" id="dice-cube">
<div class="face front"></div>
<div class="face back"></div>
<div class="face right"></div>
<div class="face left"></div>
<div class="face top"></div>
<div class="face bottom"></div>
</div>
</div>
<p class="cta" id="dice-cta" data-i18n="dice.cta" aria-live="polite"></p>
<div class="modal-actions">
<button id="dice-next" class="primary" value="next" data-i18n="common.next">Next</button>
</div>
<div class="dice-step" id="dice-step" hidden>
<!-- Landing options after next -->
</div>
</form>
</dialog>
<dialog id="modal-landing" class="modal" aria-modal="true">
<form method="dialog" class="modal-card">
<h2 data-i18n="landingOptions.title">Did you land on a special field?</h2>
<div class="landing-options">
<button id="landing-points" value="points" class="option points" data-i18n="landingOptions.points">Points</button>
<button id="landing-challenge" value="challenge" class="option challenge" data-i18n="landingOptions.challenge">Challenge</button>
</div>
<div class="modal-actions">
<button class="secondary" value="no" data-i18n="common.no">No</button>
</div>
</form>
</dialog>
<dialog id="modal-points" class="modal" aria-modal="true">
<form method="dialog" class="modal-card">
<h2 data-i18n="points.title">Add points</h2>
<label>
<span data-i18n="points.hint">How many points?</span>
<input id="points-input" type="number" inputmode="numeric" min="0" step="1" />
</label>
<div class="modal-actions">
<button class="secondary" id="points-cancel" value="cancel" data-i18n="common.cancel">Cancel</button>
<button class="primary" id="points-done" value="done" data-i18n="common.done">Done</button>
</div>
</form>
</dialog>
<dialog id="modal-emissions" class="modal" aria-modal="true">
<form method="dialog" class="modal-card">
<h2 data-i18n="emissions.title">Edit emissions</h2>
<label>
<span data-i18n="emissions.hint">Add or remove emissions:</span>
<input id="emissions-input" type="number" inputmode="numeric" min="0" step="1" />
</label>
<div class="modal-actions">
<button class="secondary" id="emissions-cancel" value="cancel" data-i18n="common.cancel">Cancel</button>
<button class="primary" id="emissions-done" value="done" data-i18n="common.done">Done</button>
</div>
</form>
</dialog>
<dialog id="modal-steps" class="modal" aria-modal="true">
<form method="dialog" class="modal-card">
<h2 data-i18n="steps.title">Edit steps</h2>
<label>
<span data-i18n="steps.hint">How many steps have you moved?</span>
<input id="steps-input" type="number" inputmode="numeric" min="0" step="1" />
</label>
<div class="modal-actions">
<button class="secondary" id="steps-cancel" value="cancel" data-i18n="common.cancel">Cancel</button>
<button class="primary" id="steps-done" value="done" data-i18n="common.done">Done</button>
</div>
</form>
</dialog>
<dialog id="modal-final" class="modal" aria-modal="true">
<form method="dialog" class="modal-card">
<h2 data-i18n="final.title">Final Points</h2>
<span data-i18n="final.hint">For each 3 emissions, you lose a point.</span>
<div class="final-options">
<div id="final-points" class="option points">0</div>
<div id="final-emissions" class="option emissions">0</div>
<div id="final-final" class="option final">0</div>
</div>
<div class="modal-actions">
<button class="secondary" id="final-cancel" value="cancel" data-i18n="common.dismiss">Dismiss</button>
</div>
</form>
</dialog>
<dialog id="modal-challenge" class="modal" aria-modal="true">
<form method="dialog" class="modal-card">
<div class="challenge-hero">
<div class="sprite image" id="challenge-hero-image" aria-hidden="true"></div>
</div>
<h2 data-i18n="challenge.title">Challenge</h2>
<p id="challenge-text">...</p>
<div class="modal-actions challenge">
<button id="challenge-points" class="secondary" value="points" data-i18n="stats.points">Points</button>
<button id="challenge-emissions" class="secondary" value="emissions" data-i18n="stats.emissions">Emissions</button>
<button id="challenge-steps" class="secondary" value="steps" data-i18n="stats.steps">Steps</button>
</div>
<div class="modal-actions">
<button id="challenge-done" class="primary" value="done" data-i18n="common.done">Done</button>
</div>
</form>
</dialog>
<!-- Bottom sheet -->
<section id="bottom-sheet" class="sheet" aria-label="Stats panel" aria-expanded="false">
<div class="handle" id="sheet-handle" tabindex="0" role="button" aria-grabbed="false" aria-label="Expand bottom sheet"></div>
<div class="sheet-content">
<div class="stats">
<button id="stat-points" class="stat">
<div class="label" data-i18n="stats.points">Points</div>
<div class="value" id="stat-points-value">0</div>
</button>
<div id="stat-challenges" class="stat">
<div class="label" data-i18n="stats.challenges">Challenges</div>
<div class="value" id="stat-challenges-value">0</div>
</div>
<button id="stat-emissions" class="stat">
<div class="label" data-i18n="stats.emissions">Emissions</div>
<div class="value" id="stat-emissions-value">0</div>
</button>
<button id="stat-steps" class="stat">
<div class="label" data-i18n="stats.steps">Steps</div>
<div class="value" id="stat-steps-value">0</div>
</button>
</div>
<canvas id="emissions-chart" height="160"></canvas>
<div class="sheet-footer">
<div>
<button id="btn-reset" class="danger" data-i18n="stats.reset">Reset</button>
<button id="btn-download" class="secondary" aria-label="download game data">📥</button>
</div>
<button id="btn-final" class="primary" data-i18n="stats.final">Final Points</button>
</div>
</div>
</section>
<script src="js/app.js"></script>
</body>
</html>