-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfantasy.js
27 lines (22 loc) · 1.42 KB
/
fantasy.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
function myFunction5(){
//change the text on screen to "thanks for visiting"
// var words = document.getElementById("welcome");
// words.innerHTML= "5 points added to your level, and 3 hours have passed. You arrive at the farm and see that it is on fire. You also hear screaming, and are unsure if it’s other humans. You have a spark of hope that you are not the only one, but are also cautious to trust people early on.";
document.getElementById('welcome').innerHTML="Congragulations. You get to start your very own text adventure. Now you can journey through the forest in hopes of finding civilization.";
}
function myFunction(){
//change the text on screen to "thanks for visiting"
// var words = document.getElementById("welcome");
// words.innerHTML= "5 points added to your level, and 3 hours have passed. You arrive at the farm and see that it is on fire. You also hear screaming, and are unsure if it’s other humans. You have a spark of hope that you are not the only one, but are also cautious to trust people early on.";
document.getElementById('welcome').innerHTML="You Died";
}
//var btn2 = document.getElementById("btn2");
//die.onclick = function(){
//btn2.style.backgroundColor = "blue";
//}
// if (document.getElementById('btn2').clicked == true){
// setTimeout(function() {
// window.location.href = "fantasy.html";
// }, 1000);
// window.location.href = "index.html";
// }