1// JavaScript Document 2var cGdwd2Rza2lwcGVy = 'cG9zdC1nYXpldHRlIHBheXdhbGw='; 3 4(function(funcName, baseObj) { 5 // The public function name defaults to window.docReady 6 // but you can pass in your own object and own function name and those will be used 7 // if you want to put them in a different namespace 8 funcName = funcName || "docReady"; 9 baseObj = baseObj || window; 10 var readyList = []; 11 var readyFired = false; 12 var readyEventHandlersInstalled = false; 13 14 // call this when the document is ready 15 // this function protects itself against being called more than once 16 function ready() { 17 if (!readyFired) { 18 // this must be set to true before we start calling callbacks 19 readyFired = true; 20 for (var i = 0; i < readyList.length; i++) { 21 // if a callback here happens to add new ready handlers, 22 // the docReady() function will see that it already fired 23 // and will schedule the callback to run right after 24 // this event loop finishes so all handlers will still execute 25 // in order and no new ones will be added to the readyList 26 // while we are processing the list 27 readyList[i].fn.call(window, readyList[i].ctx); 28 } 29 // allow any closures held by these functions to free 30 readyList = []; 31 } 32 } 33 34 function readyStateChange() { 35 if ( document.readyState === "complete" ) { 36 ready(); 37 } 38 } 39 40 // This is the one public interface 41 // docReady(fn, context); 42 // the context argument is optional - if present, it will be passed 43 // as an argument to the callback 44 baseObj[funcName] = function(callback, context) { 45 // if ready has already fired, then just schedule the callback 46 // to fire asynchronously, but right away 47 if (readyFired) { 48 setTimeout(function() {callback(context);}, 1); 49 return; 50 } else { 51 // add the function and context to the list 52 readyList.push({fn: callback, ctx: context}); 53 } 54 // if document already ready to go, schedule the ready function to run 55 if (document.readyState === "complete") { 56 setTimeout(ready, 1); 57 } else if (!readyEventHandlersInstalled) { 58 // otherwise if we don't have event handlers installed, install them 59 if (document.addEventListener) { 60 // first choice is DOMContentLoaded event 61 document.addEventListener("DOMContentLoaded", ready, false); 62 // backup is window load event 63 window.addEventListener("load", ready, false); 64 } else { 65 // must be IE 66 document.attachEvent("onreadystatechange", readyStateChange); 67 window.attachEvent("onload", ready); 68 } 69 readyEventHandlersInstalled = true; 70 } 71 } 72})("docReady", window); 73 74docReady(function() { 75 // code here 76 if(typeof amplify.store("pgpwamnesty") == "undefined"){ 77 SignUp.log("ONE TIME COOKE AMNESTY") 78 amplify.store("pgpwamnesty",true); 79 SignUp.removeCookie(_PG.settings.cookieNames["syncronex"]); 80 }else{ 81 SignUp.log("COOKIE AMNESTY ALREADY"); 82 } 83}); 84 85
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.