Spaces:
Sleeping
Sleeping
Update nutri_call.html
Browse files- nutri_call.html +30 -5
nutri_call.html
CHANGED
|
@@ -1,12 +1,37 @@
|
|
| 1 |
<!DOCTYPE html>
|
| 2 |
<html lang="ru">
|
| 3 |
<head>
|
| 4 |
-
<!-- Основные стили -->
|
| 5 |
-
<link href="https://cdn.jsdelivr.net/npm/@pnotify/core@5
|
|
|
|
|
|
|
| 6 |
<!-- Мобильная поддержка -->
|
| 7 |
-
<link href="https://cdn.jsdelivr.net/npm/@pnotify/mobile@5
|
| 8 |
-
|
| 9 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
|
| 11 |
|
| 12 |
|
|
|
|
| 1 |
<!DOCTYPE html>
|
| 2 |
<html lang="ru">
|
| 3 |
<head>
|
| 4 |
+
<!-- Основные стили PNotify -->
|
| 5 |
+
<link href="https://cdn.jsdelivr.net/npm/@pnotify/core@5/dist/PNotify.css" rel="stylesheet">
|
| 6 |
+
<!-- Тема (обязательно!) -->
|
| 7 |
+
<link href="https://cdn.jsdelivr.net/npm/@pnotify/bootstrap4@5/dist/PNotifyBootstrap4.css" rel="stylesheet">
|
| 8 |
<!-- Мобильная поддержка -->
|
| 9 |
+
<link href="https://cdn.jsdelivr.net/npm/@pnotify/mobile@5/dist/PNotifyMobile.css" rel="stylesheet">
|
| 10 |
+
|
| 11 |
+
<!-- Скрипт инициализации -->
|
| 12 |
+
<script>
|
| 13 |
+
// Загружаем PNotify асинхронно
|
| 14 |
+
function loadPNotify() {
|
| 15 |
+
return new Promise((resolve) => {
|
| 16 |
+
const script = document.createElement('script');
|
| 17 |
+
script.src = 'https://cdn.jsdelivr.net/npm/@pnotify/core@5/dist/PNotify.js';
|
| 18 |
+
script.onload = () => resolve();
|
| 19 |
+
document.head.appendChild(script);
|
| 20 |
+
});
|
| 21 |
+
}
|
| 22 |
+
|
| 23 |
+
// Инициализируем библиотеку
|
| 24 |
+
async function initPNotify() {
|
| 25 |
+
await loadPNotify();
|
| 26 |
+
PNotify.defaultModules.set(PNotifyMobile);
|
| 27 |
+
PNotify.defaultModules.set(PNotifyBootstrap4);
|
| 28 |
+
PNotify.defaults.styling = 'bootstrap4';
|
| 29 |
+
window.PNotifyReady = true;
|
| 30 |
+
}
|
| 31 |
+
|
| 32 |
+
// Запускаем инициализацию при загрузке страницы
|
| 33 |
+
initPNotify();
|
| 34 |
+
</script>
|
| 35 |
|
| 36 |
|
| 37 |
|