Difference between revisions of "User:WindPower/vector.js"

From Team Fortress Wiki
Jump to: navigation, search
m (Request)
m
 
(3 intermediate revisions by the same user not shown)
Line 12: Line 12:
 
addOnloadHook(replaceRecentChangesLink);
 
addOnloadHook(replaceRecentChangesLink);
  
importScript("User:Stewart/vector.js");
+
// Mousse 3D is actually Mickey 3D
 +
$("#switch-to-3d").click(function() {
 +
  $(".container-2d").hide();
 +
  $(".viewer-3d").show();
 +
});
  
// Shiny thingy test
+
$("#switch-to-2d").click(function() {
// importScript('User:WindPower/Spai.js');
+
  $(".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();
});