-
Notifications
You must be signed in to change notification settings - Fork 0
/
popup.html
26 lines (19 loc) · 946 Bytes
/
popup.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
<!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>dad Jokes</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<p id="jokeElement">Loading..</p>
<!-- to fetch jokes do api call https://icanhazdadjoke.com/api using this site can use any site -->
<!-- https://icanhazdadjoke.com/slack to see jokes can see what type of json is written in json validator -->
<!-- in json validator we see that with api call we get whole json file but we only need text part where joke is mentioned -->
<script src="script.js"></script>
<!-- now upload chrome extension going to the site https://developer.chrome.com/docs/webstore/publish/ -->
<!-- had to pay 5$ one time then can publish the extension..1, create the zip file of your file then upload it -->
</body>
</html>