From 9f864f2a326685e5e18bebd772384f373da887fa Mon Sep 17 00:00:00 2001 From: Gustavo Luigi Date: Tue, 30 Aug 2022 18:30:21 +0200 Subject: [PATCH] hide alert --- content/master.blade.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/content/master.blade.php b/content/master.blade.php index 3bc7ba2..d0f54ed 100644 --- a/content/master.blade.php +++ b/content/master.blade.php @@ -33,7 +33,7 @@ Areya Energy
- Balkonkraftwerke + Balkonkraftwerke
Zubehör @@ -89,13 +89,13 @@
- @yield('content') @@ -161,6 +161,9 @@ updateProductsInLocalStorage(); } $(window).on('load', function(){ + if(localStorage.getItem("dismiss-message") == 1) $('.alert-dismissible').remove(); + else $('.alert-dismissible').show(); + $('#btn-close-message').click(function(){ localStorage.setItem("dismiss-message", 1); }); if(localStorage.getItem("products") != null) objProducts = JSON.parse(localStorage.getItem("products")); updateProductsInLocalStorage(); $(document).on('click', '.btn-remove-product', function(){