-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
171 lines (152 loc) · 8.58 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
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
<!DOCTYPE html>
<!--
Cooldown Calculator for Ingress
09.11.2022
made by @filecc https://github.com/filecc
idea by @Danynad https://github.com/ynad
released under GPL-3.0 license
source code: https://github.com/filecc/cooldown-calculator-ingress
github-pages: https://filecc.github.io/cooldown-calculator-ingress
-->
<html lang="en">
<head>
<meta property="og:title" content="CoolDown Calc for Ingress" />
<meta property="og:image" content="metaimage.png" href="metaimage.png" />
<meta property="og:url" content="https://filecc.github.io/cooldown-calculator-ingress/" />
<meta property="og:description" content="A simple cooldown calculator for Ingress" />
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-OERcA2EqjJCMA+/3y+gxIOqMEjwtxJY7qPCqsdltbNJuaOe923+mo//f6V8Qbsw3"
crossorigin="anonymous"></script>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-Zenh87qX5JnK2Jl0vWa8Ck2rdkQ2Bzep5IDxbcnCeuOxjzrPF/et3URy9Bv1WTRi" crossorigin="anonymous">
<link rel="stylesheet" href="master.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<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=Montserrat:wght@400;500&family=Silkscreen&display=swap"
rel="stylesheet">
<title>CoolDown Calc by @filecc</title>
</head>
<body>
<main class="site">
<div id="containerEvent" class="btnContainerEvent hidden">
<button id="eventNotify" onclick=closeAlert()>
<span class="text">Ongoing event</span>
</button>
</div>
<div id="event" class="hidden">
<button onclick=closeAlert()>X</button>
<div>
<p></p>
<ul>
<span>An event called <a id="eventLink" href="" target="_blank"> <li id="eventName"> </li> </a> is affecting game's dynamics.</span>
<li id="startDate"></li>
<li id="endDate"></li>
</ul>
Time remaing: <br>
<p id="countdown"></p>
</div>
</div>
<div class="darkmodeContainer">
<i id="sun" class="bi bi-brightness-high-fill "></i>
<div class="form-check form-switch">
<input class="form-check-input shadow-none" type="checkbox" id="toggle-btn" />
<label class="form-check-label" for="toggle-btn"></label>
</div>
<i id="moon" class="bi bi-moon-fill hidden"></i>
</div>
<h1 class="title">Ingress</h1>
<p>
<h1 class="title">Cooldown Calculator</h1>
<br>
<fieldset className="friendOrEnemyContainer">
<div class="friendOrEnemy">
<h5>Portal status</h5>
<input type="radio" id="friend" name="friendOrEnemy" value="friend" checked>
<label for="friend">Friendly</label>
<input type="radio" id="enemy" name="friendOrEnemy" value="enemy">
<label for="enemy">Enemy/Neutral</label>
</div>
</fieldset>
<div class="container containerMod d-flex flex-wrap align-items-center justify-content-center mt-5">
<div class="container d-flex align-items-center justify-content-between mx-0 p-0">
<h6>Mod 1 </h6>
<button onclick="resetOne('mod1')" class="btn resetOne"><i class="bi bi-trash2-fill"></i></button>
</div>
<select id="mod1" class="form-select mb-2" aria-label="Default select example">
<option value="none" selected>None</option>
<option value="chs">Common Heat Sink</option>
<option value="rhs">Rare Heat Sink</option>
<option value="vrhs">Very Rare Heat Sink</option>
<option value="cmh">Common Multi Hack</option>
<option value="rmh">Rare Multi Hack</option>
<option value="vrmh">Very Rare Multi Hack</option>
</select>
<div class="container d-flex align-items-center justify-content-between mx-0 p-0">
<h6>Mod 2 </h6>
<button onclick="resetOne('mod2')" class="btn resetOne"><i class="bi bi-trash2-fill"></i></button>
</div>
<select id="mod2" class="form-select mb-2" aria-label="Default select example">
<option value="none" selected>None</option>
<option value="chs">Common Heat Sink</option>
<option value="rhs">Rare Heat Sink</option>
<option value="vrhs">Very Rare Heat Sink</option>
<option value="cmh">Common Multi Hack</option>
<option value="rmh">Rare Multi Hack</option>
<option value="vrmh">Very Rare Multi Hack</option>
</select>
<div class="container d-flex align-items-center justify-content-between mx-0 p-0">
<h6>Mod 3 </h6>
<button onclick="resetOne('mod3')" class="btn resetOne"><i class="bi bi-trash2-fill"></i></button>
</div>
<select id="mod3" class="form-select mb-2" aria-label="Default select example">
<option value="none" selected>None</option>
<option value="chs">Common Heat Sink</option>
<option value="rhs">Rare Heat Sink</option>
<option value="vrhs">Very Rare Heat Sink</option>
<option value="cmh">Common Multi Hack</option>
<option value="rmh">Rare Multi Hack</option>
<option value="vrmh">Very Rare Multi Hack</option>
</select>
<div class="container d-flex align-items-center justify-content-between mx-0 p-0">
<h6>Mod 4 </h6>
<button onclick="resetOne('mod4')" class="btn resetOne"><i class="bi bi-trash2-fill"></i></button>
</div>
<select id="mod4" class="form-select mb-2" aria-label="Default select example">
<option value="none" selected>None</option>
<option value="chs">Common Heat Sink</option>
<option value="rhs">Rare Heat Sink</option>
<option value="vrhs">Very Rare Heat Sink</option>
<option value="cmh">Common Multi Hack</option>
<option value="rmh">Rare Multi Hack</option>
<option value="vrmh">Very Rare Multi Hack</option>
</select>
</div>
<div class="container d-flex align-items-center justify-content-center mt-2 buttonContainer">
<button onclick=takeInput() class="btn calculate"><i class="bi bi-play-fill"></i> Calculate</button>
<button onclick=reset() class="btn reset"><i class="bi bi-trash-fill"></i> Reset all</button>
</div>
<div id="resultBox" class="result container align-items-center justify-content-center hidden">
<p>Cooldown: <span id="cooldown">0</span> seconds</p>
<p>Hacks before burnout: <span id="hackBeforeBurnout">0</span></p>
<p>Minimum time to burnout: <span id="minute">0</span> minute and <span id="second">0</span> seconds</p>
</div>
</main>
<footer class="footer ">
<p>100% Unofficial fansite</p>
<p>Not affiliated with Ingress or Niantic</p>
<p>Made with <i class="bi bi-balloon-heart-fill"></i> by filecc </p>
<span><a href="https://github.com/filecc" target="_blank"><i class="bi bi-github"></i></a> <a
href="https://www.instagram.com/filecc" target="_blank"><i class="bi bi-instagram"></i></a> | </a><a
class="coffee" href="https://paypal.me/filecc?country.x=IT&locale.x=it_IT" target="_blank"> buy me a
coffe <i class="bi bi-cup-hot-fill"></i></a></span>
</footer>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-u1OknCvxWvY5kfmNBILK2hRnQC3Pr17a+RTT6rIHI7NnikvbZlHgTPOOmMi466C8"
crossorigin="anonymous"></script>
<script src="index.js" charset="utf-8"></script>
</body>
</html>