HEX
Server: Apache
System: Linux zacp120.webway.host 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP Thu Apr 17 19:10:24 UTC 2025 x86_64
User: govancoz (1003)
PHP: 8.3.26
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: //home/govancoz/www/wp-content/plugins/google-analytics-for-wordpress/assets/js/admin-common.js
jQuery(document).ready(function ($) {
  /**
   * Dismissable Notices
   * - Sends an AJAX request to mark the notice as dismissed
   */
  $('div.monsterinsights-notice').on('click', 'button.notice-dismiss', function (e) {
    e.preventDefault();
    $(this).closest('div.monsterinsights-notice').fadeOut();

    // If this is a dismissible notice, it means we need to send an AJAX request
    if ($(this).parent().hasClass('is-dismissible')) {
      $.post(
        monsterinsights_admin_common.ajax,
        {
          action: 'monsterinsights_ajax_dismiss_notice',
          nonce: monsterinsights_admin_common.dismiss_notice_nonce,
          notice: $(this).parent().data('notice')
        },
        function (response) {
        },
        'json'
      );
    }

  });

  /**
   * WP Consent Notice Dismiss
   * - Handles the dismissal of the WP Consent notice
   */
  $('#monsterinsights-wpconsent-notice-close').on('click', function (e) {
    e.preventDefault();

    var $notice = $('#monsterinsights-wpconsent-notice');

    // Fade out the notice immediately for better UX
    $notice.fadeOut();

    // Send AJAX request to dismiss the notice
    $.post(
      monsterinsights_admin_common.ajax,
      {
        action: 'monsterinsights_dismiss_wpconsent_notice',
        nonce: monsterinsights_admin_common.dismiss_notice_nonce
      },
      function () {},
      'json'
    );
  });

  $('div.wp-menu-name > .monsterinsights-menu-notification-indicator').click(function (event) {
    event.preventDefault();
    event.stopPropagation();

    location.href = monsterinsights.reports_url + '&open=monsterinsights_notification_sidebar';
  });
});

var submenu_item = document.querySelector('.monsterinsights-upgrade-submenu');
if (null !== submenu_item) {
  var anchorTag = submenu_item.parentNode;

  if ( anchorTag ) {
    anchorTag.setAttribute("target", "_blank");
    anchorTag.setAttribute("rel", "noopener");

    var li = anchorTag.parentNode;

    if (li) {
      li.classList.add('monsterinsights-submenu-highlight');
    }
  }
}

var automated_submenu_item = document.querySelector('.monsterinsights-automated-submenu');
if (null !== automated_submenu_item) {
  var anchorTag = automated_submenu_item.parentNode;

  if ( anchorTag ) {
    anchorTag.setAttribute("target", "_blank");
    anchorTag.setAttribute("rel", "noopener");
    anchorTag.setAttribute("style", "color:#1da867");
  }
}