Server IP : 192.64.118.117 / Your IP : 3.15.164.218 Web Server : LiteSpeed System : Linux premium56.web-hosting.com 4.18.0-513.24.1.lve.1.el8.x86_64 #1 SMP Thu May 9 15:10:09 UTC 2024 x86_64 User : thecgapy ( 1160) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/thecgapy/www/wp-content/plugins/leads/assets/js/ |
Upload File : |
function wpl_remember_inputs( selector ){ //alert('hi'); jQuery(selector).each( function(){ //alert ('here'); //if this item has been cookied, restore it var name = ( jQuery(this).attr('name') ) ? jQuery(this).attr('name') : ''; var type_input = ( jQuery(this).attr('type') ) ? jQuery(this).attr('type') : ''; var id_input = ( jQuery(this).attr('id') ) ? jQuery(this).attr('id') : ''; if( jQuery.cookie( name ) && type_input != 'submit' && type_input != 'hidden' && type_input != 'file' && name != 'comment' && name.indexOf("password") < 0 ){ jQuery(this).val( jQuery.cookie(name) ); } //assign a change function to the item to cookie it jQuery(this).change( function(){ jQuery.cookie(name, jQuery(this).val(), { path: '/', expires: 365 }); } ); } ); } function wpl_remember_form( selector ){ jQuery(selector).each( function(){ var form_name = jQuery(this).attr('name'); var form_id = jQuery(this).attr('id'); var form_class = jQuery(this).attr('class'); if(typeof(form_name) != "undefined" && form_name !== null) { jQuery.cookie("wpl_form_uid", form_name, { path: '/', expires: 365 }); } else if(typeof(form_id) != "undefined" && form_id !== null) { jQuery.cookie("wpl_form_uid", form_id, { path: '/', expires: 365 }); } else if (typeof(form_class) != "undefined" && form_class !== null) { jQuery.cookie("wpl_form_uid", form_class, { path: '/', expires: 365 }); } else { jQuery.cookie("wpl_form_uid", 'form_generic', { path: '/', expires: 365 }); } } ); } jQuery(document).ready(function($) { // Fill Form Inputs from Cookies wpl_remember_inputs( 'input' ); wpl_remember_inputs( 'textarea' ); wpl_remember_form( 'form' ); if ( jQuery(".inbound-now-form").length > 0 && typeof localStorage !== "undefined") { var params = localStorage.getItem('inbound_url_params'); jQuery('.inbound_params').val(params); } });