-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
119 lines (104 loc) · 4.32 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
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
<!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>Some small programs</title>
<link rel="stylesheet" href="style.css">
<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=Edu+VIC+WA+NT+Beginner:wght@400;600&display=swap" rel="stylesheet">
</head>
<body>
<div class="container">
<!-- Hypotnuse calculator practice program -->
<section>
<div class="content">
<div class="wrapper">
<h1 class="hypotnuseH1">-Hypotenuse calculator-</h1>
<div class="inputAB">
<div class="inputA">
<label for="aText"><strong>a</strong> <em>Leg</em></label>
<input type="text" onfocus="this.value=''" inputmode="numeric" pattern="[0-9]" placeholder="Enter A" id="aText">
</div>
<div class="inputB">
<label for="bText"><strong>b</strong> <em >Leg</em></label>
<input type="text" onfocus="this.value=''" inputmode="numeric" pattern="[0-9]" placeholder="Enter B" id="bText">
</div>
</div>
<div class="btn">
<button type="button" id="submitButton">Submit</button>
<label id="cLabel">C ≈ (a²+b²)<span>2</span></label>
</div>
</div>
</div>
</section>
<!-- Counter program -->
<section>
<div class="content">
<h1>-Counter-</h1>
<label id="countLabel">0</label>
<button id="decreaseBtn">decrease</button>
<button id="resetBtn">reset</button>
<button id="increaseBtn">increase</button>
</div>
</section>
<!-- Random number generator -->
<section>
<div class="content">
<h1>-Random number generator-</h1>
<label id="xLabel">0-</label>
<label id="zLabel">0-</label>
<label id="yLabel">0</label>
<button type="button" id="rollBtn">roll</button>
</div>
</section>
<!-- Number Guessing Game -->
<section>
<div class="content">
<h1>-Number Guessing-</h1>
<p2 id="guessP">Pick a # between 1-10</p2>
<label for="guessInput">Enter your guess:</label>
<input id="guessInput">
<input type="submit" id="guessBtn">
<label id="guessAnswer"></label>
</div>
</section>
<!-- Clock program -->
<section>
<div class="content">
<h1>Clock</h1>
<label id="myClockLabel"></label>
</div>
</section>
<!-- Stopwach program -->
<section>
<div class="content">
<h1>Stopwach program</h1>
<div id="timeContainer">
<label id="timeDisplay">00:00:00:00</label><br>
<button id="startButton" class="timerBtn">Start</button>
<button id="pauseButton" class="timerBtn">Pause</button>
<button id="resetButton" class="timerBtn">Reset</button>
</div>
</div>
</section>
<!-- Rock Paper Scissors game -->
<section>
<div class="content">
<h1>Rock Paper Scissors game</h1>
<div id="rpsGame">
<h1 id="playerText">Player: </h1>
<h1 id="computerText">Computer: </h1>
<h1 id="resultText">Result: </h1>
<button class="choiceBtn">✊</button>
<button class="choiceBtn">✋</button>
<button class="choiceBtn">✌️</button>
</div>
</div>
</section>
</div>
<script src="index.js"></script>
</body>
</html>