Difference between revisions of "User:Moussekateer/vector.js"
Moussekateer (talk | contribs) m |
Moussekateer (talk | contribs) m |
||
Line 13: | Line 13: | ||
$(".viewer-3d").hide(); | $(".viewer-3d").hide(); | ||
$(".container-2d").show(); | $(".container-2d").show(); | ||
+ | }); | ||
+ | |||
+ | $("#switch-to-3d").hover(function() { | ||
+ | $("#switch-to-3d").stop().animate({'opacity': '1'}, 'fast'); | ||
+ | },function() { | ||
+ | $("#switch-to-3d").stop().animate({'opacity': '0.5'}, 'fast'); | ||
+ | }); | ||
+ | |||
+ | $("#switch-to-2d").hover(function() { | ||
+ | $("#switch-to-2d").stop().animate({'opacity': '1'}, 'fast'); | ||
+ | },function() { | ||
+ | $("#switch-to-2d").stop().animate({'opacity': '0.5'}, 'fast'); | ||
}); | }); |
Revision as of 01:44, 15 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() { $(".container-2d").hide(); $(".viewer-3d").show(); }); $("#switch-to-2d").click(function() { $(".viewer-3d").hide(); $(".container-2d").show(); }); $("#switch-to-3d").hover(function() { $("#switch-to-3d").stop().animate({'opacity': '1'}, 'fast'); },function() { $("#switch-to-3d").stop().animate({'opacity': '0.5'}, 'fast'); }); $("#switch-to-2d").hover(function() { $("#switch-to-2d").stop().animate({'opacity': '1'}, 'fast'); },function() { $("#switch-to-2d").stop().animate({'opacity': '0.5'}, 'fast'); });