![]() |
![]() |
Meto2k |
![]()
Post
#1
|
Group: Members Posts: 6 Joined: 12-November 20 Member No.: 27,633 ![]() |
Hi all,
I am building my own website ( very beginner so allready sorry ) but I encountered a problem with a ready to use time counter. the code is as follow <div class="date_countdown"> <div id="timer"> <div id="days" class="date"></div> <div id="hours" class="date"></div> <div id="minutes" class="date"></div> <div id="seconds" class="date"></div> </div> it shows DAYS -413 HOURS 11 MINUTES 43 SECONDS 51 and it is still counting down... My question here is how can I edit the time? whatever I try didnt work |
![]() ![]() |
Christian J |
![]()
Post
#2
|
. ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: WDG Moderators Posts: 9,687 Joined: 10-August 06 Member No.: 7 ![]() |
According to https://github.com/sonnyt/downCount it seems you need to change the null values here:
CODE $.fn.downCount = function (options, callback) { var settings = $.extend({ date: null, offset: null }, options); to (for example) this: CODE $('.countdown').downCount({ date: '08/27/2013 12:00:00', offset: -5 }, function () { alert('WOOT WOOT, done!'); }); EDIT: or am I looking at the same script? Not familiar with Github's layout. ![]() This post has been edited by Christian J: Nov 13 2020, 08:07 AM |
Meto2k |
![]()
Post
#3
|
Group: Members Posts: 6 Joined: 12-November 20 Member No.: 27,633 ![]() |
According to https://github.com/sonnyt/downCount it seems you need to change the null values here: CODE $.fn.downCount = function (options, callback) { var settings = $.extend({ date: null, offset: null }, options); to (for example) this: CODE $('.countdown').downCount({ date: '08/27/2013 12:00:00', offset: -5 }, function () { alert('WOOT WOOT, done!'); }); EDIT: or am I looking at the same script? Not familiar with Github's layout. ![]() =D thank you for the fast replies ! but the counter is not changing... still the same countdown as in the picture. I tried all available options but I think there may be a malfuntion somewhere. |
Christian J |
![]()
Post
#4
|
. ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: WDG Moderators Posts: 9,687 Joined: 10-August 06 Member No.: 7 ![]() |
|
![]() ![]() |
![]() |
Lo-Fi Version | Time is now: 24th June 2024 - 02:46 AM |