Update index.html
Browse files- index.html +35 -17
index.html
CHANGED
|
@@ -3,7 +3,7 @@
|
|
| 3 |
<head>
|
| 4 |
<meta charset="UTF-8">
|
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
-
<title>GIPPO312 - игрушки
|
| 7 |
<link rel="manifest" href="/manifest.json">
|
| 8 |
<link rel="stylesheet" href="style.css">
|
| 9 |
<link rel="apple-touch-icon" href="/icon.png">
|
|
@@ -13,18 +13,37 @@
|
|
| 13 |
<link rel="icon" href="icon.png" type="image/png">
|
| 14 |
<meta name="google-site-verification" content="V6EqDTA9Oj9V1OfNbnBHj5RKrdcXlABD8tqfEFVUHJY" />
|
| 15 |
<meta name="description" content=" ">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 16 |
</head>
|
| 17 |
<body>
|
| 18 |
-
<iframe
|
| 19 |
-
src="https://gippo312-admin.hf.space"
|
| 20 |
-
frameborder="0"
|
| 21 |
-
allowfullscreen
|
| 22 |
-
allow="cross-origin-isolated; cookies"></iframe>
|
| 23 |
|
| 24 |
-
<button id="
|
| 25 |
-
|
|
|
|
|
|
|
| 26 |
|
| 27 |
-
<div id="iosInstallModal">
|
| 28 |
<div class="modal-content">
|
| 29 |
<h2>Установите приложение Gippo312</h2>
|
| 30 |
<a href="#" id="openZoomModal">
|
|
@@ -37,7 +56,7 @@
|
|
| 37 |
</div>
|
| 38 |
</div>
|
| 39 |
|
| 40 |
-
<div id="imageZoomModal">
|
| 41 |
<span id="closeZoomModal">×</span>
|
| 42 |
<img id="zoomedImage" src="" alt="Увеличенное изображение">
|
| 43 |
</div>
|
|
@@ -105,10 +124,12 @@
|
|
| 105 |
imageZoomModal.style.display = 'none';
|
| 106 |
});
|
| 107 |
} else {
|
| 108 |
-
|
| 109 |
-
|
| 110 |
-
|
| 111 |
-
|
|
|
|
|
|
|
| 112 |
}
|
| 113 |
}
|
| 114 |
|
|
@@ -130,9 +151,6 @@
|
|
| 130 |
});
|
| 131 |
}
|
| 132 |
|
| 133 |
-
// Отладка сообщений от iframe -- УДАЛЕНО, так как не решает проблему авторизации и не несет полезной нагрузки в данном контексте. Для отладки лучше использовать инструменты разработчика в браузере.
|
| 134 |
-
|
| 135 |
-
// Перехват ошибок
|
| 136 |
window.addEventListener('error', (event) => {
|
| 137 |
console.error('Произошла ошибка:', event.message, event.filename, event.lineno);
|
| 138 |
});
|
|
|
|
| 3 |
<head>
|
| 4 |
<meta charset="UTF-8">
|
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>GIPPO312 - игрушки оптом</title>
|
| 7 |
<link rel="manifest" href="/manifest.json">
|
| 8 |
<link rel="stylesheet" href="style.css">
|
| 9 |
<link rel="apple-touch-icon" href="/icon.png">
|
|
|
|
| 13 |
<link rel="icon" href="icon.png" type="image/png">
|
| 14 |
<meta name="google-site-verification" content="V6EqDTA9Oj9V1OfNbnBHj5RKrdcXlABD8tqfEFVUHJY" />
|
| 15 |
<meta name="description" content=" ">
|
| 16 |
+
<style>
|
| 17 |
+
body {
|
| 18 |
+
display: flex;
|
| 19 |
+
flex-direction: column;
|
| 20 |
+
align-items: center;
|
| 21 |
+
justify-content: center;
|
| 22 |
+
min-height: 100vh;
|
| 23 |
+
margin: 0;
|
| 24 |
+
padding: 0;
|
| 25 |
+
font-family: sans-serif;
|
| 26 |
+
gap: 20px;
|
| 27 |
+
}
|
| 28 |
+
button {
|
| 29 |
+
padding: 15px 30px;
|
| 30 |
+
font-size: 18px;
|
| 31 |
+
cursor: pointer;
|
| 32 |
+
border-radius: 8px;
|
| 33 |
+
border: 1px solid #ccc;
|
| 34 |
+
background-color: #fff;
|
| 35 |
+
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
|
| 36 |
+
}
|
| 37 |
+
</style>
|
| 38 |
</head>
|
| 39 |
<body>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 40 |
|
| 41 |
+
<button id="openAppButton" onclick="window.open('https://ai.studio/apps/drive/1UEHu1-uSjCBFvuLW7wYsnHXPS0TDRuf3?fullscreenApplet=true', '_blank')">Открыть приложение</button>
|
| 42 |
+
|
| 43 |
+
<button id="installButton" style="display: none;">Установить приложение</button>
|
| 44 |
+
<button id="iosInstallPrompt" style="display: none;">Установить приложение</button>
|
| 45 |
|
| 46 |
+
<div id="iosInstallModal" style="display: none;">
|
| 47 |
<div class="modal-content">
|
| 48 |
<h2>Установите приложение Gippo312</h2>
|
| 49 |
<a href="#" id="openZoomModal">
|
|
|
|
| 56 |
</div>
|
| 57 |
</div>
|
| 58 |
|
| 59 |
+
<div id="imageZoomModal" style="display: none;">
|
| 60 |
<span id="closeZoomModal">×</span>
|
| 61 |
<img id="zoomedImage" src="" alt="Увеличенное изображение">
|
| 62 |
</div>
|
|
|
|
| 124 |
imageZoomModal.style.display = 'none';
|
| 125 |
});
|
| 126 |
} else {
|
| 127 |
+
if (!isIos()) {
|
| 128 |
+
installButton.style.display = deferredPrompt ? 'block' : 'none';
|
| 129 |
+
iosInstallPrompt.style.display = 'none';
|
| 130 |
+
if (deferredPrompt) {
|
| 131 |
+
installButton.classList.add('pulse-animation');
|
| 132 |
+
}
|
| 133 |
}
|
| 134 |
}
|
| 135 |
|
|
|
|
| 151 |
});
|
| 152 |
}
|
| 153 |
|
|
|
|
|
|
|
|
|
|
| 154 |
window.addEventListener('error', (event) => {
|
| 155 |
console.error('Произошла ошибка:', event.message, event.filename, event.lineno);
|
| 156 |
});
|