//[countdown Javascript] //Project: Divine Art - Multipage Html Responsive Template //Version: 1.1 //Primary use: Divine Art - Multipage Html Responsive Template //add your script here // countdown (function($) { /** * Set your date here (YEAR, MONTH (0 for January/11 for December), DAY, HOUR, MINUTE, SECOND) * according to the GMT+0 Timezone **/ var launch = new Date(2017, 05, 14, 09, 00); /** * The script **/ var days = $('#days'); var hours = $('#hours'); var minutes = $('#minutes'); var seconds = $('#seconds'); setDate(); function setDate(){ var now = new Date(); if( launch < now ){ days.html('
Day
'); hours.html('Hour
'); minutes.html('Minute
'); seconds.html('Second
'); } else{ var s = -now.getTimezoneOffset()*60 + (launch.getTime() - now.getTime())/1000; var d = Math.floor(s/86400); days.html('Day'+(d>1?'s':''),'
'); s -= d*86400; var h = Math.floor(s/3600); hours.html('Hour'+(h>1?'s':''),'
'); s -= h*3600; var m = Math.floor(s/60); minutes.html('Minute'+(m>1?'s':''),'
'); s = Math.floor(s-m*60); seconds.html('Second'+(s>1?'s':''),'
'); setTimeout(setDate, 1000); } } })(jQuery); // countdown (function($) { /** * Set your date here (YEAR, MONTH (0 for January/11 for December), DAY, HOUR, MINUTE, SECOND) * according to the GMT+0 Timezone **/ var launch = new Date(2017, 05, 14, 09, 00); /** * The script **/ var days_1 = $('#days_2'); var hours_1 = $('#hours_2'); var minutes_1 = $('#minutes_2'); var seconds_1 = $('#seconds_2'); setDate(); function setDate(){ var now = new Date(); if( launch < now ){ days_1.html('Day
'); hours_1.html('Hour
'); minutes_1.html('Minute
'); seconds_1.html('Second
'); } else{ var s = -now.getTimezoneOffset()*60 + (launch.getTime() - now.getTime())/1000; var d = Math.floor(s/86400); days_1.html('Day'+(d>1?'s':''),'
'); s -= d*86400; var h = Math.floor(s/3600); hours_1.html('Hour'+(h>1?'s':''),'
'); s -= h*3600; var m = Math.floor(s/60); minutes_1.html('Minute'+(m>1?'s':''),'
'); s = Math.floor(s-m*60); seconds_1.html('Second'+(s>1?'s':''),'
'); setTimeout(setDate, 1000); } } })(jQuery); // countdown (function($) { /** * Set your date here (YEAR, MONTH (0 for January/11 for December), DAY, HOUR, MINUTE, SECOND) * according to the GMT+0 Timezone **/ var launch = new Date(2017, 05, 14, 09, 00); /** * The script **/ var days_3 = $('#days_3'); var hours_3 = $('#hours_3'); var minutes_3 = $('#minutes_3'); var seconds_3 = $('#seconds_3'); setDate(); function setDate(){ var now = new Date(); if( launch < now ){ days_3.html('Day
'); hours_3.html('Hour
'); minutes_3.html('Minute
'); seconds_3.html('Second
'); } else{ var s = -now.getTimezoneOffset()*60 + (launch.getTime() - now.getTime())/1000; var d = Math.floor(s/86400); days_3.html('Day'+(d>1?'s':''),'
'); s -= d*86400; var h = Math.floor(s/3600); hours_3.html('Hour'+(h>1?'s':''),'
'); s -= h*3600; var m = Math.floor(s/60); minutes_3.html('Minute'+(m>1?'s':''),'
'); s = Math.floor(s-m*60); seconds_3.html('Second'+(s>1?'s':''),'
'); setTimeout(setDate, 1000); } } })(jQuery);