-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscript.js
More file actions
31 lines (28 loc) · 1.96 KB
/
Copy pathscript.js
File metadata and controls
31 lines (28 loc) · 1.96 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
const quotes = [
"The best way to predict the future is to create it. — Peter Drucker",
"Success is not final, failure is not fatal: It is the courage to continue that counts. — Winston Churchill",
"The only way to do great work is to love what you do. — Steve Jobs",
"Don't watch the clock; do what it does. Keep going. — Sam Levenson",
"It does not matter how slowly you go, as long as you do not stop. — Confucius",
"Opportunities don't happen, you create them. — Chris Grosser",
"You miss 100% of the shots you don’t take. — Wayne Gretzky",
"In the middle of every difficulty lies opportunity. — Albert Einstein",
"What lies behind us and what lies before us are tiny matters compared to what lies within us. — Ralph Waldo Emerson",
"The harder you work for something, the greater you'll feel when you achieve it. — Anonymous",
"Success is not how high you have climbed, but how you make a positive difference to the world. — Roy T. Bennett",
"Dream big and dare to fail. — Norman Vaughan",
"Don’t let yesterday take up too much of today. — Will Rogers",
"The future belongs to those who believe in the beauty of their dreams. — Eleanor Roosevelt",
"It always seems impossible until it's done. — Nelson Mandela",
"The way to get started is to quit talking and begin doing. — Walt Disney",
"Success usually comes to those who are too busy to be looking for it. — Henry David Thoreau",
"It’s not whether you get knocked down, it’s whether you get up. — Vince Lombardi",
"Your time is limited, so don’t waste it living someone else’s life. — Steve Jobs",
"Everything you’ve ever wanted is on the other side of fear. — George Addair"
];
const button = document.querySelector('button')
const quote = document.querySelector('h1')
button.addEventListener('click', ()=>{
const index = Math.floor(Math.random()*(quotes.length-1));
quote.textContent = quotes[index];
})