Skip to content

Commit b10a842

Browse files
authored
Create index.html
1 parent 4422688 commit b10a842

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

adam/cookieclicker/index.html

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<!doctype html>
2+
<html>
3+
<head>
4+
<link href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.css" rel="stylesheet">
5+
<link href="https://fonts.googleapis.com/css?family=Source+Code+Pro|Source+Sans+Pro" rel="stylesheet">
6+
<title>Cookie Clicker</title>
7+
<link href="../style.css" rel="stylesheet">
8+
<script type="text/javascript">
9+
// Start with 0
10+
var cookies = 0;
11+
12+
// User clicks the giant cookie
13+
function cookieClick() {
14+
cookies += 1;
15+
}
16+
17+
// TODO: Display cookies
18+
</script>
19+
</head>
20+
<body>
21+
<div class="container">
22+
<p>You have <span id="cookieQuantity">0</span> cookies</p>
23+
<img src="https://upload.wikimedia.org/wikipedia/commons/thumb/6/6e/Pepperidge-Farm-Nantucket-Cookie.jpg/640px-Pepperidge-Farm-Nantucket-Cookie.jpg" alt="Cookie" onclick="cookieClick(); return false" />
24+
</div>
25+
</body>
26+
</html>

0 commit comments

Comments
 (0)