hide alert
parent
72e94ab4ac
commit
9f864f2a32
|
@ -33,7 +33,7 @@
|
|||
<a href="{{url('/')}}" class="fs-2 fw-bold text-decoration-none">Areya Energy</a>
|
||||
</div>
|
||||
<div class="col-2 fs-5 mt-2 text-center ">
|
||||
<a href="{{url('/balkonkraftwerke')}}" class="text-decoration-none mt-2 fw-bold">Balkonkraftwerke</a>
|
||||
<a href="{{url('/balkonkraftwerke')}}" class="text-decoration-none mt-2 fw-bold">Balkonkraftwerke</a>
|
||||
</div>
|
||||
<div class="col-2 fs-5 mt-2 text-center ">
|
||||
<a href="{{url('/produkte')}}" class="text-decoration-none mt-2 fw-bold">Zubehör</a>
|
||||
|
@ -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