forked from Vivaan-d/PreciseTools
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
254 lines (183 loc) · 8.23 KB
/
index.html
File metadata and controls
254 lines (183 loc) · 8.23 KB
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
<!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">
<title>Precise Tools</title>
<link rel="stylesheet" href="yes.css">
<link rel="icon" type="image/x-icon" href="./precisetools.png">
<link rel="manifest" href="manifest.json" />
<!-- Facebook Meta Tags -->
<meta property="og:title" content="Precise Tools">
<meta property="og:type" content="website">
<meta property="og:description" content="Exploring mathematical tools for Bee Swarm Simulator">
<meta property="og:image" content="https://precisetools-pack.netlify.app/Banners/PreciseTools%20Poster.png"> <!-- Replace with your actual image URL -->
<!-- Twitter Meta Tags (similar to Open Graph) -->
<meta name="twitter:title" content="Precise Tools">
<meta name="twitter:description" content="Precise Mathematical tools for Bee Swarm Simulator">
<meta name="twitter:image" content="https://precisetools-pack.netlify.app/Banners/PreciseTools%20Poster.png"> <!-- Replace with your actual image URL -->
<meta name="twitter:card" content="summary_large_image">
<!-- Other necessary meta tags -->
<meta name="description" content="Precise Tools: Mathematical utilities for Bee Swarm Simulator">
<meta name="google-site-verification" content="jw5KxbwkykOTyf_CaMbtPY8szoTA1Ir3ozr69i8uYGQ" />
</head>
<body>
<div class="container">
<header>
<div class="logo">
<img src="precisetools.png" height="34" width="34" style="margin-right: 20px;margin-bottom: -7px;">Precise Tools</div>
<nav>
<ul class="nav">
your internet is prob slow
<!-- <li><a href="#" data-hover="">Contact</a></li>-->
</ul>
</nav>
</header>
<main>
<h1>Precise Tools</h1>
<p>Precise Tools is a Bee Swarm Simulator Calculator/Resource for values that may be very useful and might not be found anywhere else! There are a lot of simple calculations and complex ones too (If I come by any.) PreciseTools is made by Viv (@vivaanmc) on Discord, @Vivaanplay1231 (VivaanRX) on Roblox, and Vivaan-d on github. Some adjustments(Brand Logos, Meta Tag updates) were made by Tahjae (tahj_s) on discord, tahj-s on github, and 3Dultra12345 on roblox. You may DM us on Discord for any suggestions(Tahjae does not always have DMs on).</p>
<br><br>
<h2>Get PWA the app!!</h2>
<p>Click here to get the Precise Tools App: <button id="install" hidden>Install</button></p>
<h2>Discord Server</h2>
<p>We have a Discord server called "Communist Bee Community" where you can join <a href=https://discord.gg/hdAZuZXgq8>Here (https://discord.gg/hdAZuZXgq8)</a></p>
<h2>List of Calculators/Resources</h2>
<p>#1: Amulet Efficiency Calculator (AEC/AmuletEC) is a Calculator for calculating how much more efficient (or less efficient) a color's pollen is compared to base pollen</p>
<p>#2: Base Capacity Calculator (BCC) is a Calculator for calculating how much more efficient (or less efficient) a color's pollen is compared to base pollen</p>
<p>#3: Crit Chance Calculator (CCC). more info comming soon...</p> <!-- Put Your Info in here -->
<p>#4: Percent To Multiplacation (PTM). more info comming soon...</p> <!-- Put Your Info in here -->
<br><i>Okay i will update this soon.. soon..................... .............................................................</i>
<!-- <h2>Lists</h2><p>Here are some examples of lists:</p>
<ul>
<li>Unordered list item 1</li>
<li>Unordered list item 2</li>
<li>Unordered list item 3</li>
</ul>
<ol>
<li>Ordered list item 1</li>
<li>Ordered list item 2</li>
<li>Ordered list item 3</li>
</ol>
<h2>Tables</h2>
<p>Here is an example of a table:</p>
<table>
<thead>
<tr>
<th>Name</th>
<th>Email</th>
<th>Phone</th>
</tr>
</thead>
<tbody>
<tr>
<td>John Doe</td>
<td>john@example.com</td>
<td>123-456-7890</td>
</tr>
<tr>
<td>Jane Doe</td>
<td>jane@example.com</td>
<td>098-765-4321</td>
</tr>
<tr>
<td>Bob Smith</td>
<td>bob@example.com</td>
<td>555-555-5555</td>
</tr>
</tbody>
</table> -->
<h2>Suggestions</h2>
<p>Suggest something to me to add to this website!:</p>
<form netlify>
<label for="name">Name</label>
<input type="text" id="name" name="name" placeholder="Enter your name">
<label for="message">Message</label>
<textarea id="message" name="message" placeholder="Enter your message"></textarea>
<input type="submit" value="Send">
<label for="message">Email (optional)</label>
<textarea id="message" name="message" placeholder="Enter your message"></textarea>
<input type="submit" value="Send">
</form>
<!--
<h1>Dynamic Mode Settings</h1>
<p>Your system mode is currently: <span id="systemMode"></span></p>
<button onclick="setManualMode('light')">Light Mode</button>
<button onclick="setManualMode('dark')">Dark Mode</button>
<button onclick="setAutomaticMode()">Automatic Mode</button>
tahjae stolen code
xd
whatever
i will keep it here
i dont need it
its trash
-->
<!--
<h2>Buttons</h2>
<p>Here are some examples of buttons:</p>
<button class="button">Button 1</button>
<button class="button">Button 2</button>
<button class="button">Button 3</button>
<h2>Images</h2>
<p>Here is an example of an image:</p>
<img src="https://source.unsplash.com/random/800x600" alt="Random image">
-->
</main>
</div>
<script src="homepagehandler.js"></script>
<script>
// Oh Crap Tahjae's Code Is Entirely Copied
// main.js
let installPrompt = null;
const installButton = document.querySelector("#install");
window.addEventListener("beforeinstallprompt", (event) => {
event.preventDefault();
installPrompt = event;
installButton.removeAttribute("hidden");
});
// PWA install button
installButton.addEventListener("click", async () => {
if (!installPrompt) {
return;
}
const result = await installPrompt.prompt();
console.log(`Install prompt was: ${result.outcome}`);
disableInAppInstallPrompt();
});
function disableInAppInstallPrompt() {
installPrompt = null;
installButton.setAttribute("hidden", "");
}
// service worker
if ("serviceWorker" in navigator) {
navigator.serviceWorker.register("sw.js")
.then(registration => console.log("Service Worker registered"))
.catch(error => console.error("Service Worker registration failed", error));
}
// light mode / dark mode
// Listen for changes in system mode
window.matchMedia('(prefers-color-scheme: dark)').addEventListener('change', (e) => {
const newMode = e.matches ? 'Dark Mode' : 'Light Mode';
document.getElementById('systemMode').textContent = newMode;
document.body.classList.toggle('dark-mode', e.matches);
document.body.classList.toggle('light-mode', !e.matches);
});
// Manual mode setting
function setManualMode(mode) {
document.body.classList.remove('dark-mode', 'light-mode');
document.body.classList.add(mode === 'dark' ? 'dark-mode' : 'light-mode');
document.getElementById('systemMode').textContent = mode === 'dark' ? 'Dark Mode' : 'Light Mode';
localStorage.setItem('mode', mode);
}
// Automatic mode setting (reflects system theme)
function setAutomaticMode() {
if (prefersDarkMode) {
setManualMode('dark');
} else {
setManualMode('light');
}
}
</script>
<script src="jslib.js"></script>
</body>
</html>