-
Notifications
You must be signed in to change notification settings - Fork 125
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from mrunal736/mrunal736-patch-1
Add files via upload
- Loading branch information
Showing
6 changed files
with
55 additions
and
0 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"name" : "JOKES", | ||
"version" : "0.0.1", | ||
"manifest_version": 2, | ||
"browser_action": { | ||
"default_popup": "popup.html", | ||
"default_icon": "logo.png" | ||
}, | ||
"icons": { | ||
"128": "logo.png" | ||
}, | ||
"permissions": ["activeTab"] | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<meta nane="viewport" content="width=devicewidth, initial-scale=1.0"> | ||
<link rel="stylesheet" href="style.css"> | ||
<title>JOKES :)</title> | ||
</head> | ||
<body> | ||
<p id = "jokeElement">Loading....Funny JOkEs :)</p> | ||
<script src="script.js"></script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
fetch('https://icanhazdadjoke.com/slack') | ||
.then(data => data.json()) | ||
.then(jokeData => { | ||
const jokeText = jokeData.attachments[0].text; | ||
const jokeElement = document.getElementById('jokeElement'); | ||
|
||
jokeElement.innerHTML = jokeText; | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
body { | ||
width: 400px; | ||
height: 200px; | ||
background-image: url("backgroundimg.jpg"); | ||
background-color: aliceblue; | ||
display: flex; | ||
justify-content: center; | ||
border: 5px solid rgb(7, 74, 78); | ||
} | ||
p { | ||
display: inner-flex; | ||
margin:auto 10px; | ||
font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; | ||
font-size: 25px; | ||
color: rgb(7, 39, 41); | ||
padding: 10px; | ||
font-weight: bold; | ||
|
||
} |