Spaces:
Running
Running
Update index.html
Browse files- index.html +13 -6
index.html
CHANGED
|
@@ -2,7 +2,8 @@
|
|
| 2 |
<html lang="ko">
|
| 3 |
<head>
|
| 4 |
<meta charset="UTF-8">
|
| 5 |
-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
| 6 |
<title>eUM : Open Perflexity</title>
|
| 7 |
<link rel="manifest" href="/manifest.json">
|
| 8 |
<link rel="stylesheet" href="style.css">
|
|
@@ -18,10 +19,12 @@
|
|
| 18 |
display: flex;
|
| 19 |
flex-direction: column;
|
| 20 |
height: 100vh;
|
|
|
|
|
|
|
| 21 |
}
|
| 22 |
|
| 23 |
header {
|
| 24 |
-
background-color: #
|
| 25 |
padding: 0.5rem;
|
| 26 |
box-shadow: 0 1px 2px rgba(0,0,0,0.1);
|
| 27 |
display: flex;
|
|
@@ -55,6 +58,7 @@
|
|
| 55 |
<body>
|
| 56 |
<header></header>
|
| 57 |
<iframe src="https://eum-lovat.vercel.app" allowfullscreen></iframe>
|
|
|
|
| 58 |
<button id="installButton">Install App</button>
|
| 59 |
|
| 60 |
<script>
|
|
@@ -67,9 +71,8 @@
|
|
| 67 |
if (deferredPrompt) {
|
| 68 |
deferredPrompt.prompt();
|
| 69 |
const { outcome } = await deferredPrompt.userChoice;
|
| 70 |
-
console.log(outcome === 'accepted' ? 'User accepted the install prompt' : 'User dismissed the install prompt');
|
| 71 |
-
deferredPrompt = null;
|
| 72 |
installButton.style.display = 'none';
|
|
|
|
| 73 |
}
|
| 74 |
});
|
| 75 |
}
|
|
@@ -83,8 +86,12 @@
|
|
| 83 |
if ('serviceWorker' in navigator) {
|
| 84 |
window.addEventListener('load', () => {
|
| 85 |
navigator.serviceWorker.register('/service-worker.js')
|
| 86 |
-
.then((registration) =>
|
| 87 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 88 |
});
|
| 89 |
}
|
| 90 |
</script>
|
|
|
|
| 2 |
<html lang="ko">
|
| 3 |
<head>
|
| 4 |
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover">
|
| 6 |
+
<meta name="theme-color" content="#000000">
|
| 7 |
<title>eUM : Open Perflexity</title>
|
| 8 |
<link rel="manifest" href="/manifest.json">
|
| 9 |
<link rel="stylesheet" href="style.css">
|
|
|
|
| 19 |
display: flex;
|
| 20 |
flex-direction: column;
|
| 21 |
height: 100vh;
|
| 22 |
+
background-color: #000000;
|
| 23 |
+
color: #ffffff;
|
| 24 |
}
|
| 25 |
|
| 26 |
header {
|
| 27 |
+
background-color: #111;
|
| 28 |
padding: 0.5rem;
|
| 29 |
box-shadow: 0 1px 2px rgba(0,0,0,0.1);
|
| 30 |
display: flex;
|
|
|
|
| 58 |
<body>
|
| 59 |
<header></header>
|
| 60 |
<iframe src="https://eum-lovat.vercel.app" allowfullscreen></iframe>
|
| 61 |
+
|
| 62 |
<button id="installButton">Install App</button>
|
| 63 |
|
| 64 |
<script>
|
|
|
|
| 71 |
if (deferredPrompt) {
|
| 72 |
deferredPrompt.prompt();
|
| 73 |
const { outcome } = await deferredPrompt.userChoice;
|
|
|
|
|
|
|
| 74 |
installButton.style.display = 'none';
|
| 75 |
+
deferredPrompt = null;
|
| 76 |
}
|
| 77 |
});
|
| 78 |
}
|
|
|
|
| 86 |
if ('serviceWorker' in navigator) {
|
| 87 |
window.addEventListener('load', () => {
|
| 88 |
navigator.serviceWorker.register('/service-worker.js')
|
| 89 |
+
.then((registration) => {
|
| 90 |
+
console.log('Service Worker registered:', registration);
|
| 91 |
+
})
|
| 92 |
+
.catch((error) => {
|
| 93 |
+
console.log('Service Worker registration failed:', error);
|
| 94 |
+
});
|
| 95 |
});
|
| 96 |
}
|
| 97 |
</script>
|