forked from Pranav-95/Random-Joke-Generator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
52 lines (49 loc) · 1.59 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
<!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>Random Jokes Generator</title>
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css"
/>
<!-- Link for fonts-->
<link rel="stylesheet" href="style.css" />
<!-- Link CSS -->
</head>
<body>
<!-- added language translator -->
<div class="language">
<div class="google_translate_element" id="google_translate_element"></div>
<script type="text/javascript">
function googleTranslateElementInit() {
new google.translate.TranslateElement(
{pageLanguage: 'en'},
'google_translate_element'
);
}
</script>
<script type="text/javascript" src="https://translate.google.com/translate_a/element.js?cb=googleTranslateElementInit">
</script>
</div>
<div class="container">
<div class="toggle" id="toggle">
<!-- to switch between light and dark mode-->
<i class="far fa-sun"></i>
</div>
<h3>Random Jokes Generator</h3>
<div id="joke" class="joke">Here's the joke for you</div>
<button id="get_joke" class="btn">Get another joke</button>
</div>
<div class="lds-ring" id = "loading">
<div></div>
<div></div>
<div></div>
<div></div>
</div>
<script src="script.js"></script>
<!-- Link JS -->
</body>
</html>