This repository has been archived by the owner on Apr 23, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
57 lines (56 loc) · 1.59 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Simple Game</title>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/showdown.min.js" defer></script>
<script src="index.js" defer></script>
<style>
.consoleTitle {
font-style: italic;
}
.consoleText {
text-decoration: underline dotted;
text-decoration-color: palevioletred;
}
footer {
margin-top: 2em;
}
h1#field + p {
margin-bottom: 0;
}
.step {
margin: 0;
transform: scaleY(1);
transition: all 0.5s linear;
}
.step.hidden {
transform: scaleY(0);
overflow: hidden;
}
</style>
</head>
<body>
<template id="level">
<h1 id="field"></h1>
<div id="field"></div>
<div class="step hidden" id="field"></div>
<div class="step hidden" id="field"></div>
<div class="step hidden" id="field"></div>
</template>
<template id="transition">
<h1>Wow! You did it! 💪</h1>
<div>
<p>Very good. You have managed to do this one.</p>
<p>Let's go to the next!</p>
</div>
</template>
<div id="application"></div>
<footer>
<button id="prevLevel">Previous</button>
<button id="remix">Remix</button>
<button id="nextLevel">Next</button>
</footer>
</html>