-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
387 lines (335 loc) · 12.4 KB
/
Copy pathindex.html
File metadata and controls
387 lines (335 loc) · 12.4 KB
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
387
<!doctype HTML>
<html>
<head>
<link href='https://fonts.googleapis.com/css?family=Audiowide' rel='stylesheet'>
<title>Today's Deals!</title>
<style>
nav{
display: flex;
flex-direction: row;
justify-content: flex-start;
background-color: rgba(82,82,82,0.4);
margin: 0;
}
body{
color: silver;
font-family: "Audiowide";
background-image:url("Tech/back.jpg");
background-attachment: fixed;
background-position: center;
background-repeat: no-repeat;
background-size: cover;
width: 100%;
height: 100%;
text-align: center
}
p{
font-size: 15pt;
text-align: center;
}
.parallax{
background-image:url("Tech/back.png");
background-attachment: fixed;
background-position: center;
background-repeat: no-repeat;
height: 100%;
width: 100%;
}
#dakra{
display: flex;
justify-content: space-around;
}
#nekros{
display: flex;
justify-content: space-around;
}
#sybaris{
display: flex;
justify-content: space-around;
}
input{
display: block;
margin: 0 auto;
}
button{
display: block;
margin: 0 auto;
}
#output{
display: block;
font-size: 25pt;
background-color: rgba(0,0,0,0.5);
width: 500px;
}
#p1{
font-size: 100px
}
#p2{
font-size: 10pt;
}
h2{
text-align: center;
font-size: 20pt;
margin-top: 0;
}
footer{
margin: 100px;
}
#dakra1{
border: solid;
background-color: rgba(0, 0, 0, 0.7);
border-color:rgba(0, 0, 0, 0.7);
}
#nekros1{
border: solid;
background-color: rgba(0, 0, 0, 0.7);
border-color:rgba(0, 0, 0, 0.7);
}
#sybaris1{
border: solid;
background-color: rgba(0, 0, 0, 0.7);
border-color:rgba(0, 0, 0, 0.7);
}
#dakra2{
border: solid;
background-color: rgba(0, 0, 0, 0.7);
border-color:rgba(0, 0, 0, 0.7);
}
#nekros2{
border: solid;
background-color: rgba(0, 0, 0, 0.7);
border-color:rgba(0, 0, 0, 0.7);
}
#sybaris2{
border: solid;
background-color: rgba(0, 0, 0, 0.7);
border-color:rgba(0, 0, 0, 0.7);
}
</style>
<script>
function calculateTotal(){
var price1 = 18.00;
var price2 = 82.50;
var price3 = 10.50;
var wp1 = 9.00;
var wp2 = 41.25;
var wp3 = 5.25;
var quan1 = document.getElementById("q1").value;
var quan2 = document.getElementById("q2").value;
var quan3 = document.getElementById("q3").value;
var customerSubtotal = (price1 * quan1) + (price2 * quan2) + (price3 * quan3);
var companySubtotal = (wp1 * quan1) + (wp2 * quan2) + (wp3 * quan3);
var tax = customerSubtotal * 0.0875;
var shipping = 0;
var total = (customerSubtotal + tax + shipping);
var op = document.getElementById("output");
var sold = Number(quan1) + Number(quan2) + Number(quan3);
var profit = customerSubtotal - companySubtotal;
if(customerSubtotal <100){
shipping = 25;
}else if(customerSubtotal >=100 && customerSubtotal <= 200){
shipping = 10;
}else{
shipping = 0;
}
var build = "";
build += "Customer Info:";
build += "<br>";
build += "Subtotal: $" + customerSubtotal.toFixed(2);
build += "<br>";
build += "Tax: $" + tax.toFixed(2);
build += "<br>";
build += "Shipping Cost: $" + shipping;
build += "<br>";
build += "Total: $" + total.toFixed(2);
build += "<hr>";
build += "Company Info:";
build += "<br>";
build += "Customer Subtotal: $" + customerSubtotal.toFixed(2);
build += "<br>";
build += "Company Subtotal: $" + companySubtotal.toFixed(2);
build += "<br>";
build += "Profit: $" + profit.toFixed(2);
build += "<br>";
build += "Total Items Sold: " + sold;
op.innerHTML = build;
}
</script>
</head>
<body>
<div id = "nav">
<nav>
<ul>
<a href = "index2.html"><img id = logo src='Tech/logo.webp' width="150px" height="150px"></a> <h2>Nelson's Market</h2>
</ul>
</nav>
</div>
<hr>
<div class="parallax2">
<div class="parallax">
<h1>Check out these exclusive deals!</h1>
<div id = "dakra">
<img src=" Tech/item1.webp" width = "512px" height="320px">
<p id = "p1"> =</p>
<img src=" Tech/item1-1.png" width = "128px" height="112px">
<img src=" Tech/item1-2.png" width = "91px" height="128px">
<img src=" Tech/item1-3.png" width = "128px" height="112px">
</div>
<div id="dakra1">
<p><b>Dakra Prime Set</b>
<br>
<b> Price: <strike>$22.50</strike> $18.00!! 20% off!</b>
<!--Wholesale: $9.00-->
</p>
<p>Select Quanity</p>
<input type="text" id ="q1" placeholder="Enter Quanity">
</div>
<div id = "dakra2">
<p id="p2">Mastery Rank: 6
<br>
Slot: Melee
<br>
Type: Sword
<br>
Utility
<br>
Attack Speed: 1.0
<br>
Finisher Damage: 120.0
<br>
Channeling Dmg: 1.5x
<br>
Block Resist: 60%
<br><br>
<u>Normal Attacks</u>
<br>
Impact: 6.0 Puncture: 6.0 Slash: 48.0
<br>
Total Damage: 60.0 (Slash 80%)
<br>
Crit Chance: 15%
<br>
Crit Multiplier: 1.5x
<br>
Status Chance: 10%
<br><br>
<u>Other Attacks</u>
<br>
Slam Attack: 120.0
<br>
Slide Attack: 129.0
<br>
Wall Attack: 240.0
<br><br>
<u>Miscellaneous</u>
<br>
Polarities: Madurai Naramon
<br>
Stance Polarity: Madurai
<br>
Stances: Iron Phoenix (Unairu)
<br>
Crimson Dervish (Madurai)
<br>
Vengeful Revenant (Madurai)
<br>
Swooping Falcon (Madurai)
<br>
Rising Steel (Unairu) (PvP Only)
<br>
Introduced Update 10.0</p>
<br>
</div>
<br>
<br>
<hr>
<br>
<br>
<div id = "nekros">
<img src=" Tech/item2.png" width = "512px" height="342px">
<p id = "p1"> =</p>
<img src=" Tech/item2-1.png" width = "108px" height="128px">
<img src=" Tech/item2-2.png" width = "73px" height="128px">
<img src=" Tech/item2-3.png" width = "78px" height="128px">
<img src=" Tech/item1-3.png" width = "128px" height="112px">
</div>
<div id="nekros1">
<p><b>Nekros Prime Set</b>
<br>
<b> Price: <strike>$30.00</strike> $22.50!! 25% off!</b>
<!--Wholesale: $11.25-->
</p>
<p>Select Quanity</p>
<input type="text" id ="q2" placeholder="Enter Quanity">
</div>
<div id= "nekros2">
<p id="p2">
Mastery Rank: 0<br>
Health: 100 (300 at rank 30)<br>
Shield: 150 (450 at rank 30)<br>
Armor: 65<br>
Energy: 125 (188 at rank 30)<br>
Sprint Speed: 1.1<br>
Polarities: Madurai Vazarin Naramon<br>
Exilus Polarity: None<br>
Aura Polarity: None<br>
</p>
</div>
<br>
<br>
<hr>
<br>
<br>
<div id = "sybaris">
<img src=" Tech/item3.png" width = "480px" height= "178px">
<p id = "p1"> =</p>
<img src=" Tech/item3-1.png" width = "128px" height="85px">
<img src=" Tech/item3-2.png" width = "89px" height="128px">
<img src=" Tech/item3-3.png" width = "112px" height="128px">
<img src=" Tech/item1-3.png" width = "128px" height="112px">
</div>
<div id="sybaris1">
<p><b>Sybaris Prime Set</b>
<br>
<b> Price: <strike>$15.00</strike> $10.50!! 30% off!</b>
<!--Wholesale: $5.25-->
</p>
<p>Select Quanity</p>
<input type="text" id ="q3" placeholder="Enter Quanity">
</div>
<div id="sybaris2">
<p id="p2">Mastery Rank: 12 <br>
Slot: Primary<br>
Type: Rifle<br>
Trigger Type: Burst<br><br>
<u>Utility</u><br>
Ammo Type: Rifle<br>
Noise Level: Alarming<br>
Fire Rate: 4.72 rounds per sec<br>
Accuracy: 25<br>
Magazine Size: 20 rounds per mag<br>
Max Ammo: 540 rounds<br>
Reload Time: 2.0 s<br><br>
<u>Normal Attacks</u><br>
Impact: 29.0 Puncture: 29.0 Slash: 29.9<br>
Total Damage: 87.9 (Slash 34%)<br>
Crit Chance: 30%<br>
Crit Multiplier: 2.0x<br>
Status Chance: 25%<br><br>
<u>Miscellaneous</u><br>
Polarities: x2 Naramon Madurai <br>
Introduced Hotfix 20.6.2<br>
Variants: Dex Sybaris Sybaris
</p>
<br>
</div>
<br>
<button onclick= "calculateTotal()">Checkout</button>
<div id = "output"></div>
</div>
</div>
</body>
<footer>
<p id = "p2">©2017 Yang, Inc. All rights reserved.</p>
</footer>
</html>