-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
59 lines (54 loc) · 2.42 KB
/
Copy pathindex.html
File metadata and controls
59 lines (54 loc) · 2.42 KB
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
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>JAVACSRIPT CHALLENGES</title>
<link rel="stylesheet" href="static/css/style.css">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css">
</head>
<body>
<!-- CHALLENGE 1 LAYOUT - Age in Days -->
<div class="container-1">
<h2>Challenge 1: 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 class="flex-box-result">
<h3 id="result"></h3>
</div>
</div>
</div>
<!-- CHALLENGE 2 LAYOUT - Cat Generator -->
<div class="container-2">
<h2>Challenge 2: Cat Generator</h2>
<div class="flex-box-container-2">
<button class="btn btn-success gen-btn" id="cat-gen-btn" onclick="generateCat()">Generate Cat</button>
</div>
<div class="flex-box-container-2" id="flex-cat-gen">
<!-- <img src="https://api.thecatapi.com/api/images/get?format=src&type=gif&size=small" alt="My Cat"> -->
</div>
</div>
<!-- CHALLENGE 3 LAYOUT - Rock, Paper, Scissors -->
<div class="container-3">
<div class="flex-box-container-2">
<h2>Challenge 3: Rock, Paper, Scissors</h2>
<button class="btn btn-danger" onclick="location.reload()">Reset</button>
</div>
<div class="flex-box-rps" id="flex-box-rps-div">
<img src="static/img/rock.png" alt="rock" id="rock" height="250px" onclick="rpsGame(this)">
<img src="static/img/paper.png" alt="paper" id="paper" height="250px" onclick="rpsGame(this)">
<img src="static/img/scissor.png" alt="scissor" id="scissor" height="250px" onclick="rpsGame(this)">
</div>
</div>
<!-- <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.bundle.min.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js"></script>
-->
<script src="static/js/script.js"></script>
</body>
</html>