470
edits
No edit summary |
No edit summary |
||
Line 3: | Line 3: | ||
if( mw.config.get('wgIsMainPage') ){ | if( mw.config.get('wgIsMainPage') ){ | ||
$('#firstHeading').remove(); | $('#firstHeading').remove(); | ||
var mainpageLeft = $(".mainpage-left"); | |||
var mainpageRight = $(".mainpage-right"); | |||
mainpageLeft.css("position", "relative"); | |||
mainpageRight.css("position", "relative"); | |||
function animateLeft(){ | |||
mainpageRight.animate({'left': '15px'}, 1000, function(){ | |||
mainpageRight.animate( {"left": "0px" }, 1000, animateLeft() ); | |||
}); | |||
} | |||
animateLeft(); | |||
function animateRight(){ | |||
mainpageLeft.animate({'left': '-15px'}, 1000, function(){ | |||
mainpageLeft.animate( {"left": "0px" }, 1000, animateRight() ); | |||
}); | |||
} | |||
animateRight(); | |||
} | } | ||