Skip to content

Commit d4a64a6

Browse files
authored
Merge pull request #67 from Bobobson/patch-17
Update index.html
2 parents fc2da6d + 2cc340d commit d4a64a6

1 file changed

Lines changed: 38 additions & 0 deletions

File tree

thomas/index.html

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,14 @@ <h2>What hobbies am I interested in</h2>
3838
<h2>Good game</h2>
3939
<img onclick="addFish()" src="http://www.drodd.com/images15/fish8.png" alt="good pic" style=";">
4040
<p>You have <span id="fishQuantity">0</span> fish</p>
41+
<h2> fish.com</h2>
42+
<p onclick="buyapond">Pond: 15 fish<p>
43+
<p onclick="buyafisherman"> Fisherman: 100 fish<p>
44+
<p onclick="buyacoralreef">coral reef: 150<p>
45+
<p onclick="buythegreatbarrierreef">coral the great barrier reef: 200<p>
4146
<script>
4247
var fish = 0;
48+
var fps = 0;
4349
function addFish() {
4450
fish = fish + 1;
4551

@@ -51,7 +57,39 @@ <h2>Good game</h2>
5157
function displayFish() {
5258
fishQuantity.innerHTML = fish;
5359
}
60+
function addfps(){
61+
fish = fish + fps
62+
}
63+
64+
65+
function buyapond() {
66+
if(fish>19)
67+
fish = fish - 20
68+
fps = fps + 1
69+
}
70+
function buyafisherman() {
71+
if(fish>99)
72+
fish = fish - 100
73+
fps = fps + 10
74+
}
75+
function buyacoralreef () {
76+
if(fish>149)
77+
fish = fish - 150
78+
fps = fps + 20
79+
}
80+
function buythegreatbarrierreef () {
81+
if(fish>199)
82+
fish = fish - 200
83+
fps = fps + 50
84+
}
85+
86+
setInterval(addfps, 1000);
5487
</script>
88+
89+
90+
91+
92+
5593
<h1> I am soooooooooooooooooooooooooooooooooo talented</h1>
5694

5795
</body>

0 commit comments

Comments
 (0)