{"id":79663,"date":"2017-03-03T10:54:46","date_gmt":"2017-03-03T15:54:46","guid":{"rendered":"https:\/\/www.templatemonster.com\/help\/?p=79663"},"modified":"2017-03-27T04:40:03","modified_gmt":"2017-03-27T08:40:03","slug":"js-animated-setup-countdown-timer","status":"publish","type":"post","link":"https:\/\/www.templatemonster.com\/help\/js-animated-setup-countdown-timer.html","title":{"rendered":"JS Animated. How to setup countdown timer"},"content":{"rendered":"<p>This tutorial will show you how to setup countdown timer in <a href=\"https:\/\/www.templatemonster.com\/website-templates.php\" target=\"_blank\">JS Animated templates<\/a>.<\/p>\r\n\r\n <div class=\"video-container\">\r\n\t<iframe src=\"https:\/\/www.youtube.com\/embed\/frX_RyZYjDk\"><\/iframe>\r\n<\/div>\r\n<ol>\r\n   <li>\r\n      <p>Log into your cPanel account and enter File Manager.<\/p>\r\n   <\/li>\r\n   <li>\r\n      <p>Open the <strong>.html<\/strong> file, where you would like to add a countdown timer.<\/p>\r\n\t  \r\n<a class=\"darkbox\" href=\"\/help\/wp-content\/uploads\/2017\/03\/js_animated_how_to_set_up_countdown_timer_1.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2017\/03\/js_animated_how_to_set_up_countdown_timer_1.jpg\" alt=\"js_animated_how_to_set_up_countdown_timer_1\" width=\"685\" height=\"317\" class=\"alignnone size-full wp-image-79664\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2017\/03\/js_animated_how_to_set_up_countdown_timer_1.jpg 685w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2017\/03\/js_animated_how_to_set_up_countdown_timer_1-150x69.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2017\/03\/js_animated_how_to_set_up_countdown_timer_1-300x139.jpg 300w\" sizes=\"(max-width: 685px) 100vw, 685px\" \/><\/a>\t  \r\n   <\/li>\r\n   <li>\r\n      <p>To add countdown timer to HTML page you should use the following code:<\/p>\r\n      <pre class=\"brush:html\">\r\n         &lt;div class=\"DateCountdown\" data-type=\"until\" data-time=\"24 Dec 2017 15:00\"&gt;\r\n      <\/pre>\r\n      \r\n\t  \r\n<a class=\"darkbox\" href=\"\/help\/wp-content\/uploads\/2017\/03\/js_animated_how_to_set_up_countdown_timer_2.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2017\/03\/js_animated_how_to_set_up_countdown_timer_2.jpg\" alt=\"js_animated_how_to_set_up_countdown_timer_2\" width=\"940\" height=\"252\" class=\"alignnone size-full wp-image-79665\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2017\/03\/js_animated_how_to_set_up_countdown_timer_2.jpg 940w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2017\/03\/js_animated_how_to_set_up_countdown_timer_2-150x40.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2017\/03\/js_animated_how_to_set_up_countdown_timer_2-300x80.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2017\/03\/js_animated_how_to_set_up_countdown_timer_2-768x206.jpg 768w\" sizes=\"(max-width: 940px) 100vw, 940px\" \/><\/a>      \r\n\t  \r\n\t  <p><strong>Data-type<\/strong> attribute can take the following values:<\/p>\r\n      <ul class=\"list\">\r\n         <li>\r\n            <p><strong>Until<\/strong> &#8211; the timer counts the time up to date, specified in the data-time attribute.<\/p>\r\n         <\/li>\r\n         <li>\r\n            <p><strong>Since<\/strong> &#8211; timer counts the time since the date, specified in the data-time attribute.<\/p>\r\n         <\/li>\r\n      <\/ul>\r\n      <p><strong>For example:<\/strong><\/p>\r\n      <pre class=\"brush:html\">\r\n         &lt;div class=\"DateCountdown\" data-type=\"until\" data-time=\"24 Dec 2016 15:00\"&gt;\r\n      <\/pre>\r\n      <p>Countdown will take place till 3.00 PM, December 24, 2017.<\/p>\r\n      <pre class=\"brush:html\">\r\n         &lt;div class=\"DateCountdown\" data-type=\"since\" data-time=\"24 Dec 2014 15:00\"&gt;\r\n      <\/pre>\r\n      <p>In this case countdown will start on 3.00 PM, December 24, 2017.<\/p>\r\n      <p>Date should be specified in <strong>data-time<\/strong> attribute in the following format: <strong>DD month YYYY HH:MM<\/strong>.<\/p>\r\n      <pre class=\"brush:html\">\r\n         &lt;div class=\"DateCountdown\" data-type=\"until\" data-time=\"24 Aug 2017 12:00\"&gt;\r\n      <\/pre>\r\n      <p>In order to set timer display format you should use the <strong>data-format attribute<\/strong>.<\/p>\r\n      <p>Use the following symbols (in the indicated order) to specify time periods to display: <strong>&quot;Y&quot;<\/strong> during years, <strong>&quot;O&quot;<\/strong> during few month, <strong>&quot;W&quot;<\/strong> during couple of weeks,\r\n         <strong>&quot;D&quot;<\/strong> during few days, <strong>&quot;H&quot;<\/strong> during several hours, <strong>&quot;\u043b\u044e&quot;<\/strong> during few minutes, <strong>&quot;S&quot;<\/strong> for few seconds.\r\n      <\/p>\r\n      <pre class=\"brush:html\">\r\n         &lt;div class=\"DateCountdown\" data-type=\"until\" data-time=\"24 Aug 2017 12:00\" data-format=\"wdh\"&gt;\r\n      <\/pre>\r\n   <\/li>\r\n   <li>\r\n      <p>Then, press the <strong>Save<\/strong> button in the upper right corner of the screen and refresh your website.<\/p>\r\n   <\/li>\r\n<\/ol>\r\n<p>That is the end of the tutorial. Now you know how to setup countdown timer.<\/p>\r\n<p>Feel free to check the detailed video tutorial below:<\/p>\r\n<a href=\"http:\/\/www.youtube.com\/watch?v=frX_RyZYjDk?width=1280&amp;height=720\" rel=\"prettyPhoto\">JS Animated. How to setup countdown timer<\/a>","protected":false},"excerpt":{"rendered":"<p>This tutorial will show you how to setup countdown timer in JS Animated templates.<\/p>\n","protected":false},"author":106,"featured_media":79666,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[1016],"tags":[1541,2415,1542],"_links":{"self":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/79663"}],"collection":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/users\/106"}],"replies":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/comments?post=79663"}],"version-history":[{"count":0,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/79663\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media\/79666"}],"wp:attachment":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media?parent=79663"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/categories?post=79663"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/tags?post=79663"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}