Skip to content

Commit 7417b41

Browse files
authored
Merge pull request #65 from phill-101/master
Please accept
2 parents 47e26c1 + 3f769ad commit 7417b41

3 files changed

Lines changed: 36 additions & 0 deletions

File tree

index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ <h2>Members</h2>
2424
<li><a href="thomas/index.html">Thomas Crossley</a></li>
2525
<li><a href="hector/index.html">Hector Warner</a></li>
2626
<li><a href="hamish">Hamish Campbell</a></li>
27+
<li><a href="phillip/Home.html">Philip Benjamin</a></li>
2728
</ul>
2829
<p>We're on GitHub! Click the icon to view the repo.</p>
2930
<p>

phillip/Home.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<!doctype html>
2+
<html>
3+
<head>
4+
<title>Home page</title>
5+
6+
<h1>Play</h1>
7+
<a href="clsb-programming.github.io/phillip/index.html" target="_self">Play Game</a>

phillip/index.html

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<!doctype html>
2+
<html>
3+
<head>
4+
<title>Cookie Clicker</title>
5+
<H1> The software is where your finger will hurt</H1>
6+
<style>
7+
img {
8+
width: 300px
9+
}
10+
</style>
11+
</head>
12+
<body>
13+
<div>
14+
<img src="http://vignette2.wikia.nocookie.net/mspafetchmodus/images/a/ab/Chocolate_chip_cookie.jpg/revision/latest?cb=20100726200146" onclick="addCookie()">
15+
</div>
16+
<h2 id="cookieDisplay">You have 0 cookies</h2>
17+
18+
<script type="text/javascript">
19+
var cookies = 0;
20+
var cookieDisplay = document.getElementById('cookieDisplay');
21+
22+
function addCookie() {
23+
cookies = cookies + 1;
24+
cookieDisplay.innerHTML = "You have " + cookies + " cookies";
25+
}
26+
</script>
27+
</body>
28+
</html>

0 commit comments

Comments
 (0)