

// Scroll to Top
window.onscroll = function() {
  const vw_bakery_blocks_button = document.querySelector('.scroll-top-box');
  if (document.body.scrollTop > 100 || document.documentElement.scrollTop > 100) {
    vw_bakery_blocks_button.style.display = "block";
  } else {
    vw_bakery_blocks_button.style.display = "none";
  }
};

document.querySelector('.scroll-top-box a').onclick = function(event) {
  event.preventDefault();
  window.scrollTo({top: 0, behavior: 'smooth'});
};

