-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.js
More file actions
54 lines (47 loc) · 1.85 KB
/
index.js
File metadata and controls
54 lines (47 loc) · 1.85 KB
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
53
54
const quotes = [
{
text: "Though defeat may sting, it's merely a moment, not your destiny.Keep your heads up, South Africa, i hope you learn not to underestimate Nigerians.🙂",
author: "",
},
{
text: "Success is not final, failure is not fatal: It is the courage to continue that counts. It's just a game don't take it too personal",
author: "Winston Churchill",
},
{
text: "Learn to appreciate winners so you guys can win sooner than expected. Celebrate Nigeria grace 😂.",
author: "",
},
{
text: "So sad how you guys used your 24hrs electricity to watch super eagles enter the FINALS 😭",
author: "",
},
{
text: "Eating jollof made with Cameroon pepper and Antelope meat while listening to Amapiano",
author: "",
},
{
text: "Ghanaians didn't cedis coming honestly 😂.",
author: "",
},
{
text: "Nigerian's please do the cooking small small😭.",
author: "",
},
{
text: "But why will you people call Nigeria generator republic 😭?.",
author: "",
},
{
text: "When you reach the end of your rope, tie a knot in it and hang on.",
author: "",
},
// Add more quotes here
]
let quoteView = document.getElementById("quote")
let authorView = document.getElementById("author")
document.getElementById("generator").onclick = function(){
const randomNumber = Math.floor(Math.random() * quotes.length);
const randomQuote = quotes[randomNumber];
quoteView.innerHTML = '"' + randomQuote.text + '"';
authorView.innerHTML = '' + randomQuote.author + '';
};