~eli_oat/marchagotchi

ref: 0b169c0978e66379306e4882a2682cdb81c2d667 marchagotchi/index.html -rw-r--r-- 1.5 KiB
0b169c09eli_oat you all, now the UI is like AAA 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<!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">
		<style type="text/css">
			body {
				max-width: 40em;
				margin: 0 auto;
				display: block;
				padding: 1em 2em;
			}

			button {
				width: 75%; 
				display: block;
				margin: 1em auto;
				padding: 1em 2em;
				background-color: transparent;
				border: 1px solid #ddd;
				border-radius: 7px;
			}

			button:hover, button:focus {
				cursor: pointer;
			}

		</style>
	</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>