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

From Team Fortress Wiki
Jump to: navigation, search
m
m
Line 6: Line 6:
  
 
$("#switch-to-3d").click(function() {
 
$("#switch-to-3d").click(function() {
   $(".viewer-2d").hide();
+
   $("#2d-container").hide();
 
   $(".viewer-3d").show();
 
   $(".viewer-3d").show();
 
});
 
});
Line 12: Line 12:
 
$("#switch-to-2d").click(function() {
 
$("#switch-to-2d").click(function() {
 
   $(".viewer-3d").hide();
 
   $(".viewer-3d").hide();
   $(".viewer-2d").show();
+
   $("#2d-container").show();
 
});
 
});

Revision as of 17:40, 14 June 2013

importScriptURI('https://raw.github.com/Moussekateer/TFWiki-scripts/master/spambot_killer.js', 'text/javascript');

importScriptURI('https://raw.github.com/Moussekateer/TFWiki-scripts/master/wikifi_toolbox.js', 'text/javascript');

// 3D STUFF

$("#switch-to-3d").click(function() {
  $("#2d-container").hide();
  $(".viewer-3d").show();
});

$("#switch-to-2d").click(function() {
  $(".viewer-3d").hide();
  $("#2d-container").show();
});