Pessoal,
Adquiri um template com contador regressivo pela internet e me deparei com o seguinte problema…
Não consigo fazer com que o contador inicie e continue contando mesmo após sair da página, sempre que volto a página o contador reinicia. Vocês conseguem me ajudar?
Segue o código do contador em java script
jQuery(document).ready(function() {
/* Fullscreen background */ $.backstretch("assets/img/backgrounds/1.jpg"); /* Wow */ new WOW().init(); /* Countdown initializer
*/
var now = new Date();
var countTo = 220 * 24 * 60 * 60 * 1000 + now.valueOf();
$(’.timer’).countdown(countTo, function(event) {
$(this).find(’.days’).text(event.offset.totalDays);
$(this).find(’.hours’).text(event.offset.hours);
$(this).find(’.minutes’).text(event.offset.minutes);
$(this).find(’.seconds’).text(event.offset.seconds);});