shopping cart quick add
parent
502263b9d0
commit
964d5b408d
|
@ -24,6 +24,9 @@
|
|||
<script>
|
||||
document.addEventListener('scroll', function() {
|
||||
var scrollButton = document.getElementById('scrollToCartButton');
|
||||
|
||||
if (scrollButton == null) return
|
||||
|
||||
if (window.scrollY > 300) { // Zeigt den Button an, wenn mehr als 300px gescrollt wird
|
||||
scrollButton.style.display = 'block';
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue