Skip to content
This repository was archived by the owner on Dec 18, 2024. It is now read-only.

Commit 8a97169

Browse files
erasing title and javascript code in quote-generator
1 parent eb82683 commit 8a97169

File tree

2 files changed

+1
-16
lines changed

2 files changed

+1
-16
lines changed

week-3/quote-generator/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<meta charset="UTF-8" />
55
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6-
<title>Quote generator app</title>
6+
<title>Title here</title>
77
<script defer src="quotes.js"></script>
88
</head>
99
<body>

week-3/quote-generator/quotes.js

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -489,18 +489,3 @@ const quotes = [
489489
author: "Zig Ziglar",
490490
},
491491
];
492-
493-
// call pickFromArray with the quotes array to check you get a random quote
494-
const pQuote = document.getElementById("quote");
495-
const pAuthor = document.getElementById("author");
496-
const btn = document.getElementById("new-quote");
497-
498-
// Function to show the random quote
499-
function showQuote() {
500-
const randomQuote = pickFromArray(quotes);
501-
pQuote.textContent = randomQuote.quote;
502-
pAuthor.textContent = randomQuote.author;
503-
}
504-
505-
// Button click
506-
btn.addEventListener("click", showQuote);

0 commit comments

Comments
 (0)