-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
132 lines (130 loc) · 7.63 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" integrity="sha384-B0vP5xmATw1+K9KRQjQERJvTumQW0nPEzvF6L/Z6nronJ3oUOFUFpCjEUQouq2+l" crossorigin="anonymous">
<link rel="stylesheet" href="stylesheet.css">
<title>Safemoon Compound Interest Calculator</title>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-C5BT5JVR27"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-C5BT5JVR27');
</script>
</head>
<body>
<div class="card shadow-lg p-3 mb-5 bg-white rounded" >
<div class="d-flex justify-content-center title">SafeMoon Compound Interest Calculator</div>
<p class="instructions step1" id="step1">Step 1: Enter the amount of Safemoon coins you have and the amount of coins you gain every day (I track my generation and just average it out; some days are more some days less). Hit "Calculate."</p>
<form class="form-1">
<div class="row d-flex justify-content-center">
<div class="col-md-3">
<input type="number" min="1" class="form-control" id="safemoon-coins-ammount" placeholder="Amount of SafeMoon Coins">
</div>
<div class="col-md-3">
<input type="number" min="1" max="1000000000000" class="form-control" id="coins-gained-24h" placeholder="Coins gained in 24 hour window">
</div>
<button type="submit" class="col-md-2" id="btn-1">Calculate</button>
</div>
</form>
<div class="container coin-interest">
<div class="row">
<p class="col-md text-center bold" style="padding-left:20px;">Coins gained in First month:<span id="coins-gained-1m"> </span><span id="perc-gained-1m"><span></p>
<p class="col-md text-center bold">Coins gained in First year:<span id="coins-gained-1y"></span><span id="perc-gained-1y"><span></p>
<p class="col-sm text-center bold">Current Value:<span id="current-value"></span></p>
</div>
</div>
<p class="instructions step2 display" id="step2">Step 2: Enter the total amount of money you have invested into Safemoon. Enter in a price you would like to look at your ROI for (You can change and play around with this after). Hit "Calculate."</p>
<form class="form-2 display">
<div class="row d-flex justify-content-center">
<div class="col-md-3">
<input type="number" class="form-control" id="invested" placeholder="Total money invested">
</div>
<div class="col-md-3">
<input type="number" step="any" class="form-control" id="price" placeholder="Price of SafeMoon">
</div>
<button type="submit" class="col-md-2" id="btn-2">Calculate</button>
</div>
</form>
<div class="container year-compound display" id="compound-container">
<div class="row justify-content-center years">
<div class="col-sm-2"></div>
<div class="col-sm-2">Year 1</div>
<div class="col-sm-2">Year 2</div>
<div class="col-sm-2">Year 3</div>
<div class="col-sm-2">Year 4</div>
<div class="col-sm-2">Year 5</div>
</div>
<br>
<div class="row justify-content-center total-safemoon-coins">
<div class="col-sm-2 bold">Total Safemoon Coins</div>
<div class="col-sm-2"><span id="year1-total-coins"><span></div>
<div class="col-sm-2"><span id="year2-total-coins"></span></div>
<div class="col-sm-2"><span id="year3-total-coins"></span></div>
<div class="col-sm-2"><span id="year4-total-coins"></span></div>
<div class="col-sm-2"><span id="year5-total-coins"></span></div>
</div>
<div class="row justify-content-center total-value">
<div class="col-sm-2 bold">Total Value</div>
<div class="col-sm-2"><span id="year1-total-value"></span></div>
<div class="col-sm-2"><span id="year2-total-value"></span></div>
<div class="col-sm-2"><span id="year3-total-value"></span></div>
<div class="col-sm-2"><span id="year4-total-value"></span></div>
<div class="col-sm-2"><span id="year5-total-value"></span></div>
</div>
<div class="row justify-content-center total-value">
<div class="col-sm-2 bold">Return on Investment</div>
<div class="col-sm-2"><span id="year1-roi"></span></div>
<div class="col-sm-2"><span id="year2-roi"></span></div>
<div class="col-sm-2"><span id="year3-roi"></span></div>
<div class="col-sm-2"><span id="year4-roi"></span></div>
<div class="col-sm-2"><span id="year5-roi"></span></div>
</div>
</div>
<div class="container year-compound-switch display" id="compound-container-switch">
<div class="row switch">
<div class="col-xs-4"><span>Years</span<></div>
<div class="col-xs-4"># of Coins</div>
<div class="col-xs-4">Value</div>
<div class="col-xs-4 justfiy-content-center">ROI</div>
</div>
<div class="row total-safemoon-coins">
<div class="col-xs-4 align-middle">Year 1</div>
<div class="col-xs-4"><span id="year1-total-coins-switch"><span></div>
<div class="col-xs-4"><span id="year1-total-value-switch"></span></div>
<div class="col-xs-4"><span id="year1-roi-switch"></span></div>
</div>
<div class="row total-safemoon-coins">
<div class="col-xs-4">Year 2</div>
<div class="col-xs-4"><span id="year2-total-coins-switch"><span></div>
<div class="col-xs-4"><span id="year2-total-value-switch"></span></div>
<div class="col-xs-4"><span id="year2-roi-switch"></span></div>
</div>
<div class="row total-safemoon-coins">
<div class="col-xs-4">Year 3</div>
<div class="col-xs-4"><span id="year3-total-coins-switch"><span></div>
<div class="col-xs-4"><span id="year3-total-value-switch"></span></div>
<div class="col-xs-4"><span id="year3-roi-switch"></span></div>
</div>
<div class="row total-safemoon-coins">
<div class="col-xs-4">Year 4</div>
<div class="col-xs-4"><span id="year4-total-coins-switch"><span></div>
<div class="col-xs-4"><span id="year4-total-value-switch"></span></div>
<div class="col-xs-4"><span id="year4-roi-switch"></span></div>
</div>
<div class="row total-safemoon-coins">
<div class="col-xs-4">Year 5</div>
<div class="col-xs-4"><span id="year5-total-coins-switch"><span></div>
<div class="col-xs-4"><span id="year5-total-value-switch"></span></div>
<div class="col-xs-4"><span id="year5-roi-switch"></span></div>
</div>
</div>
</div>
<!-- javascript -->
<script src="app.js"></script>
</body>
</html>