How to set date for countdown timer?

by 5 replies
6
Hi Warriors,

I am using this countdown timer script...seen here:

https://github.com/sonnyt/downCount

I have put the date / time info on the custom.css file...no go.

Its being used on this site:
Top Jimmy Construction - Web Site Coming Soon!

Thanks in advance for help on this!

Bret
#programming #countdown #date #set #timer
  • Hi. You need to insert code in html file. Sample code:

    Code:
        
    <script class="source" type="text/javascript">
            $('.countdown').downCount({
                date: '24/09/2014 12:00:00',
                offset: +10
            });
        </script>
    Or insert code in custom js file. Sample code:


    Code:
        
    (function ($) {
            $('.countdown').downCount({
                date: '24/09/2014 12:00:00',
                offset: +10
            });
    })(jQuery);
    • [1] reply
    • I already have this code in custom.js


      $(function() {
      window.scrollReveal = new scrollReveal();
      "use strict";

      // PreLoader
      $(window).load(function() {
      $(".loader").fadeOut(400);
      });

      // Backstretchs
      $("#header").backstretch("images/3.jpg");
      $("#services").backstretch("images/3.jpg");

      // Countdown
      $('.countdown').downCount({
      date: '12/12/2015 12:00:00',
      offset: +10
      });

      });
      • [1] reply

Next Topics on Trending Feed