shopping cart quick add
parent
75f7bd9cb8
commit
5d47293029
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue