SILENT KILLERPanel

Current Path: > home > codekrsu > > escapematrixonline.com > wp-content > plugins > ad-inserter > includes > js


Operation   : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
Software     : Apache
Server IP    : 162.0.232.56 | Your IP: 216.73.216.111
Domains      : 1034 Domain(s)
Permission   : [ 0755 ]

Files and Folders in: /home/codekrsu//escapematrixonline.com/wp-content/plugins/ad-inserter/includes/js

NameTypeSizeLast ModifiedActions
ResizeSensor.js File 5910 bytes October 22 2021 20:38:52.
ResizeSensor.min.js File 2234 bytes June 05 2021 18:47:44.
ad-inserter-check.js File 304 bytes May 13 2017 01:33:42.
ai-adb-data.js File 1787 bytes October 10 2022 20:16:54.
ai-adb-data.min.js File 1565 bytes October 10 2022 20:16:54.
ai-adb-try.js File 405 bytes November 01 2022 19:56:04.
ai-adb-try.min.js File 309 bytes November 01 2022 19:56:04.
ai-adb.js File 37793 bytes July 01 2025 13:06:56.
ai-adb.min.js File 13882 bytes July 01 2025 13:06:56.
ai-admin.js File 1588 bytes February 04 2019 22:43:18.
ai-ads-data.js File 148 bytes October 10 2022 20:16:54.
ai-ads-data.min.js File 123 bytes October 10 2022 20:16:54.
ai-ads.js File 8599 bytes June 21 2023 20:37:26.
ai-ads.min.js File 2407 bytes March 21 2023 23:11:24.
ai-auto-ads.js File 683 bytes October 10 2022 20:16:54.
ai-auto-ads.min.js File 344 bytes October 10 2022 20:16:54.
ai-base64.js File 1296 bytes May 22 2020 22:02:18.
ai-base64.min.js File 1161 bytes March 15 2020 13:39:32.
ai-cookie-data.js File 87 bytes January 01 2023 23:22:48.
ai-cookie-data.min.js File 72 bytes January 01 2023 23:22:48.
ai-cookie.js File 28750 bytes July 01 2025 13:06:56.
ai-cookie.min.js File 10120 bytes July 01 2025 13:06:56.
ai-errors-footer.js File 1072 bytes September 28 2022 21:46:10.
ai-errors-footer.min.js File 600 bytes September 28 2022 21:46:10.
ai-errors-head.js File 133 bytes January 05 2020 22:32:08.
ai-errors-head.min.js File 77 bytes January 05 2020 22:32:08.
ai-errors.js File 402 bytes January 05 2020 22:32:08.
ai-errors.min.js File 293 bytes January 05 2020 22:32:08.
ai-filter-data.js File 142 bytes October 18 2022 23:11:16.
ai-filter-data.min.js File 116 bytes October 18 2022 23:11:16.
ai-filter.js File 16985 bytes January 01 2023 23:22:48.
ai-filter.min.js File 4946 bytes January 01 2023 23:22:48.
ai-insert-data.js File 90 bytes January 01 2023 23:22:48.
ai-insert-data.min.js File 75 bytes January 01 2023 23:22:48.
ai-insert.js File 31029 bytes June 03 2023 21:04:34.
ai-insert.min.js File 10530 bytes June 03 2023 21:04:34.
ai-jquery.js File 18 bytes June 16 2018 16:14:22.
ai-lists-data.js File 80 bytes January 01 2023 23:22:48.
ai-lists-data.min.js File 68 bytes January 01 2023 23:22:48.
ai-lists.js File 55439 bytes July 01 2025 13:06:56.
ai-lists.min.js File 15443 bytes July 01 2025 13:06:56.
ai-mobile-detect.js File 71235 bytes October 12 2022 22:31:18.
ai-mobile-detect.min.js File 39480 bytes October 12 2022 22:31:18.
ai-rotation-data.js File 100 bytes January 18 2023 23:35:12.
ai-rotation-data.min.js File 80 bytes January 18 2023 23:35:12.
ai-rotation.js File 32220 bytes March 08 2024 21:34:50.
ai-rotation.min.js File 7465 bytes March 08 2024 21:34:50.
ai-select-data.js File 156 bytes January 02 2023 21:37:30.
ai-select-data.min.js File 131 bytes January 02 2023 21:37:30.
ai-select.js File 18463 bytes April 15 2024 22:22:22.
ai-select.min.js File 7724 bytes April 15 2024 22:22:22.
ai-sidebar-data.js File 179 bytes January 01 2023 23:22:48.
ai-sidebar-data.min.js File 160 bytes January 01 2023 23:22:48.
ai-sidebar.js File 7102 bytes February 05 2023 15:58:48.
ai-sidebar.min.js File 1733 bytes February 05 2023 15:58:48.
ai-wait-functions.js File 473 bytes October 10 2022 20:16:54.
ai-wait-functions.min.js File 227 bytes October 10 2022 20:16:54.
ai-wait-jquery.js File 1749 bytes January 06 2021 22:01:50.
ai-wait-jquery.min.js File 682 bytes January 06 2021 22:01:50.
image-picker.js File 10135 bytes January 29 2017 23:56:22.
image-picker.min.js File 7523 bytes April 27 2017 22:02:34.
index.html File 44 bytes August 24 2018 20:39:16.
jquery.mousewheel.js File 8267 bytes September 30 2016 22:30:08.
jquery.mousewheel.min.js File 2771 bytes September 30 2016 22:30:08.
jquery.multi-select.js File 20136 bytes July 01 2025 13:06:56.
jquery.quicksearch.js File 4143 bytes July 01 2025 13:06:56.
jquery.scombobox.js File 66592 bytes July 01 2025 13:06:56.
jquery.scombobox.min.js File 23784 bytes July 01 2025 13:06:56.
jquery.ui.spinner.js File 13920 bytes May 13 2017 01:33:42.
missed.js File 2700 bytes January 29 2018 21:42:06.
theia-sticky-sidebar.js File 16370 bytes January 01 2023 23:22:48.
theia-sticky-sidebar.min.js File 5596 bytes January 01 2023 23:22:48.

Reading File: /home/codekrsu//escapematrixonline.com/wp-content/plugins/ad-inserter/includes/js/ai-sidebar.js

if (typeof sticky_widget_mode != 'undefined') {

const AI_STICKY_WIDGET_MODE_CSS       = 0;
const AI_STICKY_WIDGET_MODE_JS        = 1;
const AI_STICKY_WIDGET_MODE_CSS_PUSH  = 2;

// ***
//jQuery(document).ready(function($) {


function ai_configure_sticky_widgets () {
  // ***
//  var ai_set_sidebars = function ($) {
  var ai_set_sidebars = function () {
    // ***
//    var sticky_widget_mode   = AI_FUNC_GET_STICKY_WIDGET_MODE;
//    var sticky_widget_margin = AI_FUNC_GET_STICKY_WIDGET_MARGIN;
//    var document_width = $(document).width();

    var document_width = document.body.clientWidth;

    var ai_debug = typeof ai_debugging !== 'undefined'; // 1
//    var ai_debug = false;

    // ***
//    $(".ai-sticky-widget").each (function () {
    document.querySelectorAll (".ai-sticky-widget").forEach ((widget, i) => {

      if (sticky_widget_mode == AI_STICKY_WIDGET_MODE_CSS_PUSH) {
        var ai_sticky_block = widget.querySelector ('.' + ai_block_class_def);
        if (ai_sticky_block != null) {
          ai_sticky_block.style.position = 'sticky';
          ai_sticky_block.style.position = '-webkit-sticky';
          ai_sticky_block.style.top = sticky_widget_margin + 'px';
        }

        var ai_sticky_space = widget.querySelector ('.ai-sticky-space');
        if (ai_sticky_space != null) {
          ai_sticky_space.style.height = window.innerHeight + 'px';
        }
      } else {
      // ***
//      var widget = $(this);
//      var widget_width = widget.width();
      var widget_width = widget.clientWidth;

      if (ai_debug) console.log ('');
      // ***
//      if (ai_debug) console.log ("WIDGET:", widget.width (), widget.prop ("tagName"), widget.attr ("id"));
      if (ai_debug) console.log ("WIDGET:", widget_width, widget.tagName, widget.hasAttribute ("id") ? '#' + widget.getAttribute ("id") : '', widget.hasAttribute ("class") ? '.' + widget.getAttribute ("class").replace(/ +(?= )/g,'').split (' ').join ('.') : '');

      var already_sticky_js = false;
      // ***
//      var sidebar = widget.parent ();
      var sidebar = widget.parentElement;
      // ***
//      while (sidebar.prop ("tagName") != "BODY") {
      while (sidebar.tagName != "BODY") {

        // ***
//        if (sidebar.hasClass ('theiaStickySidebar')) {
        if (sidebar.classList.contains ('theiaStickySidebar')) {
          already_sticky_js = true;
          break;
        }

        // ***
//        if (ai_debug) console.log ("SIDEBAR:", sidebar.width (), sidebar.prop ("tagName"), sidebar.attr ("id"));
        if (ai_debug) console.log ("SIDEBAR:", sidebar.clientWidth, sidebar.clientHeight, sidebar.tagName, sidebar.hasAttribute ("id") ? '#' + sidebar.getAttribute ("id") : '', sidebar.hasAttribute ("class") ? '.' + sidebar.getAttribute ("class").replace(/ +(?= )/g,'').split (' ').join ('.') : '');

        // ***
//        var parent_element = sidebar.parent ();
        var parent_element = sidebar.parentElement;
        // ***
//        var parent_element_width = parent_element.width();
        var parent_element_width = parent_element.clientWidth;
        if (parent_element_width > widget_width * 1.2 || parent_element_width > document_width / 2) break;
        sidebar = parent_element;
      }
      if (already_sticky_js) {
        if (ai_debug) console.log ("JS STICKY SIDEBAR ALREADY SET");
        return;
      }


      // ***
//      var new_sidebar_top = sidebar.offset ().top - widget.offset ().top + sticky_widget_margin;
      var sidebar_rect = sidebar.getBoundingClientRect ();
      var widget_rect = widget.getBoundingClientRect ();

//      console.log ('sidebar_rect', sidebar_rect);
//      console.log ('widget_rect', widget_rect);

      var new_sidebar_top = sidebar_rect.top - widget_rect.top + sticky_widget_margin;

      if (ai_debug) console.log ("NEW SIDEBAR TOP:", new_sidebar_top);

      if (sticky_widget_mode == AI_STICKY_WIDGET_MODE_CSS) {
        // CSS
        // ***
//        if (sidebar.css ("position") != "sticky" || isNaN (parseInt (sidebar.css ("top"))) || sidebar.css ("top") < new_sidebar_top) {
        if (sidebar.style.position != "sticky" || isNaN (parseInt (sidebar.style.top)) || sidebar.style.top < new_sidebar_top) {
          // ***
//          sidebar.css ("position", "sticky").css ("position", "-webkit-sticky").css ("top", new_sidebar_top);
          sidebar.style.position = 'sticky';
          sidebar.style.position = '-webkit-sticky';
          sidebar.style.top = new_sidebar_top + 'px';

          if (ai_debug) console.log ("CSS STICKY SIDEBAR, TOP:", new_sidebar_top);

          if (typeof ai_no_sticky_sidebar_height == 'undefined') {
            var mainbar = sidebar;
            var paddings_margins = 0;
            while (mainbar.tagName != "BODY") {

              mainbar = mainbar.parentElement;

              if (ai_debug) console.log ("MAINBAR:", mainbar.clientWidth, mainbar.clientHeight, mainbar.tagName, mainbar.hasAttribute ("id") ? '#' + mainbar.getAttribute ("id") : '', mainbar.hasAttribute ("class") ? '.' + mainbar.getAttribute ("class").replace(/ +(?= )/g,'').split (' ').join ('.') : '');

              if ((mainbar.clientWidth > sidebar.clientWidth * 1.5 || mainbar.clientWidth > document_width / 2) && mainbar.clientHeight > sidebar.clientHeight) {
                var mainbarClientHeight = mainbar.clientHeight;
                sidebar.parentElement.style.height = mainbarClientHeight + 'px';

                var mainbarClientHeightDifference = mainbar.clientHeight - mainbarClientHeight;
                sidebar.parentElement.style.height = (mainbarClientHeight - mainbarClientHeightDifference) + 'px';

                if (ai_debug) console.log ("SIDEBAR parent element height set:", mainbar.clientHeight);
                break;
              }
            }
          }
        }
        else if (ai_debug) console.log ("CSS STICKY SIDEBAR ALREADY SET");
      } else
      if (sticky_widget_mode == AI_STICKY_WIDGET_MODE_JS) {
          if (window.jQuery && window.jQuery.fn) {

            // Javascript
            // ***  theiaStickySidebar is jQuery library
  //          sidebar.theiaStickySidebar({
            jQuery (sidebar).theiaStickySidebar({
              additionalMarginTop: new_sidebar_top,
              sidebarBehavior: 'stick-to-top',
            });

            if (ai_debug) console.log ("JS STICKY SIDEBAR, TOP:", new_sidebar_top);
          } else {
              console.error ('AI STICKY WIDGET MODE Javascript USES jQuery', '- jQuery not found');
            }
        }
        }
    });

  };

  if (typeof ai_sticky_sidebar_delay == 'undefined') {
    ai_sticky_sidebar_delay = 200;
  }

  setTimeout (function() {
    // ***
//    ai_set_sidebars ($);
    ai_set_sidebars ();
  }, ai_sticky_sidebar_delay);
// ***
//});
}

function ai_ready (fn) {
  if (document.readyState === 'complete' || (document.readyState !== 'loading' && !document.documentElement.doScroll)) {
    fn ();
  } else {
     document.addEventListener ('DOMContentLoaded', fn);
  }
}


ai_ready (ai_configure_sticky_widgets);

}

SILENT KILLER Tool