Image slide interval

Support desk for Multipurpose Quark Theme
GK User
Tue Mar 24, 2015 11:19 pm
Hi!
How do I change the slide interval for the bottom slider in Quark template? Please see attached file containing a print screen. Also, how do I disable the auto slide for the same module?

bild.jpg


Many thanks in advance!
User avatar
Fresh Boarder

GK User
Wed Mar 25, 2015 7:32 am
Could you please post an url to your site?
User avatar
Moderator

GK User
Wed Mar 25, 2015 7:33 pm
Thanks a lot!
Site offline, but sent you login details in PM.
User avatar
Fresh Boarder

GK User
Fri Mar 27, 2015 7:38 am
"The server at optimalarbetsmiljo.se can't be found, because the DNS lookup failed. DNS is the network service that translates a website's name to its Internet address. This error is most often caused by having no connection to the Internet or a misconfigured network. It can also be caused by an unresponsive DNS server or a firewall preventing Google Chrome from accessing the network.
"
User avatar
Moderator

GK User
Fri Mar 27, 2015 7:41 am
Can I hijack this as I have the same question and a functioning site. I originally posted mine here

https://www.gavick.com/forums/quark/tes ... peed-44630

I'll DM you login now.

Thanks

Ken
User avatar
Expert Boarder

GK User
Fri Mar 27, 2015 9:08 am
Okay, I've found the solution to this.
The testimonials slider is controlled by a section in the gk.scripts.js file (in templates/quark/js).
The script begins at // Testimonials and the bit we're interested in is commented // auto-animation.
There are two numbers, one near the beginning of the script and one near the end, these control the initial delay (after the first datum) and the subsequent delay between data. Initially they are set to 3000 and 5000 (3 and 5 seconds respectively)
In the below revision I've changed both to 10000 giving a ten second delay between each one.

Code: Select all
// auto-animation
         setTimeout(function() {
            testimonials_auto_animate();
         }, 10000);
         
         function testimonials_auto_animate() {
            if(wrapper.attr('data-block') == 'false') {
               jQuery(quotes[current_page]).addClass('hidden');
               current_page = current_page + 1;
            
               if(current_page >= pages.length) {
                  current_page = 0;
               }
            
               jQuery(quotes[current_page]).removeClass('hidden');
               pages.removeClass('active');
               jQuery(pages[current_page]).addClass('active');
               sliding_wrapper.css('margin-left', -1 * (current_page * 100) + "%");
            } else {
               wrapper.attr('data-block', 'false');
            }
            
            setTimeout(function() {
               testimonials_auto_animate();
            }, 10000);
         }
      });
   }
User avatar
Expert Boarder

GK User
Sun Mar 29, 2015 3:03 pm
I'm glad you could figure it out by yourself.
Is there anything else I can help you with regarding this topic?
User avatar
Moderator


cron