-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathindex.html
67 lines (46 loc) · 2.09 KB
/
index.html
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<!DOCTYPE html>
<html lang="en">
<head>
<title>Chip Chap | A Text Adventure by David Gunter</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="author" content="David Gunter">
<link href="style.css" rel="stylesheet" type="text/css" />
<script src="http://code.jquery.com/jquery-latest.js"></script> <!-- get jQuery -->
<script src="locations.js"></script> <!-- import locations js file -->
<script src="script.js"></script> <!-- grab the javascript file-->
</head>
<body onload="init()">
<div id="content">
<h1>Chip Chap <span class="subtitleFont">A text adventure game</span> </h1>
<div id="mainTextbox">
<textarea class="storyText" id="storyText"></textarea><br>
</div>
<div id="commandButtons">
<button type="button" id="northButton" onclick="btn_goNorth()">North</button>
<button type="button" id="eastButton" onclick="btn_goEast()">East</button><br>
<button type="button" id="southButton" onclick="btn_goSouth()">South</button>
<button type="button" id="westButton" onclick="btn_goWest()">West</button><br>
<p class="headings">
<span class = "scoreHead">Your score:</span>
</p>
<div id="score">
0
</div>
<div id="push"></div>
<div id="inputCommands">
<input type="text" id="commandBox" placeholder="Enter a command">
<button type="button" onclick="enterCommand()">Enter</button>
</div>
</div>
<div id="inventory">
<h4>Inventory <img src="./plus.png" id="expand" alt="expand"/></h4>
<p id="invBox"></p>
</div>
<p class="footer">
If you encounter any errors or you need a hint, email me at <a href="mailto:[email protected]">[email protected]</a>
</p>
<!-- begin inventory side-box -->
<!-- end inventory box -->
</div>
</body>
</html>