From 697685e2682d975a4a581ac38824bdff1a948d45 Mon Sep 17 00:00:00 2001 From: FabioL <1647128+loviuz@users.noreply.github.com> Date: Fri, 17 May 2024 17:27:12 +0200 Subject: [PATCH] Migliorie grafiche login e preloader --- assets/src/css/style.css | 4 +++ assets/src/js/base/custom.js | 5 ++++ index.php | 35 ++++++++++++---------- src/HTMLBuilder/Handler/DefaultHandler.php | 5 ++++ src/HTMLBuilder/Wrapper/HTMLWrapper.php | 17 +++++++---- 5 files changed, 45 insertions(+), 21 deletions(-) diff --git a/assets/src/css/style.css b/assets/src/css/style.css index 500d44e5d..0d824210e 100755 --- a/assets/src/css/style.css +++ b/assets/src/css/style.css @@ -30,6 +30,10 @@ url('../fonts/sourcesanspro-regular-webfont.svg') format('svg'); } +.preloader{ + background-color: #f4f6f9de !important; +} + html { font-size: 13px; height: 100%; diff --git a/assets/src/js/base/custom.js b/assets/src/js/base/custom.js index 7e8ac7518..6d3c9e29b 100644 --- a/assets/src/js/base/custom.js +++ b/assets/src/js/base/custom.js @@ -16,6 +16,11 @@ * along with this program. If not, see . */ +// Aggiunta dell'ingranaggio all'unload della pagina +$(window).on("beforeunload", function () { + $("#main_loading").css('height', '100vh').find('img').show().removeClass('animation__shake').addClass('animation__shake'); +}); + // Fix multi-modal $(document).on('hidden.bs.modal', '.modal', function () { $(this).remove(); diff --git a/index.php b/index.php index 7e6d16928..ca180ce62 100755 --- a/index.php +++ b/index.php @@ -158,29 +158,34 @@ if (!empty(flash()->getMessage('error'))) { echo '