| Server IP : 14.225.204.176 / Your IP : 216.73.216.169 Web Server : nginx/1.24.0 System : Linux nodejs-ybgk 6.8.0-40-generic #40-Ubuntu SMP PREEMPT_DYNAMIC Fri Jul 5 10:34:03 UTC 2024 x86_64 User : root ( 0) PHP Version : 8.1.34 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/html/php/langngon.com/wp-content/plugins/protect-wp-admin/js/ |
Upload File : |
/* admin js*/
jQuery(document).ready(function(){
jQuery(".pwa-tab").hide();
jQuery("#div-pwa-general").show();
jQuery(".pwa-tab-links").click(function(){
var divid=jQuery(this).attr("id");
jQuery(".pwa-tab-links").removeClass("active");
jQuery(".pwa-tab").hide();
jQuery("#"+divid).addClass("active");
jQuery("#div-"+divid).fadeIn();
});
console.log(pwa_admin_object.st+'ffff');
jQuery("#pwa-settings-form-admin .button-primary").click(function(){
var $el = jQuery("#pwa_active");
var $vlue = jQuery("#pwa_rewrite_text").val();
var pwaActive = pwa_admin_object.st;
if( ( $el[0].checked ) && $vlue=="" ) {
jQuery("#pwa_rewrite_text").css("border","1px solid red");
jQuery("#adminurl").append(" <span style=\'color:red;display:block;\'>Please enter new admin slug</span>");
return false;
}
var seoUrlVal=jQuery("#check_permalink").val();
var htaccessWriteable = pwa_admin_object.ht;
var hostIP =pwa_admin_object.ip;
// alert(hostIP);
if(seoUrlVal=="no")
{
alert("Please update permalinks before activate the plugin. permalinks option should not be default!.");
window.open(pwa_admin_object.ur,"_blank");
return false;
}
else
{
return true;
}
});
/* add image upload image button */
jQuery(".upload_image").click(function() {
inputfieldId = jQuery(this).attr("data-id");
formfield = jQuery("#"+inputfieldId).attr("name");
tb_show( "", "media-upload.php?type=image&TB_iframe=true" );
return false;
});
window.send_to_editor = function(html) {
imgurl = jQuery(html).attr('href');
if(imgurl==undefined){ imgurl = jQuery(html).attr('src');}
jQuery("#"+inputfieldId).val(imgurl);
tb_remove();
}
// Add Color Picker to all inputs that have 'color-field' class
jQuery('.color-field').wpColorPicker();
});