Grid GK5 module load delay

Responsive Joomla template for Entertainment and Music purpose with clean and lightweight design.
GK User
Mon Mar 31, 2014 3:44 pm
Hello everybody,

i want the Grid module to be loaded delayed. Is there any pssobility to make a break of 2 or 3 seconds?
Thank you!

Kind regards,
Christian
User avatar
Fresh Boarder

teitbite
Tue Apr 01, 2014 9:52 pm
Hi

I would suggest to use an additional script like for example:

Code: Select all
$('.gkGridGK5').hide();
setTimeout(function() {
      $('.gkGridGK5').show();
}, 3000);


please check jQuery documentation if You want to show it with some animations.
User avatar
Moderator

GK User
Sun Apr 06, 2014 3:52 pm
Hi!

Thanks for your reply. Unfortunately I am not sure where to put in the code.
Moreover I the Animation to be delayed to. I found the delay method for jquery (http://api.jquery.com/delay/) but I have also no idea where to put it in.

Could you please help me again?

Thanks.

Greets
Christian
User avatar
Fresh Boarder

teitbite
Mon Apr 07, 2014 8:58 pm
Hi

Of course. Best place for any javascript is /layout/blocks/head.php the exact code should be:

Code: Select all
<script type="text/javascript">(function($) {$(document).ready(function() {
$('.gkGridGK5').hide();
setTimeout(function() {
      $('.gkGridGK5').show();
}, 3000);
});})(jQuery)</script>
User avatar
Moderator


cron