Categories

Featured templates

JS Animated. How to setup countdown timer

Grace Kerrigan March 3, 2017
Rating: 5.0/5. From 1 vote.
Please wait...

This tutorial will show you how to setup countdown timer in JS Animated templates.

  1. Log into your cPanel account and enter File Manager.

  2. Open the .html file, where you would like to add a countdown timer.

    js_animated_how_to_set_up_countdown_timer_1
  3. To add countdown timer to HTML page you should use the following code:

             <div class="DateCountdown" data-type="until" data-time="24 Dec 2017 15:00">
          
    js_animated_how_to_set_up_countdown_timer_2

    Data-type attribute can take the following values:

    • Until – the timer counts the time up to date, specified in the data-time attribute.

    • Since – timer counts the time since the date, specified in the data-time attribute.

    For example:

             <div class="DateCountdown" data-type="until" data-time="24 Dec 2016 15:00">
          

    Countdown will take place till 3.00 PM, December 24, 2017.

             <div class="DateCountdown" data-type="since" data-time="24 Dec 2014 15:00">
          

    In this case countdown will start on 3.00 PM, December 24, 2017.

    Date should be specified in data-time attribute in the following format: DD month YYYY HH:MM.

             <div class="DateCountdown" data-type="until" data-time="24 Aug 2017 12:00">
          

    In order to set timer display format you should use the data-format attribute.

    Use the following symbols (in the indicated order) to specify time periods to display: "Y" during years, "O" during few month, "W" during couple of weeks, "D" during few days, "H" during several hours, "лю" during few minutes, "S" for few seconds.

             <div class="DateCountdown" data-type="until" data-time="24 Aug 2017 12:00" data-format="wdh">
          
  4. Then, press the Save button in the upper right corner of the screen and refresh your website.

That is the end of the tutorial. Now you know how to setup countdown timer.

Feel free to check the detailed video tutorial below:

JS Animated. How to setup countdown timer
This entry was posted in JS Animated tutorials and tagged countdown, JS Animated, timer. Bookmark the permalink.

Submit a ticket

If you are still unable to find a sufficient tutorial regarding your issue please use the following link to submit a request to our technical support team. We'll provide you with our help and assistance within next 24 hours: Submit a ticket