-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
386 lines (337 loc) · 12.9 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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
<!--
Project Name - Life Simulator Web-Game
-->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta
name="description"
content="Life simulator is an online game, where a player can control his own character (human being) and virtually makes the decision of his life."
/>
<meta
name="keywords"
content="HTML, CSS, JavaScript, Life, Simulation, Web, Game, Application"
/>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Life Simulator</title>
<!-- Cascading StyleSheets -->
<link rel="stylesheet" href="./css/main.css" />
<link rel="stylesheet" href="./css/responsive.css" />
<!-- For Fonts -->
<link rel="preconnect" href="https://fonts.gstatic.com" />
<link
href="https://fonts.googleapis.com/css2?family=Lato:wght@300&display=swap"
rel="stylesheet"
/>
<!-- For Icons -->
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.2/css/all.min.css"
integrity="sha512-HK5fgLBL+xu6dm/Ii3z4xhlSUyZgTT9tuc/hSrtw6uzJOvgRr2a9jyxxT1ely+B+xFAmJKVSTbpM/CuL7qxO8w=="
crossorigin="anonymous"
/>
<!-- Scripts -->
<script src="./js/config.js" type="module"></script>
<script src="./js/home.js" type="module"></script>
<script src="./js/university.js" type="module"></script>
<script src="./js/job.js" type="module"></script>
<script src="./js/bank.js" type="module"></script>
<script src="./js/gym.js" type="module"></script>
<script src="./js/mall.js" type="module"></script>
<script src="./js/worship.js" type="module"></script>
<script src="./js/club.js" type="module"></script>
<script src="./js/restaurant.js" type="module"></script>
<script src="./js/spa.js" type="module"></script>
<script src="./js/intro.js" type="module"></script>
<script src="./js/navigation.js" type="module"></script>
</head>
<body>
<!-- Intro Container Start -->
<div class="introContainer">
<!-- How to Play Container Start -->
<div class="howToPlayContainer">
<h1>The Life Simulator Game</h1>
<div class="content">
<!-- How to Play Instructions Start -->
<h2>How to Play</h2>
<ol>
<li>Click on the desired place you want to visit.</li>
<li>Click on the desired activities.</li>
<li>
Every action you take will affect your health, happiness, hunger,
or cash.
</li>
<li>In this game, every place's access will vary on time.</li>
<li>
Just make sure your health , happiness level is more than 20 and
hunger level is less than 50.
</li>
<li>You have a limit of 100 days to play the game.</li>
</ol>
<!-- How to Play Instructions End -->
<input id="howToPlayButton" type="submit" value="OK" />
</div>
</div>
<!-- How to Play Container End -->
<div class="intro">
<p class="introText"></p>
<button id="introButton">OK</button>
</div>
</div>
<!-- Intro Container End -->
<!-- Main Container Start -->
<div class="container">
<!-- Statistics Start -->
<div class="statistics">
<div class="health">
<i class="fas fa-heartbeat"></i>
<span>Health</span>
<span class="healthValue" id="healthValue"></span>
</div>
<div class="hunger">
<i class="fas fa-hamburger"></i>
<span>Hunger</span>
<span class="hungerValue" id="hungerValue"></span>
</div>
<div class="happiness">
<i class="fas fa-smile-wink"></i>
<span>Happiness</span>
<span class="happinessValue" id="happinessValue"></span>
</div>
<div class="cash">
<i class="fas fa-wallet"></i>
<span>Cash</span>
<span>$</span>
<span class="cashValue" id="cashValue"></span>
</div>
<div class="days">
<i class="fas fa-calendar"></i>
<span>Days</span>
<span class="daysValue" id="daysValue"></span>
</div>
<div class="time">
<i class="fas fa-clock"></i>
<span>Time</span>
<span class="hourValue" id="hourValue"></span>
<span>:</span>
<span class="minuteValue" id="minuteValue"></span>
</div>
</div>
<!-- Statistics End -->
<!-- Places to go for Header Section Start -->
<div class="places header">
<div class="home">
<i class="fas fa-home"></i>
<span>Home</span>
</div>
<div class="university">
<i class="fas fa-university"></i>
<span>University</span>
</div>
<div class="job">
<i class="fas fa-user-md"></i>
<span>Job</span>
</div>
<div class="bank">
<i class="fas fa-piggy-bank"></i>
<span>Bank</span>
</div>
<div class="gym">
<i class="fas fa-dumbbell"></i>
<span>Gym</span>
</div>
</div>
<!-- Places to go for Header Section End -->
<!-- Container for Content Start -->
<div class="main">
<div class="homeContent">
<div class="bg"></div>
<div class="btnGroup">
<div class="homeInfo">
<div class="foodAndGrocery">
<span>Food and Grocery</span>
<span>:</span>
<span id="foodAndGrocery"></span>
</div>
</div>
<button id="homeMeal">Eat Meal</button>
<button id="homeRest">Rest/Sleep</button>
<button id="homeMeetFamily">Meet Family Members</button>
<button id="homeCleanRoom">Clean Your Room</button>
<div class="characterStatsInfo">
<div class="intelligence">
<span>Intelligence</span>
<span>:</span>
<span id="intelligenceValue"></span>
</div>
<div class="strength">
<span>Strength</span>
<span>:</span>
<span id="strengthValue"></span>
</div>
<div class="spirituality">
<span>Spirituality</span>
<span>:</span>
<span id="spiritualityValue"></span>
</div>
</div>
</div>
</div>
<div class="universityContent">
<div class="bg"></div>
<div class="btnGroup">
<button id="universityAdmission">Take Admission</button>
<br />
<button id="universityPayFees">Pay Fees</button>
<button id="universityAttendClasses">Attend Classes</button>
<button id="universityGroupStudy">Group Study</button>
<button id="universityClubMeeting">Club Meeting</button>
<button id="universityEatCanteen">Eat in Canteen</button>
<button id="universityPlayGames">Play Games</button>
<button id="universityStudyLibrary">Study In Library</button>
</div>
</div>
<div class="jobContent">
<div class="bg"></div>
<div class="btnGroup">
<button id="jobApplyForWork">Apply For Work</button>
<br />
<button id="jobWorkOneHour">Work 1 Hour</button>
<button id="jobWorkThreeHours">Work 3+ Hours</button>
<button id="jobWorkFiveHours">Work 5+ Hours</button>
<button id="jobWorkNineHours">Work 9+ Hours</button>
<br />
<button id="jobTakeBreak">Take Break</button>
<button id="jobAttendMeeting">Attend Meeting</button>
<button id="jobApplyPromotion">Apply for promotion</button>
</div>
</div>
<div class="bankContent">
<div class="bg"></div>
<div class="btnGroup">
<div class="bankInfo">
<div class="balance">
<span>Balance</span>
<span>: $</span>
<span id="balance"></span>
</div>
<div class="loan">
<span>Loan</span>
<span>: $</span>
<span id="loan"></span>
</div>
<div class="bills">
<span>Bills</span>
<span>: $</span>
<span id="bills"></span>
</div>
</div>
<button id="bankOpenAccount">Open Bank Account</button>
<br />
<button id="bankDepositMoney">Deposit Money</button>
<button id="bankWithdrawMoney">Withdraw Money</button>
<button id="bankTakeLoan">Take Out A Loan</button>
<button id="bankPayLoan">Pay Loan</button>
<button id="bankPayBills">Pay Bills</button>
<button id="bankTalkTeller">Talk with Teller</button>
</div>
</div>
<div class="gymContent">
<div class="bg"></div>
<div class="btnGroup">
<button id="gymTakeAdmission">Take Admission</button>
<br />
<button id="gymExerciseOneHour">Exercise 1 Hour</button>
<button id="gymExerciseTwoHours">Exercise 2 Hours</button>
<button id="gymExerciseThreeHours">Exercise 3 Hours</button>
<br />
<button id="gymDietPlan">Take A Diet Plan</button>
<button id="gymTalkTrainer">Talk To Trainer</button>
</div>
</div>
<div class="mallContent">
<div class="bg"></div>
<div class="btnGroup">
<button id="mallShopping">Shopping</button>
<button id="mallWatchMovies">Watch Movies</button>
<button id="mallGamingZone">Play In Gaming Zone</button>
<button id="mallFoodCourt">Eat In Food Court</button>
<button id="mallFoodAndGroceries">Buy Food And Groceries</button>
</div>
</div>
<div class="worshipContent">
<div class="bg"></div>
<div class="btnGroup">
<button id="worshipPray">Pray</button>
<button id="worshipServe">Serve</button>
<button id="worshipCharity">Charity</button>
</div>
</div>
<div class="clubContent">
<div class="bg"></div>
<div class="btnGroup">
<button id="clubDance">Dance</button>
<button id="clubDrinkEat">Drink/Eat</button>
<button id="clubMeetPeople">Meet New People</button>
</div>
</div>
<div class="restaurantContent">
<div class="bg"></div>
<div class="btnGroup">
<button id="restaurantEatFastFood">Eat Fast Food</button>
<button id="restaurantEatSeaFood">Eat Sea Food</button>
<button id="restaurantEatSalad">Eat Salad</button>
<button id="restaurantEatSouthIndian">Eat South Indian</button>
<button id="restaurantEatNorthIndian">Eat North Indian</button>
<button id="restaurantEatItalianFood">Eat Italian Food</button>
<button id="restaurantEatChineseFood">Eat Chinese Food</button>
</div>
</div>
<div class="spaContent">
<div class="bg"></div>
<div class="btnGroup">
<button id="spaMassage">Take Massages</button>
<button id="spaManicurePedicure">Manicure and Pedicure</button>
</div>
</div>
</div>
<!-- Container for Content End -->
<!-- Places to go for Footer Section Start -->
<div class="places footer">
<div class="mall">
<i class="fas fa-building"></i>
<span>Mall</span>
</div>
<div class="worship">
<i class="fas fa-praying-hands"></i>
<span>Worship</span>
</div>
<div class="club">
<i class="fas fa-wine-glass-alt"></i>
<span>Club</span>
</div>
<div class="restaurant">
<i class="fas fa-utensils"></i>
<span>Restaurant</span>
</div>
<div class="spa">
<i class="fas fa-spa"></i>
<span>Spa</span>
</div>
</div>
<!-- Places to go for Footer Section End -->
</div>
<!-- Main Container End -->
<!-- Game Over Container Start -->
<div class="gameOverContainer">
<div class="content">
<div id="reason"></div>
<h2>Your Final Life Stats</h2>
<div id="finalStats"></div>
<button id="gameOverButton">Restart</button>
</div>
</div>
<!-- Game Over Container End -->
</body>
</html>