-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
64 lines (63 loc) · 2.11 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>Stonks</title>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&family=Rubik:wght@400;500&display=swap"
rel="stylesheet"
/>
<link rel="stylesheet" href="./style.css" />
</head>
<body>
<div id="blob"></div>
<div id="blur"></div>
<div id="endBlur"></div>
<div id="content">
<div style="left: 10%; float: left; position: absolute">
<p id="time">300</p>
</div>
<div style="right: 10%; float: right; position: absolute">
<p id="money">$10000</p>
</div>
<div style="bottom: 2%; right: 2%; float: right; position: absolute">
<button id="sourceCode"
onclick="location.href = 'https://github.com/ilikecereal1/Stonks';"
>
Open source on GitHub
</button>
</div>
<p id="stocks">0 stocks</p>
<div id="animation"></div>
<h1 id="title" data-value="stonk market">stonk market</h1>
<div id="menu">
<button id="menuButton" onclick="play();">start</button>
<button id="menuButton" onclick="/* settings(); */">settings</button>
</div>
<canvas id="canvas"></canvas>
<div id="game">
<p id="buyPrice">buy: null</p>
<p id="sellPrice">sell: null</p>
<div style="padding-left: 10%; float: left">
<button onclick="buyStock();">buy</button>
</div>
<div style="padding-right: 10%; float: right">
<button onclick="sellStock();" id="sell">sell</button>
</div>
</div>
</div>
<div id="end">
<div style="display: flex">
<p id="endText">
You made $0. You got an extra $0 after company profits, and other
things. Grand total: $0
</p>
</div>
</div>
<script src="./stonks.js"></script>
<script src="./style.js"></script>
<script src="https://kit.fontawesome.com/1ee8f271b9.js"></script>
</body>
</html>