• i have set

    div.seconds-w  
    {
         display:  none !important;
    }

    but the js still updates the countdown every second…not only does that put a load on the browser, but if gtranslates non-english, it flashes from d/h/m every second:-\

    is there an option somewhere in the js that will update every minute?

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter airdrummer

    (@airdrummer)

    here ya go: in assets/js/frontend.js

    
    3460c3460,3461
    <             format: null
    ---
    >             format: null,
    > 			interval: 1000
    3467a3469
    >         var interval = setInterval(startCountdown, settings.interval);

    and in app/modules/countdown/details.php

    81a90
    >         var interval = jQuery(el).data("countdown_interval");
    85c94,95
    <                 format: "off"
    ---
    >                 format: "off",
    >                 interval: interval 

    i’ll leave the implementation of setting the countdown_interval as an exercise for ur devs;-)

    Thread Starter airdrummer

    (@airdrummer)

    oops, forgot to include this in app/modules/countdown/details.php

    193,198c182
    < <div class="mec-countdown-details" id="mec_countdown_details"
    < 	 data-datetime="<?php echo $datetime; ?>" 
    < 	 data-gmt_offset="<?php echo $gmt_offset ?>"
    < 	 data-countdown_interval ="<?php echo $countdown_interval ?>"
    < 	 >
    <     <?php  echo $cd2; ?>
    ---
    > <div class="mec-countdown-details" id="mec_countdown_details" data-datetime="<?php echo $datetime; ?>" data-gmt_offset="<?php echo $gmt_offset ?>">
    
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘don’t countdown seconds’ is closed to new replies.