-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpoem.js
More file actions
executable file
·27 lines (20 loc) · 837 Bytes
/
poem.js
File metadata and controls
executable file
·27 lines (20 loc) · 837 Bytes
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
function nextLine(line) {
var poem = new Array("<p onClick=nextLine(1)>There once was a maintainer on github</p>",
"<p onClick=nextLine(2)>So many pull requests she did snub</p>",
"<p onClick=nextLine(3)>So I forked the repo</p>",
"<p onClick=nextLine(4)>Now they all send <em>me</em> changes, d'oh!</p>",
"<p onClick=nextLine(0)>Said the maintainer, 'Welcome to the club!'</p>");
document.getElementById("line").innerHTML=poem[line];
}
function redirectToGarfield() {
window.location.replace("https://en.wikipedia.org/wiki/Garfield");
}
function redirectToGitHub() {
window.location.href("https://github.com/bryantal");
}
function redirectToBlog() {
window.location.href("https://bryantalfall2019opensource.blogspot.com");
}
function changeButtonColor() {
document.getElementById("myButton").style.background = "#5FE209"
}