MediaWiki talk:Common.js: Difference between revisions

From SmashWiki, the Super Smash Bros. wiki
Jump to navigationJump to search
No edit summary
No edit summary
Line 15: Line 15:


Both of these changes are needed, not just one of them [[User:LoganA|Logan]] 08:10, 3 March 2008 (UTC)
Both of these changes are needed, not just one of them [[User:LoganA|Logan]] 08:10, 3 March 2008 (UTC)
:these fixes apply to Version 0.0.3, not the version 0.0.2 lower on the page
:Version 0.0.2 lower down the page is overwriting the functions for version 0.0.3 [[User:LoganA|Logan]] 08:38, 3 March 2008 (UTC)

Revision as of 03:38, 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)

Both of these changes are needed, not just one of them Logan 08:10, 3 March 2008 (UTC)

Version 0.0.2 lower down the page is overwriting the functions for version 0.0.3 Logan 08:38, 3 March 2008 (UTC)