-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
60 lines (60 loc) · 2.86 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="description" content="A responsive counter made using JavaScript that allows the user to increase, decrease and reset the number count.">
<meta name="keywords" content="JavaScript, counter">
<meta name="author" content="Andrea Ferrari">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Counter made using JavaScript</title>
<link rel="icon" type="image/x-icon" href="assets/img/favicon.ico">
<meta property="og:title" content="Responsive counter by Andrea Ferrari" />
<meta property="og:type" content="website" />
<meta property="og:url" content="https://counter-js-andrea-ferrari.netlify.app/"/>
<meta property="og:description" content="Try out this responsive counter made using JavaScript by Andrea Ferrari" />
<meta property="og:image" content="https://raw.githubusercontent.com/andreaferrari95/Counter-JS/main/assets/img/Screenshot.png"/>
<link rel="stylesheet" href="assets/css/styles.css" type="text/css">
</head>
<body>
<!--Instruction message at the beginning-->
<div class="modal" id="instructionsModal">
<div class="instruction-content">
<h2>Counter Instructions</h2>
<p>Welcome to the counter! <br>You can use your mouse to click on the buttons or you can use your keyboard too!</p>
<p>Keyboard usage:</p>
<p>Use the following keys:</p>
<p><strong>+</strong> - Increment</p>
<p><strong>-</strong> - Decrement</p>
<p><strong>r</strong> - Reset</p>
<p><strong>i</strong> - Toggle Instructions</p>
<p class="margins"><strong>Enter</strong> - Close Congratulations message and continue</p>
<p class="margins enjoy">Enjoy counting!</p>
<button id="dismissInstructions">Dismiss</button>
</div>
</div>
<!--Counter-->
<div class="counter">
<h2>Counter</h2>
<div class="count">
<span></span>
</div>
<div class="btns">
<span class="decrement"></span>
<span class="reset"></span>
<span class="increment"></span>
</div>
</div>
<!--Congratulations message-->
<div class="modal" id="congratulationsModal">
<img id="congratulationsImages" alt="congratulations">
<div class="buttons-container">
<button id="continue">Continue</button>
<button id="resetAfterCongrats">Reset</button>
</div>
</div>
<!--Instuctions button-->
<button id="recallInstructions" class="recall-instructions-btn">Instructions</button>
<script src="assets/JavaScript/script.js" type="text/JavaScript"></script>
</body>
</html>