MediaWiki talk:Common.js: Difference between revisions
From SmashWiki, the Super Smash Bros. wiki
Jump to navigationJump to search
m (striking out my comment) |
mNo edit summary |
||
Line 15: | Line 15: | ||
:<s>There are two copies of the countdown timer code in Common.js, the one near the bottom of the page that is overwriting the functions of the one near the top, can one of them be removed? [[User:LoganA|Logan]] 18:24, 3 March 2008 (UTC)</s> | :<s>There are two copies of the countdown timer code in Common.js, the one near the bottom of the page that is overwriting the functions of the one near the top, can one of them be removed? [[User:LoganA|Logan]] 18:24, 3 March 2008 (UTC)</s> | ||
::It should be fixed now; I had no idea I had put the timer in there before. I also didn't know Splarka had 0.0.3 done; I've put it in now.--[[User:Richard1990|Richard]] 18:32, 3 March 2008 (UTC) |
Revision as of 14:32, March 3, 2008
Countdown fix?
try replacing
var then = timers[i].eventdate;
with
var then = Date.parse(timers[i].eventdate);
Logan 05:13, 3 March 2008 (UTC)
- Tried it, doesn't work for me. --Charitwo 05:22, 3 March 2008 (UTC)
also replace this line:
var diff = count=Math.floor((then.getTime()-now.getTime())/1000);
with
var diff = count=Math.floor((then-now.getTime())/1000);
Logan 07:06, 3 March 2008 (UTC)
There are two copies of the countdown timer code in Common.js, the one near the bottom of the page that is overwriting the functions of the one near the top, can one of them be removed? Logan 18:24, 3 March 2008 (UTC)
- It should be fixed now; I had no idea I had put the timer in there before. I also didn't know Splarka had 0.0.3 done; I've put it in now.--Richard 18:32, 3 March 2008 (UTC)