Files
roll20-character-sheets-tester/ADnD_2E_Revised/misc/errata/dnddmgerrata_files/basic.js
T

123 lines
4.2 KiB
JavaScript

var _____WB$wombat$assign$function_____ = function(name) {return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name)) || self[name]; };
if (!self.__WB_pmw) { self.__WB_pmw = function(obj) { this.__WB_source = obj; return this; } }
{
let window = _____WB$wombat$assign$function_____("window");
let self = _____WB$wombat$assign$function_____("self");
let document = _____WB$wombat$assign$function_____("document");
let location = _____WB$wombat$assign$function_____("location");
let top = _____WB$wombat$assign$function_____("top");
let parent = _____WB$wombat$assign$function_____("parent");
let frames = _____WB$wombat$assign$function_____("frames");
let opener = _____WB$wombat$assign$function_____("opener");
<!--
// Image Swap Restore
function MM_swapImgRestore() { //v2.0
if (document.MM_swapImgData != null)
for (var i=0; i<(document.MM_swapImgData.length-1); i+=2)
document.MM_swapImgData[i].src = document.MM_swapImgData[i+1];
}
// Image Swap
function MM_swapImage() { //v2.0
var i,j=0,objStr,obj,swapArray=new Array,oldArray=document.MM_swapImgData;
for (i=0; i < (MM_swapImage.arguments.length-2); i+=3) {
objStr = MM_swapImage.arguments[(navigator.appName == 'Netscape')?i:i+1];
if ((objStr.indexOf('document.layers[')==0 && document.layers==null) ||
(objStr.indexOf('document.all[') ==0 && document.all ==null))
objStr = 'document'+objStr.substring(objStr.lastIndexOf('.'),objStr.length);
obj = eval(objStr);
if (obj != null) {
swapArray[j++] = obj;
swapArray[j++] = (oldArray==null || oldArray[j-1]!=obj)?obj.src:oldArray[j];
obj.src = MM_swapImage.arguments[i+2];
} }
document.MM_swapImgData = swapArray; //used for restore
}
function MM_showHideLayers() { //v2.0
var i, visStr, args, theObj;
args = MM_showHideLayers.arguments;
for (i=0; i<(args.length-2); i+=3) { //with arg triples (objNS,objIE,visStr)
visStr = args[i+2];
if (navigator.appName == 'Netscape' && document.layers != null) {
theObj = eval(args[i]);
if (theObj) theObj.visibility = visStr;
} else if (document.all != null) { //IE
if (visStr == 'show') visStr = 'visible'; //convert vals
if (visStr == 'hide') visStr = 'hidden';
theObj = eval(args[i+1]);
if (theObj) theObj.style.visibility = visStr;
} }
}
function pulldown(formObj)
{
url = formObj.options[formObj.options.selectedIndex].value;
if(url != "empty")
{
window.location = url;
url = "";
}
}
// This checks to see if the window's dimensions have actually changed
// (because Netscape often fires a false onResize event when it forms scrollbars);
// if they have, the document is reloaded.
// Note that document.location is not supposed to be settable, but here's another
// case where the implementation does not match the specs.
function resizeFix(){
if(document.resizeFix.initWidth!=window.innerWidth
||document.resizeFix.initHeight!=window.innerHeight)
document.location=document.location;
}
// This function checks to see if the browser supports the Layer object (i.e., Netscape 4.X);
// if it does, then it creates a new object with properties to hold the current window width & height
// and assigns the resizeFix() function to the window's onResize event
function checkBrowser(){
if(document.layers){
if(typeof document.fix == "undefined"){
document.resizeFix=new Object();
document.resizeFix.initWidth=window.innerWidth;
document.resizeFix.initHeight=window.innerHeight;
}
window.onresize=resizeFix;
}
}
// This calls the browser check function above
checkBrowser();
//-->
}
/*
FILE ARCHIVED ON 15:47:06 Jan 26, 2021 AND RETRIEVED FROM THE
INTERNET ARCHIVE ON 13:30:48 Dec 04, 2022.
JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE.
ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C.
SECTION 108(a)(3)).
*/
/*
playback timings (ms):
captures_list: 78.525
exclusion.robots: 0.077
exclusion.robots.policy: 0.07
RedisCDXSource: 0.669
esindex: 0.01
LoadShardBlock: 56.448 (3)
PetaboxLoader3.datanode: 68.7 (4)
CDXLines.iter: 17.2 (3)
load_resource: 107.155
PetaboxLoader3.resolve: 75.75
*/