Skip to content

Local Database Setup (#305) #310

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions components-2/Exercise 9.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<!DOCTYPE html>
<html>
<head>
<title>Exercise 9</title>
<script src="/js/jsScript.js"></script>
<link rel="Stylesheet" type="text/css" href="file.css"/>
</head>
<body>
<p><b>Random Joke Generator</b></p>
<div class="Jokes" type="Jokes">
<p>List of Jokes available at jsSCript.js</p>
</div>
</body>
</html>
23 changes: 23 additions & 0 deletions components-2/file.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
body {
text-align: center;
display: flex;
align-items: center;
background-color: silver;
}

p {
size: 16px;
font-style: italic;
}

li {
text-align: : center;
display: flex;
align-items: center;
}






3 changes: 3 additions & 0 deletions components-2/joke generator.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
var jokes= ["Joke1", "Joke2", "Joke3", "Joke4", "Joke5"];
function random = Math.floor(Math.random() * months.length);
console.log(random, months[random]);
15 changes: 15 additions & 0 deletions components-2/jsScript.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
async function getJoke() {
fetch("https://icanhazdadjoke.com/", {
headers: {
Accept: "application/json",
},
}).then((data) => {
console.log(data.json());
});
console.log(response, "<---- should see response");

function random = Math.floor(Math.random() * months.length);
console.log(random, months[random]);
document.getElementById("joke")text.Content=data.joke();
Button.addEventListener("click",getJoke);
}
2 changes: 1 addition & 1 deletion components-2/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ Don't open PRs to main. If you do open a PR to main and it is merged then it wou

<!--{{</note>}}-->

### Visualise this Git workflow
### Visualize this Git workflow

```mermaid
gitGraph
Expand Down