-
Notifications
You must be signed in to change notification settings - Fork 0
/
you-are-elon-musk.html
491 lines (409 loc) · 31 KB
/
you-are-elon-musk.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
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
<!DOCTYPE html>
<html>
<head>
<title>You are Elon Musk</title>
<link rel="icon" type="image/x-icon" href="/images/youareelonmusk.ico">
<style>
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* Sleek font */
text-align: center;
background: linear-gradient(#f4f4f4, #d6d6d6); /* Gradient Background */
margin: 0;
padding: 0px;
margin-bottom: 50px;
}
#back-arrow {
position: absolute;
top: -5px;
left: 15px;
text-decoration: none;
color: #32bf66;
transition: transform 0.2s ease;
}
#back-arrow:hover {
transform: scale(1.2);
}
.arrow-icon {
font-size: 45px;
}
.balance {
position: sticky;
top: 0;
left: 0;
right: 0;
background: linear-gradient( #43de7b, #32bf66); /* Gradient background */
padding: 10px;
z-index: 1000;
text-align: center; /* Align content to center */
color: white;
font-weight: bold;
}
#items {
display: flex;
flex-wrap: wrap;
justify-content: center;
}
.item {
display: flex;
flex-direction: column;
align-items: center;
margin: 15px;
padding: 15px;
background-color: #fff;
border-radius: 8px;
box-shadow: 0 4px 8px rgba(0,0,0,0.1);
position: relative;
width: calc(32% - 30px); /* Adjust width for 3 items per row */
height: 350px;
transition: transform 0.3s; /* Transition for hover effect */
}
.item:hover {
transform: scale(1.05); /* Scale up on hover */
}
.item img {
width: 180px; /* Increase image size */
height: 180px; /* Increase image size */
margin-bottom: 10px;
}
.item-title {
font-size: 16px;
margin-bottom: 5px;
transition: transform 0.3s;
font-weight: bold;
}
.item-title:hover {
transform: scale(1.1); /* Scale up on hover */
}
.item-price:hover {
transform: scale(1.05); /* Scale up on hover */
}
.item-price {
font-size: 14px;
color: #73d865;
transition: transform 0.3s;
font-weight: bold;
}
.item-quantity {
margin-top: 5px;
}
.item-quantity button:hover {
transform: scale(1.08); /* Scale up on hover */
}
.item-quantity input, .item-quantity button {
width: 70px; /* Larger size */
padding: 10px; /* Larger size */
font-size: 16px; /* Larger size */
transition: transform 0.3s;
}
.item-quantity button {
background-color: #4CAF50;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
}
#orderButton {
background-color: #4CAF50;
color: white;
padding: 20px 40px; /* Larger size */
font-size: 20px; /* Larger size */
border: none;
border-radius: 4px;
cursor: pointer;
margin-top: 20px;
transition: transform 0.3s;
}
#orderButton:hover {
transform: scale(1.08); /* Scale up on hover */
}
.modal {
display: none;
position: fixed;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
border: 1px solid #ddd;
background-color: #fff;
padding: 20px;
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
border-radius: 10px;
z-index: 2;
width: 300px;
}
.modal.active {
display: block;
}
.close-modal {
cursor: pointer;
color: #888;
float: right;
font-size: 20px;
}
.hover-text {
display: none;
position: absolute;
bottom: 10px;
left: 0;
width: calc(100% - 20px); /* Adjust width to fit within padding */
text-align: center;
padding: 5px;
background-color: rgba(255, 255, 255, 0.7);
border-radius: 0 0 8px 8px;
overflow: hidden; /* Hide overflow */
max-height: 60px; /* Set maximum height */
transition: max-height 0.3s; /* Smooth transition for expanding */
}
.item:hover .hover-text {
display: block;
max-height: 150px; /* Expand to show full text on hover */
}
.tweet-button {
background-color: #1DA1F2; /* Twitter Blue */
color: white;
padding: 10px 15px;
margin-top: 10px;
border: none;
border-radius: 4px;
cursor: pointer;
}
.header-section {
text-align: center;
padding: 20px;
background-color: white; /* Or any color of your choice */
}
.profile-picture {
width: 100px; /* Adjust size as needed */
height: 100px; /* Adjust size as needed */
border-radius: 50%; /* Make the image circular */
object-fit: cover; /* Ensures the image covers the area */
border: 3px solid #29a657; /* Optional: border color */
margin-bottom: 10px;
transition: transform 0.3s;
}
.profile-picture:hover {
transform: scale(1.25); /* Scale up on hover */
}
.title {
font-size: 24px;
color: #29a657; /* Title color */
transition: transform 0.3s;
}
.title:hover {
transform: scale(1.25); /* Scale up on hover */
}
</style>
</head>
<body>
<div class="header-section">
<img src="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAoHCBUSEhgRERIYGBgRGBgSGBgY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ivV1q6OwYr3538EvqZkMDThujd83qZk42K1G7NjKMIXMfae0YYam5y37orjJ8EjJxOJhRpyqTdoxV2/kl16Hnm0toSxNRzlolpCP6V9+bNZVeLxU6s3UqO8peiXBLp+5TCFwqJYtEErIQaab4FsJ3lm8l0RTKell/i+Q1PUNbKnW4MyVP1MGCLYTsBkuQHIqc77hJztv142+4FrmvQvht6rT0jWnpwzuS9JXRp61eT0KX1+YjK63BdsqkWlUUZrjooy8mtPgdlg8XCtTVSnK8ZeqfJrgzxrU2Gytq1cNPPTla9s0X7slykvrvR0zqz5RcvW7kMDZG04YqmqkNOEo31jLinz6PiZx0c0IQgBQSEDDIKIQBkFEIASIhDGtbtDblKi7O8pckrerZzG0e0tWp3Y/y1/S9fN/YhDnq10zI0cbzf1ZVj3kjaOremvPgEhC2N2lr2xE4rdT/lx8ILJ9Gc7UqEIbBXvOr7HUatOTqqVoS0cLq0rcejXBkINEd7CClFSW5klTUVd8CEMU8629tZ4mpZNqnD3Vzb0Umueq8F5muhEBAk6YZau3kQgE68zLw8CEAvemg6WhCANKWVW6GFVqEIBTKo+Isp3IQBUSbIQ1jY9n9rvC1VNXcJd2cecb7/ABW9fuz1aElJJrdJJrweqIQ6Zc9GIQhaX//Z" alt="Profile Picture" class="profile-picture">
<div class="title">You are Elon Musk</div>
</div>
<a href="home.html" id="back-arrow">
<span class="arrow-icon">↜</span>
</a>
<div class="balance">Balance: $<span id="balance">251,300,000,000</span></div>
<div id="items">
<!-- Items will be added here -->
</div>
<button id="orderButton">Order</button>
<!-- Modal for displaying the order summary -->
<div id="orderModal" class="modal">
<span class="close-modal" onclick="document.getElementById('orderModal').classList.remove('active')">×</span>
<h2>Order Summary</h2>
<div id="orderSummary"></div>
<button class="tweet-button" id="tweetOrder">Tweet This!</button>
</div>
<script>
let balance = 251300000000;
let totalSpent = 0;
const itemsPurchased = {};
const balanceElement = document.getElementById('balance');
const itemsContainer = document.getElementById('items');
const orderModal = document.getElementById('orderModal');
const orderSummary = document.getElementById('orderSummary');
function formatNumber(num) {
return num.toLocaleString();
}
balanceElement.textContent = formatNumber(balance);
// Descriptions section
const descriptions = {
"Sheet of Paper": "A classic.",
"Pencil": "A simple pencil, ideal for drawing.",
"Burger": "A classic, and a necessity.",
"Big Mac": "The iconic Big Mac, with two beef patties, lettuce, cheese, pickles, and onions on a sesame seed bun.",
"Houseplant": "A beautiful houseplant that adds a touch of greenery to any space.",
"Book": "An engaging read that transports you to another world.",
"Pizza": "A circle of happiness, sliced for convenience.",
"Cigarettes": "A pack of cigarettes, what more could you need?",
"Steak Dinner": "A succulent steak cooked to perfection, paired with tasty side dishes.",
"1g of gold": "A small, but valuable piece of pure gold.",
"Amazon Echo Dot": "A little spy that plays music.",
"1 Year of Premium Netflix": '365 days of "just one more episode."',
"2nd. Gen Airpods Pro": "For when you want to ignore the world, but in style.",
"Game Console": "Buy this, and never do anything else again",
"Kei Truck": "The greatest vehicle money can buy.",
"Kitten": "meow",
"Puppy": "woof",
"Hot air balloon ride": "A must have.",
"iPhone 15 Pro Max": "The latest iPhone, now with more pixels than real life.",
"Designer Handbag": "Carry your essentials like a celebrity.",
"Acre of land": "Your personal piece of the planet.",
"Luxury Watch": "A sophisticated luxury watch, combining style with precision.",
"African Safari": "Hell Yeah.",
"Diamond Ring": "Symbolizing love and commitment.",
"Waterski": "Fun forever.",
"Luxury Jewelry": "Shiny things to distract people.",
"Car": "Your mobile throne on wheels.",
"Tesla Model 3": "Close your eyes and drive. WARNING: DO NOT DO THIS",
"Golden Fidget Spinner": "The greatest thing money can buy",
"1Kg of gold": "A small fortune, literally.",
"Robot Dog": "Create the army of your dreams.",
"Golden Bath Tub": "The first addition to your brand new gold bathroom.",
"Monster Truck": "The coolest car.",
"Ferrari": "Lamborghini better.",
"Lamborghini": "Ferrari better.",
"Jetpack": "Your very own personal jetpack, dodge traffic and arrive in style.",
"Single Family House": "Home sweet home.",
"Faberge Egg": "Like a normal egg, but more fragile.",
"Personal McDonalds": "Have a McFeast anytime.",
"30s Superbowl Ad": "Send a message to 108 million people. ",
"Golden Toilet": "The second addition to your brand new gold bathroom.",
"Tank": "Defend yourself from anything.",
"Penthouse": "Breathtaking views and luxurious amenities.",
"Formula 1 Car": "Why drive a normal car when you have billions.",
"Apache Helicopter": "Purchase a personal army.",
"Mansion": "A magnificent mansion, try not to get lost inside.",
"DaVinci's Notebook": "Inside the mind of the greatest man.",
"Bell Boeing V-22 Osprey": "Fly sideways, because why not?",
"Boeing 747-8i": "A private airline.",
"DaVinci Painting": "A private masterpiece.",
"Superyacht": "A floating mansion for the seas.",
"Mona Lisa": "Yes, the real mona lisa.",
"1g of Francium ": "Rare, unstable, and expensive.",
"B2 Bomber": "Now THIS is a private jet.",
"Personal Nuclear Submarine": "Probably the coolest vehicle money can buy.",
"NBA Team": "Because why not!",
"Personal Rocket Ship": "Now THIS is the coolest vehicle money can buy.",
"Nuclear Bomb": "WARNING: Not a firework.",
"Twitter": "Own the world's loudest megaphone.",
"1g of Antimatter": "15 zeroes, yes thats a quadrillion. 1,000,000,000,000,000",
" Time ": "The one thing money can't buy..."
};
const items = [
{ title: "Sheet of Paper", price: 0.01, imgSrc: "https://static.vecteezy.com/system/resources/previews/013/089/850/original/a4-paper-with-shadow-png.png" },
{ title: "Pencil", price: 0.5, imgSrc: "https://i.pinimg.com/originals/88/5c/68/885c6898a24ce99537b853a99182be2e.png" },
{ title: "Burger", price: 1, imgSrc: "https://i.pinimg.com/originals/98/7c/79/987c799e3186217aa0a8e6f996a452a0.png" },
{ title: "Big Mac", price: 2, imgSrc: "https://i.pinimg.com/originals/38/7a/0d/387a0d5aceb27c67f56309b06ea78f3b.png" },
{ title: "Houseplant", price: 5, imgSrc: "https://images.homedepot.ca/productimages/p_1001585731.jpg?product-images=l" },
{ title: "Book", price: 12, imgSrc: "https://images.platoyo.com/v7/_letzshop_production_img_/a79411eff2055fe758e314ebab516c5e.jpeg?q=75&width=1500&height=1500&func=bound&org_if_sml=1&force_format=webp%2Cjpeg" },
{ title: "Pizza", price: 20, imgSrc: "https://static.vecteezy.com/system/resources/thumbnails/025/076/438/small/pizza-isolated-illustration-ai-generative-png.png" },
{ title: "Cigarettes", price: 28, imgSrc: "https://atlas-content-cdn.pixelsquid.com/stock-images/closed-cigarettes-pack-marlboro-of-o0zxnX0-600.jpg" },
{ title: "Steak Dinner", price: 40, imgSrc: "https://media.istockphoto.com/id/91519864/photo/steak-with-baked-potato.jpg?s=612x612&w=0&k=20&c=a0x5He6z3nJQ_FrbNIwjohJGmBPFjJ5tE0fc_vu1Hzg=" },
{ title: "1g of gold", price: 70, imgSrc: "https://xau.ca/wp-content/uploads/2018/11/1g-Credit-Suisse-Gold-Bar-01.png" },
{ title: "Amazon Echo Dot", price: 130, imgSrc: "https://m.media-amazon.com/images/I/51K4EqO12ML._AC_SY580_.jpg" },
{ title: "1 Year of Premium Netflix", price: 252, imgSrc: "https://static.vecteezy.com/system/resources/previews/020/335/987/non_2x/netflix-logo-netflix-icon-free-free-vector.jpg" },
{ title: "2nd. Gen Airpods Pro", price: 329, imgSrc: "https://i5.walmartimages.ca/images/Enlarge/126/773/6000207126773.jpg?odnHeight=612&odnWidth=612&odnBg=FFFFFF" },
{ title: "Game Console", price: 650, imgSrc: "https://emulation.gametechwiki.com/images/thumb/6/64/Ps5.png/900px-Ps5.png" },
{ title: "Kei Truck", price: 800, imgSrc: "https://kei-truck-garage.myshopify.com/cdn/shop/collections/Honda_Acty_HA8_9_1500x.png?v=1677501148" },
{ title: "Kitten", price: 1500, imgSrc: "https://i.pinimg.com/originals/0c/27/2b/0c272bc26c77c72e88f2502248645b40.png" },
{ title: "Puppy", price: 1500, imgSrc: "https://purepng.com/public/uploads/large/215023215238kskprmm636ezroj5dmtje7rprnva9ahtvkivciofvniwobydtedjmktzkgjjghev6qaawyjj2iqieowfn79qxvlpbm0hbhfglvl.png" },
{ title: "Hot air balloon ride", price: 2000, imgSrc: "https://i.pinimg.com/originals/9a/b9/5f/9ab95fb7346c037d103b5e4160ce2f16.png" },
{ title: "iPhone 15 Pro Max", price: 2500, imgSrc: "https://www.cellularsales.com/wp-content/uploads/2023/09/iPhone15_Pro_Titanium.png" },
{ title: "Designer Handbag", price: 3250, imgSrc: "https://www.enigma-boutique.com/wp-content/uploads/2020/07/63168596IWB8745-a.png" },
{ title: "Acre of land", price: 4000, imgSrc: "https://www.investopedia.com/thmb/hdtiMC_XuDzJO4ez-4DrfgrP7yE=/1500x0/filters:no_upscale():max_bytes(150000):strip_icc()/getty-large-farm-landscape-56c0a6aa5f9b5829f867287c.jpg" },
{ title: "Luxury Watch", price: 6400, imgSrc: "https://ijl.ca/cdn/shop/products/m126000-0006_collection_upright_portrait_70afc31f-6a95-4374-8e69-1bbbdd9743fc.jpg?v=1680027934&width=2048" },
{ title: "1 Week African Safari", price: 7000, imgSrc: "https://www.africansafaripackages.co.za/img/africa2.png" },
{ title: "Diamond Ring", price: 10000, imgSrc: "https://png.pngtree.com/png-clipart/20230414/original/pngtree-big-diamond-ring-jewelry-png-image_9057103.png" },
{ title: "Waterski", price: 10200, imgSrc: "https://www.deramar.com/wp-content/uploads/2023/01/VX-C-.jpg" },
{ title: "Luxury Jewelry", price: 15000, imgSrc: "https://img.freepik.com/free-photo/beautiful-luxury-necklace-jewelry-stand-neck_1339-7945.jpg?size=626&ext=jpg&ga=GA1.1.1546980028.1703894400&semt=ais" },
{ title: "Car", price: 30000, imgSrc: "https://vehicle-images.dealerinspire.com/e206-11002297/thumbnails/large/2HGFE1F90RH313776/b9e9b8072dc54490d198c4721db8ad13.png" },
{ title: "Tesla Model 3", price: 50000, imgSrc: "https://www.stardustev.com.au/wp-content/uploads/2017/11/model3square-533x533.png" },
{ title: "Golden Fidget Spinner", price: 50000, imgSrc: "https://thejewelerblog.files.wordpress.com/2017/07/fidget1.jpg" },
{ title: "1Kg of gold", price: 70000, imgSrc: "https://neal.fun/spend/images/gold-bar.jpg" },
{ title: "Robot Dog", price: 75000, imgSrc: "https://www.sensortips.com/wp-content/uploads/2021/10/spot-explorer-web-2-e1633644852241.png" },
{ title: "Golden Bath Tub", price: 100000, imgSrc: "https://img.freepik.com/premium-photo/gold-bath-golden-legs-vintage-style-isolated-background-3d-rendering_531308-678.jpg?size=626&ext=jpg&ga=GA1.1.1826414947.1699488000&semt=ais" },
{ title: "Monster Truck", price: 150000, imgSrc: "https://i.ibb.co/b7GRypL/DALL-E-2024-01-06-23-47-11-Create-a-photorealistic-image-of-a-smaller-sized-monster-truck-centered-o.png" },
{ title: "Ferrari", price: 230000, imgSrc: "https://freepngimg.com/thumb/ferrari/13-2-ferrari-png-picture-thumb.png" },
{ title: "Lamborghini", price: 230000, imgSrc: "https://svg-files.pixelied.com/913f9f39-f8a3-445b-b927-bf59d7805379/thumb-256px.png" },
{ title: "Jetpack", price: 300000, imgSrc: "https://i.ibb.co/hgBQb3C/Jetpack-Item-Fortnite.png" },
{ title: "Single Family House", price: 350000, imgSrc: "https://media.gettyimages.com/id/171379069/photo/house.jpg?s=612x612&w=0&k=20&c=8H3moJ-taPvxpWu95gY2L6NpnvrMikil_56DJcOwfck=" },
{ title: "Faberge Egg", price: 1000000, imgSrc: "https://i.ebayimg.com/images/g/9iUAAOSwn6FgM~qC/s-l1200.webp" },
{ title: "Personal McDonalds", price: 1500000, imgSrc: "https://images-wixmp-ed30a86b8c4ca887773594c2.wixmp.com/f/ec545603-cf4e-48e0-936d-5376ea12fdc0/dfk61ib-ed956a96-602c-4993-9b11-c2e642f76caf.png?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJ1cm46YXBwOjdlMGQxODg5ODIyNjQzNzNhNWYwZDQxNWVhMGQyNmUwIiwiaXNzIjoidXJuOmFwcDo3ZTBkMTg4OTgyMjY0MzczYTVmMGQ0MTVlYTBkMjZlMCIsIm9iaiI6W1t7InBhdGgiOiJcL2ZcL2VjNTQ1NjAzLWNmNGUtNDhlMC05MzZkLTUzNzZlYTEyZmRjMFwvZGZrNjFpYi1lZDk1NmE5Ni02MDJjLTQ5OTMtOWIxMS1jMmU2NDJmNzZjYWYucG5nIn1dXSwiYXVkIjpbInVybjpzZXJ2aWNlOmZpbGUuZG93bmxvYWQiXX0.Ch1xE-w8j8C8l89jOCvLexv3jyuYyubylpZKbrdcgyE" },
{ title: "30s Superbowl Ad", price: 7000000, imgSrc: "https://sportank.com/assets/images/feature-image-1.png" },
{ title: "Golden Toilet", price: 8000000, imgSrc: "https://i.pinimg.com/originals/9d/b2/cf/9db2cff3f160c17737f66a5481250a61.png" },
{ title: "Tank", price: 9000000, imgSrc: "https://www.rcpro.ca/cdn/shop/files/rcprotanksUSM1A2Abrams3918-pro.png?v=1695563717" },
{ title: "Penthouse", price: 10000000, imgSrc: "https://islandwestbay.com/wp-content/uploads/2022/01/building-cutout-penthouse-min.png" },
{ title: "Formula 1 Car", price: 15000000, imgSrc: "https://i.pinimg.com/originals/ae/d6/b5/aed6b55143050c6762ed415f1cde83c5.png" },
{ title: "Apache Helicopter", price: 35000000, imgSrc: "https://neal.fun/spend/images/apache-helicopter.jpg" },
{ title: "Mansion", price: 50000000, imgSrc: "https://cdn.pixabay.com/photo/2022/10/19/07/36/house-7531809_1280.png" },
{ title: "DaVinci's Notebook", price: 61000000, imgSrc: "https://www.p3comix.at/wp-content/uploads/2023/10/codex.png" },
{ title: "Bell Boeing V-22 Osprey", price: 68000000, imgSrc: "https://atlas-content-cdn.pixelsquid.com/assets_v2/150/1506817838189385186/jpeg-600/G03.jpg?modifiedAt=1" },
{ title: "Boeing 747-8i", price: 418000000, imgSrc: "https://atlas-content-cdn.pixelsquid.com/stock-images/boeing-747-8i-airliner-doWzAxF-600.jpg" },
{ title: "DaVinci Painting", price: 4500000000, imgSrc: "https://cdn.sanity.io/images/cxgd3urn/production/73ce32d38fdc5341517e586c00e10e6ce9e5a426-734x960.jpg?w=1200&h=1569&fit=crop&auto=format" },
{ title: 'Superyacht', price: 600000000, imgSrc: "https://static.vecteezy.com/system/resources/previews/027/232/222/non_2x/yacht-yacht-transparent-background-yachting-luxurious-boat-ship-boat-ai-generated-free-png.png" },
{ title: "Mona Lisa", price: 860000000, imgSrc: "https://i.pngimg.me/thumb/f/720/comdlpng6937990.jpg" },
{ title: "1g of Francium ", price: 1000000000, imgSrc: "https://sciencenotes.org/wp-content/uploads/2020/10/Uraninite.jpg" },
{ title: "B2 Bomber", price: 1000000000, imgSrc: "https://media.defense.gov/2003/Apr/24/2001491570/-1/-1/0/24-F-ZZ999-319.jpg" },
{ title: "Personal Nuclear Submarine", price: 2000000000, imgSrc: "https://atlas-content-cdn.pixelsquid.com/stock-images/hms-artful-ssns-submarine-Od6rKy5-600.jpg" },
{ title: "NBA Team", price: 2200000000, imgSrc: "https://neal.fun/spend/images/nba-team.jpg" },
{ title: "Personal Rocket Ship", price: 7000000000, imgSrc: "https://i.pinimg.com/564x/6b/b8/0a/6bb80a1588ed2d7d06ffc42e941d710c.jpg" },
{ title: "Nuclear Bomb", price: 10000000000, imgSrc: "https://atlas-content-cdn.pixelsquid.com/stock-images/cartoon-nuke-bomb-on-ground-nuclear-vn7Ak21-600.jpg" },
{ title: "Twitter", price: 44000000000, imgSrc: "https://cdn3.iconfinder.com/data/icons/2018-social-media-logotypes/1000/2018_social_media_popular_app_logo_twitter-512.png" },
{ title: "The ISS", price: 150000000000, imgSrc: "https://upload.wikimedia.org/wikipedia/commons/8/88/ISS_after_STS-118_%28computer_rendering_of_August_2006%29.png" },
{ title: "1g of Antimatter", price: 1000000000000000, imgSrc: "https://cdn.nmsassistant.com/products/1.png" },
{ title: " Time ", price: 99999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999, imgSrc: "https://static.vecteezy.com/system/resources/previews/019/873/851/original/clock-icon-transparent-free-icon-free-png.png" },
];
items.forEach(item => {
const itemElement = document.createElement('div');
itemElement.className = 'item';
itemElement.innerHTML = `
<img src="${item.imgSrc}" alt="${item.title}">
<div class="item-title">${item.title}</div>
<div class="item-price">$${item.price}</div>
<div class="hover-text">${descriptions[item.title]}</div>
<div class="item-quantity">
<button onclick="updateItemQuantity('${item.title}', ${item.price}, -1)">-</button>
<input type="number" id="qty-${item.title}" min="0" value="0" readonly>
<button onclick="updateItemQuantity('${item.title}', ${item.price}, 1)">+</button>
</div>
`;
itemsContainer.appendChild(itemElement);
});
function updateItemQuantity(title, price, change) {
const quantityInput = document.getElementById(`qty-${title}`);
let quantity = parseInt(quantityInput.value) + change;
if (quantity < 0) quantity = 0;
const costChange = price * change;
if (balance - costChange >= 0 || change < 0) {
balance -= costChange;
totalSpent += Math.max(costChange, 0);
itemsPurchased[title] = (itemsPurchased[title] || 0) + change;
balanceElement.textContent = formatNumber(balance);
quantityInput.value = quantity;
updateOrderSummary();
} else {
alert("Insufficient funds!");
}
}
document.getElementById('orderButton').addEventListener('click', () => {
updateOrderSummary();
orderModal.classList.add('active');
});
function updateOrderSummary() {
let summary = `Congrats you spent $${formatNumber(totalSpent)} out of $${formatNumber(251300000000)}<br><br>You bought:<br>`;
let tweetContent = `I just spent $${formatNumber(totalSpent)} out of $251,300,000,000 on https://cdrc.lol and bought:\n\n`;
for (const [title, quantity] of Object.entries(itemsPurchased)) {
if (quantity > 0) {
summary += `- ${quantity}x ${title}<br>`;
tweetContent += `- ${quantity}x ${title}\n`;
}
}
orderSummary.innerHTML = summary;
document.getElementById('tweetOrder').onclick = () => {
const tweetUrl = `https://twitter.com/intent/tweet?text=${encodeURIComponent(tweetContent)}`;
window.open(tweetUrl, '_blank');
};
}
</script>
</body>
</html>