Jump to content

travisfisher

Member
  • Posts

    3
  • Joined

  • Last visited

Posts posted by travisfisher

  1. On 7/8/2022 at 12:16 AM, tuanphan said:

    Just tested the code on your site. It should work.

    <script>
    (function docReady(fn) {
        // see if DOM is already available
        if (document.readyState === "complete" || document.readyState === "interactive") {
            // call on next available tick
            setTimeout(fn, 1);
        } else {
            document.addEventListener("DOMContentLoaded", fn);
        }
    })(() => {
        if ( window.location == window.parent.location ) {
          const reelControl = document.querySelector('.gallery-reel-control [aria-label="Next Slide"]');
          if (reelControl) {
            (function reelTimer() {          
                setTimeout(() => {
                  reelControl.click();
                  reelTimer();
                }, 2000);  // change this value to change the speed           
            })(); 
          }
        }
    });
    </script>

     

    Tried this code in the footer section of code inject but it doesn't seem to be working for me

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.