-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
61 lines (60 loc) · 2.38 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
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Chuck Norris Jokes API</title>
<!-- Favicon -->
<link rel="apple-touch-icon" sizes="180x180" href="./favicon/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="./favicon/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="./favicon/favicon-16x16.png">
<!-- Bootstrap CSS only -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.1/dist/css/bootstrap.min.css"
rel="stylesheet" integrity="sha384-F3w7mX95PdgyTmZZMECAngseQB83DfGTowi0iMjiWaeVhAn4FJkqJByhZMI3AhiU"
crossorigin="anonymous"
>
<link rel="stylesheet" href="./src/css/main.css">
<script src="https://kit.fontawesome.com/37ce8de70f.js" crossorigin="anonymous"></script>
<script src="https://unpkg.com/axios/dist/axios.min.js"></script>
</head>
<body>
<div class="content">
<h3 class="main-header text-muted">Chuck Norris Jokes</h3>
<!-- Filter Jokes as per category -->
<select id="filter" class="form-select" aria-label="Default select example"
onchange="changeCategory()">
</select>
<div class="joke-div">
<p>
<img src="https://assets.chucknorris.host/img/avatar/chuck-norris.png" alt="Chuck Norris Image">
</p>
<p class="category">
Category:
<span id="category-name"></span>
</p>
<p class="joke" id="joke"></p>
<p>
<div id="spinner" class="spinner-border" role="status">
<span class="visually-hidden">Loading...</span>
</div>
</p>
<button id="next-btn" class="next-btn" type="button" name="button"
onclick="nextJoke(event)">
Next Joke
</button>
</div>
<div class="footer">
<hr>
<blockquote class="blockquote">
<p class="mb-4">All material presented are intended for humour purposes only.</p>
<footer class="blockquote-footer">Chuck Norris Jokes API Website:
<cite title="Source Title">
<a href="https://api.chucknorris.io/" target="_blank">api.chucknorris.io</a>
</cite>
</footer>
</blockquote>
</div>
</div>
<script src="./src/js/main.js" charset="utf-8"></script>
</body>
</html>