~eli_oat/marchagotchi

ref: 4f5e34948026f67a915e0928daee1b54806ab009 marchagotchi/index.html -rw-r--r-- 1.1 KiB
4f5e3494eli_oat basic UI in place 2 years ago
                                                                                
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
<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
		<meta name="viewport" content="width=device-width,initial-scale=1">
		<title>marchagotchi.js</title>
		<meta name="author" content="eli_oat">
		<meta name="description" content="a virtual pet">
	</head>
	<body>

		<h1 id="pet">(^ω^)</h1>

		<h2 id="lastAction"></h2>

		<ul id="petStats">
			<li id="hunger"></li>
			<li id="happiness"></li>
			<li id="sleepiness"></li>
		</ul>

		<button onclick="feedPet('snack'); displayLastAction('🌮');">Feed Pet snack</button>

		<button onclick="feedPet('full'); displayLastAction('🥘');">Feed Pet full meal</button>

		<button onclick="playWithPet(); displayLastAction('🪁');">Play with Pet</button>

		<button onclick="cleanUpAfterPet(); displayLastAction('🧹');">Clean up after Pet</button>

		<button onclick="singLullabyToPet(); displayLastAction('🎤');">Sing a lullaby to Pet</button>

		<script stype="text/javascript" src="dice.js"></script>
		<script type="text/javascript" src="marchagotchi.js"></script>

	</body>
</html>