-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
86 lines (83 loc) · 3.88 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" type="image/svg" href="images/rope.svg ">
<link href="styles.css" type="text/css" rel="stylesheet">
<script src="script.js" type="text/javascript"></script>
<title>Rock Paper Scissors</title>
</head>
<body>
<header>
<div class="horizontal-section">
<h1>Pol Kola Lanu</h1>
<img src="images/srilanka-flag.png" alt="Sri lankan flag" height="20">
</div>
<p>A Sri Lankan clone of Rock Paper Scissors, for the Odin Project.</p>
</header>
<main>
<section id="instructions">
<div class="horizontal-section extra-bottom-margin">
<h2>Backstory</h2>
<img id="instructions-btn" src="images/chevron-down.svg" alt="A chevron-down icon to see more"
height="20">
</div>
<div id="instructions-section" class="info-section invisible-section">
<p>Pol, Kola and Lanu are Sinhala (the main language spoken in Sri Lanka) words, spelt using English
characters:</p>
<ul>
<li>Pol (coconut) is equivalent to Rock.</li>
<li>Kola (leaves) is equivalent to Paper.</li>
<li>Lanu (rope) is equivalent to Scissors.</li>
</ul>
<p>This choice of these words was mainly influenced by Sri Lanka being a largely cocunut-centered
economy.
<p>The coconut tree is used for roofing (by tatching its leaves), making ropes (by weaving coconut
fibres)
and so much more.</p>
<p>We use the coconut for a lot of things, and now as a replacement to rock paper scissors too.</p>
</div>
</section>
<section id="rounds-container">
<h2>Select the number of rounds you wish to play</h2>
<div class="info-section">
<label id="rounds-label" for="rounds">Rounds: 3</label>
<input id="rounds-count" type="range" list="rounds-counts" min="3" max="9" step="2" value="3">
<datalist id="rounds-counts">
<option value="3"></option>
<option value="5"></option>
<option value="7"></option>
<option value="9"></option>
</datalist>
<input id="continue-btn" type="button" value="Continue">
</div>
</section>
<section id="game-container">
<h2 id="current-round-label">Press continue to start playing</h2>
<div id="game-container-elements" class="info-section invisible-section">
<h3>Select your choice from below</h3>
<div id="game-selectors">
<div id="rock">
<img src="images/coconut.svg" alt="A vector drawing of a coconut" height="100">
<p class="image-label"><b>Pol</b> (i.e. Rock)</p>
</div>
<div id="paper">
<img src="images/leaf.svg" alt="A vector drawing of a coconut leaf" height="100">
<p class="image-label"><b>Leaf</b> (i.e. Paper)</p>
</div>
<div id="scissors">
<img src="images/rope.svg" alt="A vector drawing of a rope made of coconut fibres" height="100">
<p class="image-label"><b>Rope</b> (i.e. Scissors)</p>
</div>
</div>
<h3 id="game-result">Computer waiting...</h3>
<h3 id="game-score">Score: 0</h3>
</div>
</section>
</main>
<footer>
<p>Copyright © Sachintha Senanayake 2023</p>
</footer>
</body>
</html>