User:JackiBackiBoy/Sandbox

Test Intro JS Section
var FalloutMV={ isLive:(window.location.origin.indexOf("localhost")==-1), hasGL: (function{if (!!window.WebGLRenderingContext){var canvas = document.createElement("canvas"),names = ["webgl", "experimental-webgl", "moz-webgl", "webkit-3d"],context = false;for(var i=0;i<4;i++) {try {context = canvas.getContext(names[i]);if (context && typeof context.getParameter == "function") {return true;}} catch(e) {}} return false;}return false;}), hasData: false, hasModel: false, lNameSpace: "\\", debugMode: false, };

FalloutMV.setConsts = function(C) { for (var a in C) { if (C.hasOwnProperty(a) && !(a in FalloutMV)) { FalloutMV[a] = C[a]; }   } };

FalloutMV.UI = (function { var menuIndex=0; var isClosing = false; var f3g = ["Fallout 3","Operation: Anchorage","The Pitt","Broken Steel","Point Lookout","Mothership Zeta"], fnvg = ["Fallout: New Vegas","Dead Money","Honest Hearts","Old World Blues","Lonesome Road","Courier's Stash","Gun Runners' Arsenal"]; if($("#modelTable").length>0) { if($("#3dButton").length == 0) {

$(".va-infobox-header","#modelTable").html(' Loading...  

 '); } hasButton = ($("#3dButton").length > 0); } var game = (function{var g=$('i',$('a','.va-infobox-title-super')).html;if($.inArray(g,f3g)!=-1)return"f3"; else if($.inArray(g,fnvg)!=-1)return"fnv"; else return undefined; }),

3D Button loads
edids =(function{if(hasButton==true){return $('#modelTable').attr('data-model').split(",");}}), gamePrefix = (function{if(FalloutMV.isLive==true){if(game=="f3"){return "F3-";}else if(game=="fnv"){return "Nv-";}}else{if(game=="f3"){return "Fallout 3\\Data\\";}else if(game=="fnv"){return "Fallout New Vegas\\Data\\";}}}), lGamePrefix = (function{if(game=="f3"){return "Fallout 3\\Data\\";}else if(game=="fnv"){return "Fallout New Vegas\\Data\\";}}); nameSpace = (FalloutMV.isLive==true?"/wiki/ModelData:":"\\"); var uiConst={ hasButton : hasButton, game : game, gpfx : (function{ if(game=="f3"){return (FalloutMV.isLive==true?"F3-":"/Fallout 3/Data/");}else if(game=="fnv"){return (FalloutMV.isLive==true?"Nv-":"/Fallout New Vegas/Data/");}}), edids : edids, gamePrefix: gamePrefix, lGamePrefix: lGamePrefix, nameSpace : nameSpace, }