-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.html
190 lines (182 loc) · 8.39 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
<!DOCTYPE html>
<html lang="en">
<head>
<!--Meta-->
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Our Farm</title>
<!--CSS-->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css" />
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200" />
<link rel="stylesheet" href="/src/css/style.css" />
</head>
<body data-bs-theme="dark">
<!--Header-->
<header class="container bg-dark d-flex sticky-top justify-content-between py-3">
<h3 class="text-warning">Farming Simulator Game</h3>
<button class="btn btn-success" onclick="NextWeek()">Next Week</button>
</header>
<hr />
<!--Weekly Production-->
<div class="container">
<div class="row">
<h5>Weekly Production</h5>
<div class="col">
<table class="table table-bordered text-center">
<thead>
<tr>
<th scope="col"></th>
<th scope="col">Animal</th>
<th scope="col">Number</th>
<th scope="col">Weekly Production</th>
</tr>
</thead>
<tbody id="WeeklyProductionAnimal"></tbody>
</table>
</div>
<div class="col">
<table class="table table-bordered text-center">
<thead>
<tr>
<th scope="col"></th>
<th scope="col">Plant</th>
<th scope="col">Number</th>
<th scope="col">Weekly Production</th>
</tr>
</thead>
<tbody id="WeeklyProductionPlant"></tbody>
</table>
</div>
</div>
</div>
<hr />
<!--Inventory-->
<div class="container">
<h5>Inventory</h5>
<table class="table table-bordered text-center">
<thead>
<tr>
<th scope="col"></th>
<th scope="col">Product</th>
<th scope="col">Number</th>
</tr>
</thead>
<tbody id="Inventory"></tbody>
</table>
</div>
<hr />
<!-- Statistics-->
<div class="container">
<h5>Farm Statistics</h5>
<div class="container">
<div class="row text-center border">
<div class="col border p-1">
<h5 class="text-secondary">Farm Value</h5>
<h6 id="TotalFarmValue"></h6>
</div>
<div class="col border p-1">
<h5 class="text-secondary">Money</h5>
<h6 id="Money"></h6>
</div>
<div class="col border p-1">
<h5 class="text-secondary">Week</h5>
<h6 id="WeekCounter"></h6>
</div>
<div class="col border p-1">
<h5 class="text-secondary">Feed Consumption</h5>
<h6 id="FeedConsumption"></h6>
</div>
<div class="col border p-1">
<h5 class="text-secondary">Fertilizer Consumption</h5>
<h6 id="FertilizerConsumption"></h6>
</div>
</div>
</div>
</div>
<hr />
<!-- Weekly Average Prices-->
<div class="container">
<div class="row">
<h5>Weekly Average Prices</h5>
<div class="col">
<table class="table table-bordered text-center">
<thead>
<tr>
<th scope="col"></th>
<th scope="col">Name</th>
<th scope="col">Price</th>
<th scope="col">Last Week</th>
<th scope="col">2 Week Ago</th>
</tr>
</thead>
<tbody id="ProductionPrices"></tbody>
</table>
</div>
<div class="col">
<table class="table table-bordered text-center">
<thead>
<tr>
<th scope="col"></th>
<th scope="col">Name</th>
<th scope="col">Price</th>
<th scope="col">Last Week</th>
<th scope="col">2 Week Ago</th>
</tr>
</thead>
<tbody id="ProductPrices"></tbody>
</table>
</div>
</div>
</div>
<hr />
<!--Narketplace-->
<div class="container">
<div class="row">
<div class="container col">
<h5>MarketPlace (Buy)</h5>
<select class="form-select bg-dark text-white" id="MarketplaceBuySelect"></select>
<div class="row my-3">
<div class="col bg-dark text-white"><input class="form-control bg-dark text-white" type="number" min="0" id="MarketplaceBuyForm" /></div>
<div class="col"><button id="MarketplaceBuyButton" onclick="MarketplaceBuy()" class="btn btn-success w-100">Buy</button></div>
</div>
</div>
<div class="container col">
<h5>MarketPlace (Sell)</h5>
<select class="form-select bg-dark text-white" id="MarketplaceSellSelect"></select>
<div class="row my-3">
<div class="col bg-dark text-white"><input class="form-control bg-dark text-white" type="number" min="0" id="MarketplaceSellForm" /></div>
<div class="col"><button id="MarketplaceSellButton" onclick="MarketplaceSell()" class="btn btn-danger w-100">Sell</button></div>
</div>
</div>
</div>
</div>
<div class="container">
<div class="row">
<div class="container col">
<h5>Supermarket (Buy)</h5>
<select class="form-select bg-dark text-white" id="SupermarketBuySelect"></select>
<div class="row my-3">
<div class="col bg-dark text-white"><input class="form-control bg-dark text-white" type="number" min="0" id="SupermarketBuyForm" /></div>
<div class="col"><button id="SupermarketBuyButton" onclick="SupermarketBuy()" class="btn btn-success w-100">Buy</button></div>
</div>
</div>
<div class="container col">
<h5>Supermarket (Sell)</h5>
<select class="form-select bg-dark text-white" id="SupermarketSellSelect"></select>
<div class="row my-3">
<div class="col bg-dark text-white"><input class="form-control bg-dark text-white" type="number" min="0" id="SupermarketSellForm" /></div>
<div class="col"><button id="SupermarketSellButton" onclick="SupermarketSell()" class="btn btn-danger w-100">Sell</button></div>
</div>
</div>
</div>
</div>
<hr />
<!--Javascript-->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/js/bootstrap.bundle.min.js"></script>
<script src="src/js/ui.js"></script>
<script src="src/js/objects.js"></script>
<script src="src/js/functions.js"></script>
<script src="src/js/trade.js"></script>
</body>
</html>