-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
86 lines (86 loc) · 3.17 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
<!-- prettier-ignore -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<!--=== HTML Meta Tags ===-->
<title>Fish: Find your true self</title>
<meta name="description" content="A fish quiz." />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="color-scheme" content="light" />
<!--=== Favicon ===-->
<link rel="icon" href="https://fav.farm/🐟" />
<!--=== CDN links ===-->
<!--=== Stylesheet ===-->
<link rel="stylesheet" href="styles.css" />
</head>
<body>
<header></header>
<main>
<article class="quiz">
<header>
<p>Fish: Find your true self</p>
<fieldset>
<button id="help">?</button>
<button id="close">X</button>
</fieldset>
</header>
<div id="fish-quiz" class="space-children">
<div class="fish-image">
<img
src="https://fishhudsonvalley.com/wordpress/wp-content/uploads/2015/08/large_mouth-bass-copy1.png"
alt="Largemouth Bass"
/>
</div>
<p>Question <span id="question-counter">?/?</span></p>
<p id="question-text">"I have fond memories of being a fish."</p>
<fieldset>
<button id="btn-yes">Yes</button>
<button id="btn-no">No</button>
<button id="btn-possibly">Possibly</button>
</fieldset>
<div>
<div id="fish-meter" style="--fish-count: 0"></div>
<p>
<small>Level: <span id="fish-level">0</span></small>
</p>
</div>
<p>Fishy-o-meter</p>
</div>
<div id="loading" class="space-children" style="display: none">
<h2>Loading results</h2>
<p>Please wade warmly<span id="dots"></span></p>
<div class="fish-image">
<img src="https://media.tenor.com/ZHze27YyLIkAAAAC/joel-spinning.gif" alt="Spinning fish" />
</div>
</div>
<div id="fish-results" class="space-children" style="display: none">
<h2>Results</h2>
<div class="result-grid">
<div>
<p>You chose Yes <strong id="yes-count">?</strong> times</p>
<p>You chose No <strong id="no-count">?</strong> times</p>
<p>You chose Possibly <strong id="possibly-count">?</strong> times</p>
</div>
<div class="space-children">
<p>Your final fish level was <strong id="result-level">?</strong></p>
<p>Your rating is <strong id="result-rating">?</strong></p>
</div>
</div>
<div class="fish-image-sm">
<img src="https://media0.giphy.com/media/lPuW5AlR9AeWzSsIqi/giphy.gif" alt="fish pog" />
</div>
<button id="btn-retry">Try again?</button>
</div>
</article>
</main>
<footer>
<p>Created with 🐟 by <a href="https://github.com/FireIsGood">FireIsGood</a></p>
<p><a href="https://github.com/FireIsGood/fish-quiz">Source code</a></p>
</footer>
<dialog id="help-dialog">
<p>But nobody came...</p>
</dialog>
<script src="script.js"></script>
</body>
</html>