-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
65 lines (60 loc) · 2.4 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
<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">
<link rel ="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.0/dist/css/bootstrap.min.css">
<link rel="stylesheet" href="style.css">
<title>Fun javascript projects</title>
</head>
<body>
<div class ="container-1">
<h2> Challenge 1:Your Age in Days </h2>
<div class="flex-box-container-1">
<div>
<button class ="btn btn-primary" onclick="ageInDays()">Click me</button>
</div>
<div>
<button class ="btn btn-danger" onclick="reset()">Reset</button>
</div>
</div>
<div class = "flex-btn-container-1">
<div id="flex-box-result">
</div>
</div>
</div>
<div class="container-2">
<h2>Challenge 2: Cat Generator</h2>
<div class="flex-box-container-2"></div>
<button class="btn btn-success" id="cat-generator" onclick="generateCat()">Generate Cat</button>
<div class="flex-box-container-2" id="flex-cat-gen">
</div>
</div>
<div class="container-3">
<h2>Challenge 3: Rock,Paper,Scissors</h2>
<div class="flex-box-rps" id="flex-box-rps-div">
<img id="rock" src="C:\Users\JAHANWEE\Desktop\javascript8\static\rock.jpg" height=150 width=150 alt="" onclick="rpsGame(this)">
<img id="paper" src="C:\Users\JAHANWEE\Desktop\javascript8\static\paper.jpg" height=150 width=150 alt="" onclick="rpsGame(this)">
<img id="scissors" src="C:\Users\JAHANWEE\Desktop\javascript8\static\scissors.png" height=150 width=150 alt="" onclick="rpsGame(this)">
</div>
</div>
<div class="container-4">
<h2 id="change-my-color">Challenge 4 : Change the color of All Buttons </h2>
<div class="flex-box-pick-color">
<form action="">
<select name="backdrop" id="background" onchange="buttonColorChange(this)">
<option value="random">Random</option>
<option value="red">Red</option>
<option value="green">Green</option>
<option value="reset">Reset</option>
</select>
</form>
<button class="btn btn-primary">Wee!</button>
<button class="btn btn-danger">Yahoo</button>
<button class="btn btn-warning">Google</button>
<button class="btn btn-success">Facebook</button>
</div>
</div>
<script src = script.js></script>
</body>
</html>