HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux ip-10-0-8-47 6.8.0-1021-aws #23~22.04.1-Ubuntu SMP Tue Dec 10 16:31:58 UTC 2024 aarch64
User: ubuntu (1000)
PHP: 8.1.2-1ubuntu2.22
Disabled: NONE
Upload Files
File: /var/www/javaapp.co.uk/wp-content/plugins/happy-elementor-addons/assets/admin/js/admin.min.js
"use strict";function getParameterByName(e,a){a=new RegExp("[\\?&]"+a+"=([^&#]*)").exec(e);return null==a?"":decodeURIComponent(a[1].replace(/\+/g," "))}!function(n){n(function(){var e=n(".hajs-clear-cache"),a=n("#toplevel_page_happy-addons .toplevel_page_happy-addons .wp-menu-name"),t=a.text();a.text(t.replace(/\s/,"")),e.on("click","a",function(e){e.preventDefault();var a="all",t=n(e.delegateTarget);t.hasClass("ha-clear-page-cache")&&(a="page"),t.addClass("ha-clear-cache--init"),n.post(HappyAdmin.ajax_url,{action:"ha_clear_cache",type:a,nonce:HappyAdmin.nonce,post_id:HappyAdmin.post_id}).done(function(e){t.removeClass("ha-clear-cache--init").addClass("ha-clear-cache--done")})})})}(jQuery),jQuery(document).ready(function(o){jQuery("[id^=wp-admin-bar-elementor_edit_doc_]").each(function(e){var a=o(this).attr("id"),t=a.replace("wp-admin-bar-elementor_edit_doc_",""),n=o("#"+a+" .elementor-edit-link-type");jQuery.ajax({url:HappyAdmin.ajax_url,type:"get",dataType:"json",data:{nonce:HappyAdmin.nonce,action:"ha_cond_template_type",post_id:t},success:function(e){e&&e.data&&(e=e.data,console.log(e),e)&&["header","footer","single"].includes(e)&&n.text("HA: "+e.toLowerCase().replace(/(?<= )[^\s]|^./g,function(e){return e.toUpperCase()}))}})})}),jQuery(function(e){var a=document.getElementById("tmpl-modal-new-template"),t=(null!=a&&e("body").append(a.innerHTML),MicroModal.init(),document.getElementById("ha-new-template-form__template-type")),n=document.getElementById("ha-new-template-form__post-title"),o=document.getElementById("ha-new-template-form__submit");function l(){var e=t.value,a=n.value;console.log(a),o.disabled=!e||!a}null!=t&&t.addEventListener("change",l),null!=n&&n.addEventListener("input",l),e("#ha-template-library-add-new").on("click",function(e){e.preventDefault(),MicroModal.show("modal-new-template")})});