| Server IP : 213.186.33.4 / Your IP : 216.73.216.146 Web Server : Apache System : Linux webm005.cluster103.gra.hosting.ovh.net 6.18.39-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Tue Jul 21 12:03:15 CEST 2026 x86_64 User : karinebmkh ( 644538) PHP Version : 8.4.22 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/karinebmkh/www2/wp-content/themes/thevoux-wp/assets/js/ |
Upload File : |
jQuery(document).ready(function(e){e(".thb-register:not(.disabled)").on("click",function(a){var t=e(this),o=e("#thb_product_key").val();return e.ajax({method:"GET",url:t.data("verify"),data:{product_key:o,domain:t.data("domain")},beforeSend:function(){t.addClass("disabled")},error:function(a){if(t.removeClass("disabled"),a){var o=e.parseJSON(a.responseText);o.error_message&&e("#thb_error_messages").html("<p>"+o.error_message+"</p>")}},success:function(a){e.ajax(ajaxurl,{method:"POST",data:{action:"thb_update_options",key:o,expired:0},success:function(){location.reload()}})}}),!1}),e(".thb-delete-key").on("click",function(a){e(this);return e.ajax(ajaxurl,{method:"POST",data:{action:"thb_update_options",key:"",expired:0},success:function(){location.reload()}}),!1});var a=new FormData;"undefined"!=typeof ocdi&&(a.append("action","ocdi_import_demo_data"),a.append("security",ocdi.ajax_nonce)),e(".thb-load-demo:not(.disabled)").on("click",function(t){var o=e(this),d=o.parents(".theme"),n=o.data("demo");d.addClass("loading"),e(".thb-load-demo").addClass("disabled").attr("disabled","disabled").unbind("click"),a.append("selected",n),function a(t){e.ajax({method:"POST",url:ocdi.ajax_url,data:t,contentType:!1,processData:!1}).done(function(e){if(void 0!==e.status&&"newAJAX"===e.status)a(t);else if(void 0!==e.status&&"afterAllImportAJAX"===e.status){var o=new FormData;o.append("action","ocdi_after_import_data"),o.append("security",ocdi.ajax_nonce),a(o)}else location.reload()})}(a),t.preventDefault()}),ThbImage={uploader:function(a,t,o){var d=wp.media({title:ThbImageWidget.frame_title,multiple:!1,library:{type:"image"},button:{text:ThbImageWidget.button_title}});return d.on("close",function(){var a=d.state().get("selection").toJSON();e("#"+t).val(a[0].url),e("#"+o).val(a[0].alt)}),d.open(),!1}}});