-
Notifications
You must be signed in to change notification settings - Fork 0
/
cookiecalc.html
125 lines (120 loc) · 3.87 KB
/
cookiecalc.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
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="styles.css" />
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"
/>
<script
src="https://kit.fontawesome.com/b214d16b30.js"
crossorigin="anonymous"
></script>
<script src="functions.js"></script>
<title>fowlis | CookieCalc</title>
<style>
#snackbar {
visibility: hidden;
min-width: 50px;
margin-left: -25px;
background-color: #282a36;
color: #fff;
text-align: center;
border-radius: 10px;
padding: 16px;
position: fixed;
z-index: 1;
left: 43.5%;
bottom: 30px;
}
#snackbar.show {
visibility: visible;
-webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
animation: fadein 0.5s, fadeout 0.5s 2.5s;
}
.error {
color: #d2042d !important;
}
</style>
</head>
<body>
<aside class="sidebar">
<p style="font-size: 18px !important">fowlis.github.io</p>
<a href="index.html"><i class="fa fa-fw fa-home"></i> Home</a>
<a href="aboutme.html"><i class="fa fa-fw fa-user"></i> About Me</a>
<a href="projects.html"><i class="fa fa-fw fa-wrench"></i> Projects</a>
<a href="contact.html"><i class="fa fa-fw fa-envelope"></i> Contact</a>
<a href="https://github.com/fowlis" target="_blank"
><i class="fa fa-fw fa-github"></i> GitHub</a
>
<p class="sidebar-bottom">totally fake copyright text™</p>
</aside>
<div style="padding: 10px"></div>
<main class="content">
<h2>CookieCalc - basic calculator for cookie clicker</h2>
<h3>Calculate how many cookies you will get in x amount of time</h3>
<p>Enter your Cookies per Second in FULL here (i.e. 170000000)</p>
<center>
<input type="number" id="cps" />
</center>
<p>Enter amount of time</p>
<input type="number" id="time" />
<div style="text-align: center; width: 100%">
<div style="margin: 0 auto; width: 100px; text-align: left">
<form name="format">
<label class="container"
>Seconds
<input
type="radio"
name="format"
id="radio1"
value="seconds"
checked="checked"
/>
<span class="checkmark"></span>
</label>
<label class="container"
>Minutes
<input
type="radio"
name="format"
id="radio2"
value="minutes"
checked="checked"
/>
<span class="checkmark"></span>
</label>
<label class="container"
>Hours
<input
type="radio"
name="format"
id="radio3"
value="hours"
checked="checked"
/>
<span class="checkmark"></span>
</label>
</form>
</div>
</div>
<br /><br />
<center>
<button onclick="calculateAmountinTime()">Calculate!</button><br />
</center>
<p class="" id="output1"></p>
<h3>Calculate how long it will take to make x amount of cookies</h3>
<p>Enter your Cookies per Second in FULL here (i.e. 170000000)</p>
<center><input type="number" id="cps2" /><br /></center>
<p>Enter how many cookies you want here</p>
<center>
<input type="number" id="amount" /><br /><br />
<button onclick="calculateTimeforAmount()">Calculate!</button><br />
</center>
<p class="" style="padding: 20px" id="output2"></p>
<div style="color: #d2042d" id="snackbar">
Please enter values in the boxes!
</div>
</main>
</body>
</html>