403Webshell
Server IP : 104.171.130.249  /  Your IP : 216.73.216.146
Web Server : nginx/1.25.5
System : Linux 0dac65491b7e 6.8.0-134-generic #134-Ubuntu SMP PREEMPT_DYNAMIC Fri Jun 26 18:43:11 UTC 2026 x86_64
User : root ( 0)
PHP Version : 8.4.23
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /var/www/html/wp-content/themes/matreshka/assets/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/wp-content/themes/matreshka/assets/js/page-loader.js
(function () {
  'use strict';

  var MIN_VISIBLE_MS = 250;
  var MAX_VISIBLE_MS = 8000;
  var startedAt = Date.now();
  var fallbackTimer = null;
  var hidden = false;

  function getLoader() {
    return document.getElementById('matreshka-page-loader');
  }

  function removeLoader(loader) {
    if (loader && loader.parentNode) {
      loader.parentNode.removeChild(loader);
    }
  }

  function hideLoader() {
    if (hidden) {
      return;
    }

    var loader = getLoader();
    if (!loader) {
      hidden = true;
      return;
    }

    var elapsed = Date.now() - startedAt;
    var delay = Math.max(MIN_VISIBLE_MS - elapsed, 0);

    hidden = true;
    window.clearTimeout(fallbackTimer);

    window.setTimeout(function () {
      loader.classList.add('is-hiding');
      loader.classList.remove('active');

      window.setTimeout(function () {
        removeLoader(loader);
      }, 400);
    }, delay);
  }

  if (document.readyState === 'complete') {
    hideLoader();
  } else {
    window.addEventListener('load', hideLoader, { once: true });
  }

  window.addEventListener('pageshow', function (event) {
    if (event.persisted) {
      hideLoader();
    }
  });

  fallbackTimer = window.setTimeout(hideLoader, MAX_VISIBLE_MS);
})();

Youez - 2016 - github.com/yon3zu
LinuXploit