-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
107 lines (98 loc) · 2.86 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
<!DOCTYPE html>
<html dir="ltr" lang="en-ca">
<head>
<!-- Specify Character Encoding -->
<meta charset="UTF-8" />
<!-- Controls Layout on Browsers -->
<meta name="viewport" content="width=device-width" minimum-scale="1.0" />
<!-- Who are you? -->
<meta name="author" content="Harpreet Singh" />
<!-- Attach Stylesheet -->
<link rel="stylesheet" href="css/main.css" />
<link rel="shortcut icon" href="#">
<!-- Name Your Page -->
<title>Tamagochi Character</title>
</head>
<style>
#bubble{
width: 15%;
height: 20%;
position: absolute;
left: 59%;
bottom: 28%;
}
#thought{
position: relative;
left: 62%;
bottom: -328px;
z-index: 1;
font-size: 20px;
}
#thought2{
position: relative;
left: 58%;
bottom: -346px;
z-index: 1;
font-size: 20px;
}
#tho{
display: none;
}
</style>
<body>
<h1 id="demo" style="text-align: center;"></h1>
<div class="info">
<div id="timer">
<p id="time">Timer</p>
</div>
<div id="points">
<p id="point">Points</p>
</div>
</div>
<div id="tho">
<span id="thought"></span>
<span id="thought2"></span>
<img src="img/bubble.png" alt="" id="bubble">
</div>
<main>
<section id="menu">
<button id="new" onclick="Tamogotchi()" >New game</button>
<br>
<button id="start_over" onclick="resetFood()">Start over?</button>
<br>
<br>
<input type="text" id="name_pet" placeholder="Name your Pet*">
<br>
<button id="give_name" onclick="Tamogotchi()">Give the name</button>
<br>
<div class="btn">
<button id="anger" >Angry</button>
<button id="happ" >Happy</button>
</div>
<div class="btn2">
<button id="sed" >Sad</button>
<button id="joke">Jokey</button>
</div>
</section>
<section id="action">
<button id="feed" onclick="eatLasagna ()">Feed the Pet</button>
<button id="compliment"onclick="makecompliment()">Make a compliment</button>
<button id="start_talk">Start Talking</button>
<button id="stop_talk">Stop Talking</button>
</section>
<section id="characterContainer">
<object id="characterObj" data="img/tamagochi_character.svg" type="image/svg+xml" title="#"></object>
</section>
<section id="controls">
<button id="neutral">Neutral</button>
<button id="happy">Happy</button>
<button id="angry">Angry</button>
<button id="sad">Sad</button>
</section>
</main>
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.5.1/gsap.min.js"></script>
<!-- Add your JS Script -->
<script type="text/javascript" src="js/script.js" src = "defer" ></script>
<script type="text/javascript" src="script.js" src = "defer" ></script>
</body>
</html>