HEX
Server: Apache
System: Linux box5134.bluehost.com 5.14.0-162.23.1.9991722448259.nf.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jul 31 18:11:45 UTC 2024 x86_64
User: bqfpihmy (1846)
PHP: 8.2.30
Disabled: NONE
Upload Files
File: /home4/bqfpihmy/www/townsrealty/wp-content/plugins/ssl-insecure-content-fixer/js/admin-settings.js
"use strict";

/*!
SSL Insecure Content Fixer admin settings script
https://ssl.webaware.net.au/
*/
(function ($) {
  $.ajax({
    url: sslfix.ajax_url_ssl,
    data: {
      action: "sslfix-get-recommended",
      sslfix_nonce: sslfix.test_nonce
    },
    dataType: "json",
    method: "GET",
    success: showRecommended
  });
  /**
  * show recommended settings
  * @param {Object} response
  */

  function showRecommended(response) {
    if (response.recommended) {
      var label = $("label[for=" + response.recommended_element + "]");
      label.addClass("sslfix-recommended");
      label.html(label.html() + "<br/><span>" + sslfix.msg.recommended + "</span>");
    }
  }

  $.ajax({
    url: sslfix.ajax_url_wp,
    data: {
      action: "sslfix-test-https"
    },
    dataType: "json",
    method: "GET",
    xhrFields: {
      withCredentials: true
    },
    success: showHttpsDetected
  });
  /**
  * show whether HTTPS was detected correctly within WordPress
  * @param {Object} response
  */

  function showHttpsDetected(response) {
    if (response.https) {
      $("#sslfix-https-detection").addClass("dashicons dashicons-" + response.https);
    }
  }
})(jQuery);