hide alert
parent
72e94ab4ac
commit
9f864f2a32
|
@ -89,13 +89,13 @@
|
|||
</div>
|
||||
</nav>
|
||||
<div class="container">
|
||||
<div class="alert alert-warning mt-5 mb-2 alert-dismissible" role="alert">
|
||||
<div class="alert alert-warning mt-5 mb-2 alert-dismissible" style="display: none;" role="alert">
|
||||
<strong>Achtung:</strong>
|
||||
<br>
|
||||
Aufgrund der erhöhten Nachfrage sind derzeit einige Produkte ausverkauft, bzw. nur schwer Lieferbar.
|
||||
<br>
|
||||
Bitte Telefonisch Lieferzeiten und Verfügbarkeiten klären.
|
||||
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
|
||||
<button type="button" class="btn-close" id="btn-close-message" data-bs-dismiss="alert" aria-label="Close"></button>
|
||||
</div>
|
||||
</div>
|
||||
@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(){
|
||||
|
|
Loading…
Reference in New Issue