diff --git a/assets/hello/1.webp b/assets/hello/1.webp new file mode 100644 index 0000000..d0f0d07 Binary files /dev/null and b/assets/hello/1.webp differ diff --git a/assets/hello/m/1.gif b/assets/hello/m/1.gif deleted file mode 100644 index 686339f..0000000 Binary files a/assets/hello/m/1.gif and /dev/null differ diff --git a/assets/hello/m/1.webp b/assets/hello/m/1.webp new file mode 100644 index 0000000..d0f0d07 Binary files /dev/null and b/assets/hello/m/1.webp differ diff --git a/assets/main.js b/assets/main.js index c6e719a..fc5bd32 100644 --- a/assets/main.js +++ b/assets/main.js @@ -62,7 +62,7 @@ setInterval(async () => { // setTimeout(async () => { const navbarHeight = +(document.getElementById("navbar-main")?.offsetHeight); if (!mainMenuErrorHandled && location.pathname == "/" && document.getElementById('main_img1')?.src) { - document.getElementById('main_img1').src = window.screen.availWidth / window.screen.availHeight > 1.45 ? "/assets/hello/1.gif" : "/assets/hello/m/1.gif"; + document.getElementById('main_img1').src = window.screen.availWidth / window.screen.availHeight > 1.45 ? "/assets/hello/1.webp" : "/assets/hello/m/1.webp"; document.getElementById('main_img2').src = window.screen.availWidth / window.screen.availHeight > 1.45 ? "/assets/hello/2.png" : "/assets/hello/m/2.png"; document.getElementById('main_img3').src = window.screen.availWidth / window.screen.availHeight > 1.45 ? "/assets/hello/3.png" : "/assets/hello/m/3.png"; } @@ -76,7 +76,7 @@ setInterval(async () => { mainMenuErrorHandled = true; setTimeout(async () => { fl.goJust('/main-mobile', false); - document.getElementsByTagName('body')[0].style.backgroundImage = 'url("/assets/hello/m/1.gif")'; + document.getElementsByTagName('body')[0].style.backgroundImage = 'url("/assets/hello/m/1.webp")'; }, 150); } else if (mainMenuErrorHandled && window.screen.availWidth >= 768 && location.pathname == "/") { // Вернуть нормальную версию вёрстки diff --git a/fl_dir/index.html b/fl_dir/index.html index 21d90d8..6062ed6 100644 --- a/fl_dir/index.html +++ b/fl_dir/index.html @@ -8,7 +8,7 @@
Это официальный ресурс FullGreaM.