| Server IP : 38.190.208.107 / Your IP : 216.73.217.46 Web Server : nginx/1.28.1 System : Linux ht2026040333114 6.1.0-10-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.37-1 (2023-07-03) x86_64 User : root ( 0) PHP Version : 8.2.28 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv,eval,assert,passthru,system,exec,shell_exec,popen,proc_open MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /www/wwwroot/wp.4/wp-content/themes/woodmart/js/scripts/menu/ |
Upload File : |
!function(s){woodmartThemeModule.menuDropdownsAJAX=function(){function d(e){e.addClass("dropdowns-loading");var d=woodmart_settings.menu_storage_key+"_"+e.attr("id"),o=!1,a=e.find(".dropdown-load-ajax"),t=[];if(a.each(function(){var o=s(this).find(".dropdown-html-placeholder");0<o.length&&t.push(o.data("id"))}),woodmart_settings.ajax_dropdowns_save&&woodmartThemeModule.supports_html5_storage){a=localStorage.getItem(d);try{o=JSON.parse(a)}catch(o){console.log("cant parse Json",o)}}function n(o){Object.keys(o).forEach(function(d){woodmartThemeModule.removeDuplicatedStylesFromHTML(o[d],function(o){e.find('[data-id="'+d+'"]').replaceWith(o),e.addClass("dropdowns-loaded"),setTimeout(function(){e.removeClass("dropdowns-loading")},1e3)})}),setTimeout(function(){woodmartThemeModule.$document.trigger("wdLoadDropdownsSuccess")},500)}o?n(o):0===t.length?(e.addClass("dropdowns-loaded"),e.removeClass("dropdowns-loading")):s.ajax({url:woodmart_settings.ajaxurl,data:{action:"woodmart_load_html_dropdowns",ids:t},dataType:"json",method:"POST",success:function(o){if("success"===o.status){if(n(o.data),woodmart_settings.ajax_dropdowns_save&&woodmartThemeModule.supports_html5_storage&&!localStorage.getItem(d))try{localStorage.setItem(d,JSON.stringify(o.data))}catch(o){}}else console.log("loading html dropdowns returns wrong data - ",o.message)},error:function(){console.log("loading html dropdowns ajax error")}})}window.addEventListener("wdEventStarted",function(){s(".menu").has(".dropdown-load-ajax").each(function(){var o=s(this);o.hasClass("dropdowns-loading")||o.hasClass("dropdowns-loaded")||(woodmartThemeModule.windowWidth<=1024?setTimeout(function(){d(o)},500):d(o))})})},s(document).ready(function(){woodmartThemeModule.menuDropdownsAJAX()})}(jQuery);