Sha256: f230e866f15d9387dc25e6bd1df0198a96426e173da118a84ebea04c141b8ad0
Contents?: true
Size: 712 Bytes
Versions: 112
Compression:
Stored size: 712 Bytes
Contents
$(document).ready(function(){ //Open Hours CountDown using FlipClick http://flipclockjs.com/ // Need to update the nextDay function to recognize to reset the timer after the other has expired. function nextDay(x){ var now = new Date(); now.setDate(now.getDate() + (x+(7-now.getDay())) % 7); return now; } var nextOpenHours = nextDay(4); //The date of the open hours var openhours = new Date(Date.UTC(2017, 09, 17, 16, 0, 0)); var now = new Date(); var diff = openhours.getTime()/1000 - now.getTime()/1000; var clock = $('.open-hours-clock').FlipClock(diff, { clockFace: 'DailyCounter', countdown: true }); });
Version data entries
112 entries across 112 versions & 1 rubygems