Spaces:
Running
Running
it's not working
Browse files- compliance.html +3 -3
- index.html +27 -21
- service-worker.js +1 -6
compliance.html
CHANGED
|
@@ -1,6 +1,5 @@
|
|
| 1 |
|
| 2 |
<!DOCTYPE html>
|
| 3 |
-
<html manifest="manifest.json">
|
| 4 |
<html lang="en">
|
| 5 |
<head>
|
| 6 |
<meta charset="UTF-8">
|
|
@@ -88,9 +87,10 @@
|
|
| 88 |
</div>
|
| 89 |
</div>
|
| 90 |
</div>
|
| 91 |
-
|
| 92 |
<script>
|
| 93 |
-
|
|
|
|
|
|
|
| 94 |
</script>
|
| 95 |
</body>
|
| 96 |
</html>
|
|
|
|
| 1 |
|
| 2 |
<!DOCTYPE html>
|
|
|
|
| 3 |
<html lang="en">
|
| 4 |
<head>
|
| 5 |
<meta charset="UTF-8">
|
|
|
|
| 87 |
</div>
|
| 88 |
</div>
|
| 89 |
</div>
|
|
|
|
| 90 |
<script>
|
| 91 |
+
document.addEventListener('DOMContentLoaded', () => {
|
| 92 |
+
feather.replace();
|
| 93 |
+
});
|
| 94 |
</script>
|
| 95 |
</body>
|
| 96 |
</html>
|
index.html
CHANGED
|
@@ -1,6 +1,5 @@
|
|
| 1 |
|
| 2 |
<!DOCTYPE html>
|
| 3 |
-
<html manifest="manifest.json">
|
| 4 |
<html lang="en">
|
| 5 |
<head>
|
| 6 |
<meta charset="UTF-8">
|
|
@@ -237,24 +236,27 @@
|
|
| 237 |
|
| 238 |
<script src="https://cdn.jsdelivr.net/npm/vanta@latest/dist/vanta.waves.min.js"></script>
|
| 239 |
<script>
|
| 240 |
-
//
|
| 241 |
-
if (
|
| 242 |
-
|
| 243 |
-
|
| 244 |
-
|
| 245 |
-
|
| 246 |
-
|
| 247 |
-
|
| 248 |
-
|
| 249 |
-
|
| 250 |
-
|
| 251 |
-
|
| 252 |
-
|
| 253 |
-
|
| 254 |
-
|
| 255 |
-
|
| 256 |
-
|
| 257 |
-
|
|
|
|
|
|
|
|
|
|
| 258 |
<script>
|
| 259 |
// Add to homescreen prompt
|
| 260 |
let deferredPrompt;
|
|
@@ -355,8 +357,12 @@ function showRecentNumbers() {
|
|
| 355 |
|
| 356 |
// Attach event to call button
|
| 357 |
document.addEventListener('DOMContentLoaded', () => {
|
| 358 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 359 |
});
|
| 360 |
-
|
| 361 |
</body>
|
| 362 |
</html>
|
|
|
|
| 1 |
|
| 2 |
<!DOCTYPE html>
|
|
|
|
| 3 |
<html lang="en">
|
| 4 |
<head>
|
| 5 |
<meta charset="UTF-8">
|
|
|
|
| 236 |
|
| 237 |
<script src="https://cdn.jsdelivr.net/npm/vanta@latest/dist/vanta.waves.min.js"></script>
|
| 238 |
<script>
|
| 239 |
+
// Initialize Vanta.js
|
| 240 |
+
if (window.VANTA) {
|
| 241 |
+
if (!/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) {
|
| 242 |
+
VANTA.WAVES({
|
| 243 |
+
el: "#vanta-bg",
|
| 244 |
+
mouseControls: true,
|
| 245 |
+
touchControls: true,
|
| 246 |
+
gyroControls: false,
|
| 247 |
+
minHeight: 200.00,
|
| 248 |
+
minWidth: 200.00,
|
| 249 |
+
scale: 1.00,
|
| 250 |
+
scaleMobile: 1.00,
|
| 251 |
+
color: 0x4a148c,
|
| 252 |
+
shininess: 35.00,
|
| 253 |
+
waveHeight: 15.00,
|
| 254 |
+
waveSpeed: 0.25,
|
| 255 |
+
zoom: 0.75
|
| 256 |
+
});
|
| 257 |
+
}
|
| 258 |
+
}
|
| 259 |
+
</script>
|
| 260 |
<script>
|
| 261 |
// Add to homescreen prompt
|
| 262 |
let deferredPrompt;
|
|
|
|
| 357 |
|
| 358 |
// Attach event to call button
|
| 359 |
document.addEventListener('DOMContentLoaded', () => {
|
| 360 |
+
feather.replace();
|
| 361 |
+
const callButton = document.querySelector('button[onclick="initiateCall()"]');
|
| 362 |
+
if (callButton) {
|
| 363 |
+
callButton.addEventListener('click', initiateCall);
|
| 364 |
+
}
|
| 365 |
});
|
| 366 |
+
</script>
|
| 367 |
</body>
|
| 368 |
</html>
|
service-worker.js
CHANGED
|
@@ -12,13 +12,8 @@ const ASSETS = [
|
|
| 12 |
'/icons/icon-152x152.png',
|
| 13 |
'/icons/icon-192x192.png',
|
| 14 |
'/icons/icon-384x384.png',
|
| 15 |
-
'/icons/icon-512x512.png'
|
| 16 |
-
'https://cdn.tailwindcss.com',
|
| 17 |
-
'https://unpkg.com/feather-icons',
|
| 18 |
-
'https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js',
|
| 19 |
-
'https://cdn.jsdelivr.net/npm/vanta@latest/dist/vanta.waves.min.js'
|
| 20 |
];
|
| 21 |
-
|
| 22 |
self.addEventListener('install', (event) => {
|
| 23 |
event.waitUntil(
|
| 24 |
caches.open(CACHE_NAME)
|
|
|
|
| 12 |
'/icons/icon-152x152.png',
|
| 13 |
'/icons/icon-192x192.png',
|
| 14 |
'/icons/icon-384x384.png',
|
| 15 |
+
'/icons/icon-512x512.png'
|
|
|
|
|
|
|
|
|
|
|
|
|
| 16 |
];
|
|
|
|
| 17 |
self.addEventListener('install', (event) => {
|
| 18 |
event.waitUntil(
|
| 19 |
caches.open(CACHE_NAME)
|