Uname:Linux EDL-STRETCH 4.19.0-27-amd64 #1 SMP Debian 4.19.316-1 (2024-06-25) x86_64

403WebShell
403Webshell
Server IP : 188.114.96.2  /  Your IP : 104.23.243.200
Web Server : Apache/2.4.59 (Debian)
System : Linux EDL-STRETCH 4.19.0-27-amd64 #1 SMP Debian 4.19.316-1 (2024-06-25) x86_64
User : edlftp ( 1002)
PHP Version : 7.4.33
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/git/sms.edl.codes.solutions/assets/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/git/sms.edl.codes.solutions/assets/js/run_when_ready.js
(function (window) {
  // Define a local copy of runWhenReady
  var runWhenReady = function (callback) {
      readyBound = false;
      runWhenReady.isReady = false;
      if (typeof callback == 'function') {
        DOMReadyCallback = callback;
      }
      bindReady();
    },
    // Use the correct document accordingly with window argument (sandbox)
    document = window.document,
    readyBound = false,
    DOMReadyCallback = function () {},
    // The ready event handler
    DOMContentLoaded;
  // Is the DOM ready to be used? Set to true once it occurs.
  runWhenReady.isReady = false;
  // Handle when the DOM is ready
  var DOMReady = function () {
      // Make sure that the DOM is not already loaded
      if (!runWhenReady.isReady) {
        // Make sure body exists, at least, in case IE gets a little overzealous (ticket #5443).
        if (!document.body) {
          setTimeout(DOMReady, 13);
          return;
        }
        // Remember that the DOM is ready
        runWhenReady.isReady = true;
        // If there are functions bound, to execute
        DOMReadyCallback();
        // Execute all of them
      }
    } // /ready()
  var bindReady = function () {
      if (readyBound) {
        return;
      }
      readyBound = true;
      // Catch cases where runWhenReady is called after the
      // browser event has already occurred.
      if (document.readyState === "complete") {
        DOMReady();
      }
      // Mozilla, Opera and webkit nightlies currently support this event
      if (document.addEventListener) {
        // Use the handy event callback
        document.addEventListener("DOMContentLoaded", DOMContentLoaded, false);
        // A fallback to window.onload, that will always work
        window.addEventListener("load", DOMContentLoaded, false);
        // If IE event model is used
      } else if (document.attachEvent) {
        // ensure firing before onload,
        // maybe late but safe also for iframes
        document.attachEvent("onreadystatechange", DOMContentLoaded);
        // A fallback to window.onload, that will always work
        window.attachEvent("onload", DOMContentLoaded);
        // If IE and not a frame
        // continually check to see if the document is ready
        var toplevel = false;
        try {
          toplevel = window.frameElement == null;
        } catch (e) {}
        if (document.documentElement.doScroll && toplevel) {
          doScrollCheck();
        }
      }
    }; // /bindReady()
  // The DOM ready check for Internet Explorer
  var doScrollCheck = function () {
      if (runWhenReady.isReady) {
        return;
      }
      try {
        // If IE is used, use the trick by Diego Perini
        // http://javascript.nwbox.com/IEContentLoaded/
        document.documentElement.doScroll("left");
      } catch (error) {
        setTimeout(doScrollCheck, 1);
        return;
      }
      // and execute any waiting functions
      DOMReady();
    } // /doScrollCheck()
    // Cleanup functions for the document ready method
  if (document.addEventListener) {
    DOMContentLoaded = function () {
      document.removeEventListener("DOMContentLoaded", DOMContentLoaded, false);
      DOMReady();
    };
  } else if (document.attachEvent) {
    DOMContentLoaded = function () {
      // Make sure body exists, at least, in case IE gets a little overzealous (ticket #5443).
      if (document.readyState === "complete") {
        document.detachEvent("onreadystatechange", DOMContentLoaded);
        DOMReady();
      }
    };
  } // /if()
  // Expose runWhenReady to the global object
  window.runWhenReady = runWhenReady;
})(window);

Youez - 2016 - github.com/yon3zu
LinuXploit