SHARE
TWEET

Untitled

a guest May 25th, 2016 71 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. try {
  2.     var xhr;
  3.     var t = new Date().getTime();
  4.     var status = "start";
  5.     var timing = new Array(3);
  6.     window.onunload = function() {
  7.         timing[2] = "r:" + (new Date().getTime() - t);
  8.         document.createElement("img").src = "/_Incapsula_Resource?ES2LURCT=67&t=78&d=" + encodeURIComponent(status + " (" + timing.join() + ")")
  9.     };
  10.     if (window.XMLHttpRequest) {
  11.         xhr = new XMLHttpRequest
  12.     } else {
  13.         xhr = new ActiveXObject("Microsoft.XMLHTTP")
  14.     }
  15.     xhr.onreadystatechange = function() {
  16.         switch (xhr.readyState) {
  17.             case 0:
  18.                 status = new Date().getTime() - t + ": request not initialized ";
  19.                 break;
  20.             case 1:
  21.                 status = new Date().getTime() - t + ": server connection established";
  22.                 break;
  23.             case 2:
  24.                 status = new Date().getTime() - t + ": request received";
  25.                 break;
  26.             case 3:
  27.                 status = new Date().getTime() - t + ": processing request";
  28.                 break;
  29.             case 4:
  30.                 status = "complete";
  31.                 timing[1] = "c:" + (new Date().getTime() - t);
  32.                 if (xhr.status == 200) {
  33.                     parent.location.reload()
  34.                 }
  35.                 break
  36.         }
  37.     };
  38.     timing[0] = "s:" + (new Date().getTime() - t);
  39.     xhr.open("GET", "/_Incapsula_Resource?SWHANEDL=8103315559244218759,14874298502430602693,13300863989648351994,197564", false);
  40.     xhr.send(null)
  41. } catch (c) {
  42.     status += new Date().getTime() - t + " incap_exc: " + c;
  43.     document.createElement("img").src = "/_Incapsula_Resource?ES2LURCT=67&t=78&d=" + encodeURIComponent(status + " (" + timing.join() + ")")
  44. };
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top