-
Notifications
You must be signed in to change notification settings - Fork 0
/
script.js
70 lines (68 loc) · 4.26 KB
/
script.js
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
document.querySelector("#check").addEventListener("click", fun)
function fun() {
// grab value from input
let userNum = Number(document.querySelector("input").value)
if(userNum === 1) {
document.querySelector("#placeToSee").innerText = "Nothing is impossible to a willing heart";
} else if(userNum === 2) {
document.querySelector("#placeToSee").innerText = "Don’t pursue happiness – create it.";
} else if(userNum === 3) {
document.querySelector("#placeToSee").innerText = "You have rice in your teeth.";
} else if(userNum === 4) {
document.querySelector("#placeToSee").innerText = "A ship in harbor is safe, but that’s not why ships are built.";
} else if(userNum === 5) {
document.querySelector("#placeToSee").innerText = "Big journeys begin with a single step.";
} else if(userNum === 6) {
document.querySelector("#placeToSee").innerText = "This cookie contains 117 calories.";
} else if(userNum === 7) {
document.querySelector("#placeToSee").innerText = "Keep going! You've got this!";
} else if(userNum === 8) {
document.querySelector("#placeToSee").innerText = "I hope you believe in yourself as much as I believe in you.";
} else if(userNum === 9) {
document.querySelector("#placeToSee").innerText = "All of your hard work and dedication will pay off.";
} else if(userNum === 10) {
document.querySelector("#placeToSee").innerText = "You're so close to everything you dream of.";
} else if(userNum === 11) {
document.querySelector("#placeToSee").innerText = "Every new beginning comes from some other beginning's end.";
}else if(userNum === 12) {
document.querySelector("#placeToSee").innerText = "Don’t eat the paper.";
}else if(userNum === 13) {
document.querySelector("#placeToSee").innerText = "Do not let making a living prevent you from making a life.";
}else if(userNum === 14) {
document.querySelector("#placeToSee").innerText = "Always do your best. What you plant now, you will harvest later.";
}else if(userNum === 15) {
document.querySelector("#placeToSee").innerText = "About time I got out of that cookie!";
}else if(userNum === 16) {
document.querySelector("#placeToSee").innerText = "If you eat something & nobody sees you eat it, it has no calories.";
}else if(userNum === 17) {
document.querySelector("#placeToSee").innerText = "Don't be afraid to take that big step!";
}else if(userNum === 18) {
document.querySelector("#placeToSee").innerText = "Ignore previous cookie.";
}else if(userNum === 19) {
document.querySelector("#placeToSee").innerText = "I cannot help you, for I am just a cookie.";
}else if(userNum === 20) {
document.querySelector("#placeToSee").innerText = "You don't have to be faster than the bear, you just have to be faster than the slowest guy running from it.";
}else if(userNum === 21) {
document.querySelector("#placeToSee").innerText = "This cookie is never gonna give you up, never gonna let you down.";
} else if(userNum === 22) {
document.querySelector("#placeToSee").innerText = "That wasn't chicken.";
}else if(userNum === 23) {
document.querySelector("#placeToSee").innerText = "You are about to finish reading a fortune cookie.";
}else if(userNum === 24) {
document.querySelector("#placeToSee").innerText = "Some people dream of fortunes, others dream of cookies.";
}else if(userNum === 25) {
document.querySelector("#placeToSee").innerText = "You will be hungry again in one hour.";
}else if(userNum === 26) {
document.querySelector("#placeToSee").innerText = "People learn little from success, but much from failure.";
}else if(userNum === 27) {
document.querySelector("#placeToSee").innerText = "All things are difficult before they are easy.";
}else if(userNum === 28) {
document.querySelector("#placeToSee").innerText = "You are not what you've done. You are what you keep doing.";
}else if(userNum === 29) {
document.querySelector("#placeToSee").innerText = "Actions speak louder than fortune cookies.";
}else if(userNum === 30) {
document.querySelector("#placeToSee").innerText = "Someone will invite you to a Karaoke party.";
}else {
document.querySelector("#placeToSee").innerText = "Pick a number 1 through 30 please!";
}
}