-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
65 lines (58 loc) · 3.3 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
<!DOCTYPE html>
<html>
<head>
<title>Layla's Tomogochi Project</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Import Font -->
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Montserrat">
<!-- Import CSS -->
<link href="style.css" rel="stylesheet" type= "text/css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/css/materialize.min.css">
</head>
<body>
<div class ="container">
<h3 style = "font-weight: bold; text-align: center">Tom the </h3>
<h1 style = "color: pink; font-weight:bold; text-align: center">Kirby </h3>
<h3 style = "font-weight: bold; text-align: center">Tomagachi </h3>
<h4>Instructions:</h4>
<p>You must keep Tom happy by bathing him, entertaining him, training him, giving him a nap and feeding him.</p>
<ul>
<li>Every 5 seconds Tom gets bored</li>
<li>Every 20 seconds Tom gets dirty</li>
<li>Every 7 seconds Tom gets hungry</li>
<li>Every 10 seconds Tom gets tired</li>
<li>Every 7 seconds Tom gets hungry</li>
<li>Every 2 seconds Tom looses a skill level</li>
</ul>
<p>If any of Tom's variable get too low, GAME OVER!</p> <div class="col">
<!---Restart Button -->
<a class="btn black-text blue lighten-4" type = "button" onclick ="restart()">Start/Restart</a></div>
<div class ="row">
<div class = "col"><p id ="displayFood"></p></div>
<div class = "col"><p id ="displayBath"></p></div>
<div class = "col"><p id ="displaySleep"></p></div>
<div class = "col"><p id ="displayBored"></p></div>
<div class = "col"><p id ="displayTraining"></p></div>
</div>
<!-- Kirby -->
<div class ="row">
<div class = " col m12 offset-m3">
<img id ="kirby" class="responsive-img" style="width:50%" src="helloKirby.png">
</div>
</div>
<!-- Button Row -->
<div class = "row">
<div class="col offset-s1"><a id = "b1" class="btn black-text pink lighten-4" type = "button" onclick ="feed()">Feed Me</a></div>
<div class="col"><a id = "b2" class="btn black-text pink lighten-4" type = "button" onclick ="bathe()">Bathe Me</a></div>
<div class="col"><a id = "b3" class="btn black-text pink lighten-4" type = "button" onclick ="nap()">Nap Me</a></div>
<div class="col"><a id = "b4" class="btn black-text pink lighten-4" type = "button" onclick ="fun()">Entertain Me</a></div>
<div class="col"><a id = "b5" class="btn black-text pink lighten-4" type = "button" onclick ="train()">Train Me</a></div>
</div>
<!--Message-->
<div class = "row">
<h3 id = "message" style = "text-align: center">HELLO!</h3>
</div>
</div> <!-- div for container -->
<script type ="text/javascript" src ="script.js"></script>
</body>
</html>