shopping cart quick add

main
alexanderroese 2024-06-22 17:10:59 +02:00
parent 502263b9d0
commit 964d5b408d
1 changed files with 3 additions and 0 deletions

View File

@ -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 {