shopping cart quick add

main
alexanderroese 2024-06-22 17:15:49 +02:00
parent 75f7bd9cb8
commit 5d47293029
1 changed files with 0 additions and 2 deletions

View File

@ -25,8 +25,6 @@
document.addEventListener('scroll', function() { document.addEventListener('scroll', function() {
var scrollButton = document.getElementsByClassName('scroll-to-cart-button')[0]; var scrollButton = document.getElementsByClassName('scroll-to-cart-button')[0];
console.log("scrollButton", scrollButton)
if (scrollButton === undefined) return if (scrollButton === undefined) return
if (window.scrollY > 300) { // Zeigt den Button an, wenn mehr als 300px gescrollt wird if (window.scrollY > 300) { // Zeigt den Button an, wenn mehr als 300px gescrollt wird