-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
143 lines (140 loc) · 5.64 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
<html>
<head>
<title>Eating simulator</title>
<script src="https://brunozhon.github.io/es/main.js"></script>
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
</head>
<body>
<div class="w3-bar w3-red">
<div class="w3-bar-item">Visit on <a href="https://github.com/Brunozhon/es">GitHub</a>!</div>
<div class="w3-bar-item"><b>Money</b>: <span id="money"></span></div>
<div class="w3-bar-item"><b>Chips</b>: <span id="chips"></span></div>
<div class="w3-bar-item"><b>Calories</b>: <span id="cals"></span></div>
<div class="w3-bar-item"><b>Fat</b>: <span id="fat"></span></div>
<a class="w3-bar-item" href="https://brunozhon.github.io/es/virus.html">Install a virus (JK)</a>
</div>
<!--
The shop
-->
<div class="w3-row">
<div class="w3-quarter w3-container w3-red w3-hide-small" style="overflow-x: auto;">
<h3>Shop</h3>
<div class="w3-display-container">
<pre>
|^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^|
| |
| |
| |
| --- | | --- ----- ------ |
| | | | | | | | |
| | |----| | ------ ------ |
| | | | | | | |
| --- | | --- | ------ |
| |
| |
| |
|---------------------------------------------|
</pre>
<div class="w3-display-hover">
<p><button onclick="chipsBuy()" class="w3-black">Buy</button> <button onclick="chipsEat()" class="w3-black">EAT!</button></p>
</div>
</div>
<p><b>Chips Nutrition Facts</b>:</p>
<pre>
Calories: 50
Total fat: 10 grams
<i>Percantege daily values are based on a 2000 calorie diet</i>
----------------------------------------------------------------
Cost: $5
</pre>
</div>
<div class="w3-rest w3-container">
<h1>The eating simulator</h1>
<div class="w3-hide-large w3-hide-medium w3-container w3-red">
<h3>Shop</h3>
<pre>
|^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^|
| |
| |
| |
| --- | | --- ----- ------ |
| | | | | | | | |
| | |----| | ------ ------ |
| | | | | | | |
| --- | | --- | ------ |
| |
| |
| |
|---------------------------------------------|
</pre>
<p><b>Chips Nutrition Facts</b>:</p>
<pre>
Calories: 50
Total fat: 10 grams
<i>Percantege daily values are based on a 2000 calorie diet</i>
</pre>
<p>Cost: $5 <button onclick="chipsBuy()" class="w3-button w3-red">Buy</button> <button onclick="chipsEat()" class="w3-button w3-red">EAT!</button></p>
</div>
<h2>Questions</h2>
<p><b>How did I get the idea?</b>: From <a href="https://github.com/Eating-simulator">Eating Simulator</a>.</p>
<p><b>Is there a copyright notice?</b>: I didn't copy the code. I copied the idea.</p>
<p><b>It it more fun than Eating Simulator</b>: By the way, I'm still working on the project. Maybe one day it will get better than Eating Simulator</p>
<p><b>Are you a comptitor of Eating Simulator</b>: You will see...</p>
<p><a href="https://brunozhon.github.io/es/faq/" target="_blank">More FAQ's...</a></p>
<p><button onclick="read()">Read a book</button></p>
</div>
</div>
<div class="w3-container w3-red">
<p>Filter worlds: <input type="text" id="input" /></p>
<div id="search">
<a href="https://brunozhon.github.io">Bruno's website</a>
<a href="https://brunozhon.github.io/es/">Eating Simulator</a>
<a href="https://brunozhon.github.io/es/world/">World</a>
<a href="https://brunozhon.github.io/es/docs/">ES Help</a>
<a href="https://brunozhon.github.io/es/blog/">Blog</a>
<a href="https://brunozhon.github.io/es/code/">Sign In</a>
</div>
</div>
<br>
<br>
<br>
<script>
//$(document).ready(function() {
var doc = document.getElementById("money");
var chip = document.getElementById("chips");
var cal = document.getElementById("cals");
var fat = document.getElementById("fat");
doc.innerHTML = person.money;
chip.innerHTML = chips.chips;
cal.innerHTML = person.cals;
fat.innerHTML = person.fat;
function chipsBuy() {
chips.buy();
doc.innerHTML = person.money;
chip.innerHTML = chips.chips;
cal.innerHTML = person.cals;
fat.innerHTML = person.fat;
}
function chipsEat() {
chips.eat()
chip.innerHTML = chips.chips;
cal.innerHTML = person.cals;
fat.innerHTML = person.fat;
}
function read() {
book.read();
doc.innerHTML = person.money;
}
$(document).ready(function(){
$("#input").on("keyup", function() {
var value = $(this).val().toLowerCase();
$("#search *").filter(function() {
$(this).toggle($(this).text().toLowerCase().indexOf(value) > -1)
});
});
});
</script>
</body>
</html>