-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
98 lines (93 loc) · 3.6 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
<!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" />
<link
rel="stylesheet"
href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css"
integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO"
crossorigin="anonymous"
/>
<title>Javascript Challenges</title>
<link rel="stylesheet" href="style.css" />
</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-box-container-1">
<div id="flex-box-result"></div>
</div>
</div>
<!-- ************************************** -->
<div class="container-2">
<h2>Challenge 2: Img generator</h2>
<button
class="btn btn-success"
id="cat-generator"
onclick="generateCat()"
>
Generate Image
</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="https://images.unsplash.com/photo-1512522961291-56841b798dee?crop=entropy&cs=tinysrgb&fit=crop&fm=jpg&h=150&ixid=MnwxfDB8MXxyYW5kb218fHx8fHx8fHwxNjI0OTkyNzI4&ixlib=rb-1.2.1&q=80&utm_campaign=api-credit&utm_medium=referral&utm_source=unsplash_source&w=150"
alt=""
onclick="rpsGame(this)"
/>
<img
id="paper"
src="https://images.unsplash.com/photo-1562654501-a0ccc0fc3fb1?crop=entropy&cs=tinysrgb&fit=crop&fm=jpg&h=150&ixid=MnwxfDB8MXxyYW5kb218fHx8fHx8fHwxNjI0OTkyODY3&ixlib=rb-1.2.1&q=80&utm_campaign=api-credit&utm_medium=referral&utm_source=unsplash_source&w=150"
alt=""
onclick="rpsGame(this)"
/>
<img
id="scissors"
src="https://images.unsplash.com/photo-1587115508501-2628609cbea6?crop=entropy&cs=tinysrgb&fit=crop&fm=jpg&h=150&ixid=MnwxfDB8MXxyYW5kb218fHx8fHx8fHwxNjI0OTkyOTQ1&ixlib=rb-1.2.1&q=80&utm_campaign=api-credit&utm_medium=referral&utm_source=unsplash_source&w=150"
alt=""
onclick="rpsGame(this)"
/>
</div>
</div>
<!-- ********************************** -->
<div class="container-4">
<h2 id="change-my-color">Challenge 4: Change the color of all button</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>