hide alert
parent
72e94ab4ac
commit
9f864f2a32
|
@ -33,7 +33,7 @@
|
||||||
<a href="{{url('/')}}" class="fs-2 fw-bold text-decoration-none">Areya Energy</a>
|
<a href="{{url('/')}}" class="fs-2 fw-bold text-decoration-none">Areya Energy</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-2 fs-5 mt-2 text-center ">
|
<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>
|
||||||
<div class="col-2 fs-5 mt-2 text-center ">
|
<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>
|
<a href="{{url('/produkte')}}" class="text-decoration-none mt-2 fw-bold">Zubehör</a>
|
||||||
|
@ -89,13 +89,13 @@
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
<div class="container">
|
<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>
|
<strong>Achtung:</strong>
|
||||||
<br>
|
<br>
|
||||||
Aufgrund der erhöhten Nachfrage sind derzeit einige Produkte ausverkauft, bzw. nur schwer Lieferbar.
|
Aufgrund der erhöhten Nachfrage sind derzeit einige Produkte ausverkauft, bzw. nur schwer Lieferbar.
|
||||||
<br>
|
<br>
|
||||||
Bitte Telefonisch Lieferzeiten und Verfügbarkeiten klären.
|
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>
|
||||||
</div>
|
</div>
|
||||||
@yield('content')
|
@yield('content')
|
||||||
|
@ -161,6 +161,9 @@
|
||||||
updateProductsInLocalStorage();
|
updateProductsInLocalStorage();
|
||||||
}
|
}
|
||||||
$(window).on('load', function(){
|
$(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"));
|
if(localStorage.getItem("products") != null) objProducts = JSON.parse(localStorage.getItem("products"));
|
||||||
updateProductsInLocalStorage();
|
updateProductsInLocalStorage();
|
||||||
$(document).on('click', '.btn-remove-product', function(){
|
$(document).on('click', '.btn-remove-product', function(){
|
||||||
|
|
Loading…
Reference in New Issue