Difference between revisions of "User:WindPower/vector.js"
m (Request) |
m |
||
(3 intermediate revisions by the same user not shown) | |||
Line 12: | Line 12: | ||
addOnloadHook(replaceRecentChangesLink); | addOnloadHook(replaceRecentChangesLink); | ||
− | + | // Mousse 3D is actually Mickey 3D | |
+ | $("#switch-to-3d").click(function() { | ||
+ | $(".container-2d").hide(); | ||
+ | $(".viewer-3d").show(); | ||
+ | }); | ||
− | + | $("#switch-to-2d").click(function() { | |
− | + | $(".viewer-3d").hide(); | |
+ | $(".container-2d").show(); | ||
+ | }); |
Latest revision as of 01:32, 15 June 2013
function gid(i) { return document.getElementById(i); } function replaceRecentChangesLink(){ if(gid('n-recentchanges')) { var a = gid('n-recentchanges').getElementsByTagName('a'); for(i in a) { a[i].href = '/w/index.php?title=Special:RecentChanges&hidebots=0'; } } } addOnloadHook(replaceRecentChangesLink); // Mousse 3D is actually Mickey 3D $("#switch-to-3d").click(function() { $(".container-2d").hide(); $(".viewer-3d").show(); }); $("#switch-to-2d").click(function() { $(".viewer-3d").hide(); $(".container-2d").show(); });