1import SwiperModule from "../../../../../../../template/js/module/SwiperModule.js"; 2import PopupModule from "../../../../../../../template/js/module/PopupModule.js"; 3export default function MonaCreateModulePopup() { 4 5 $(document).on("click", ".monaPopup", function (e) { 6 e.preventDefault(); 7 var $this = $(this); 8 var hello = $(this).closest('.all-projects-item-inner').find('.lds-dual-ring'); 9 console.log(hello); 10 var popup_id = $this.data("popup_id"); 11 12 if ($(".popup#" + popup_id).length) { 13 if (popup_id == "project") { 14 var postId = $this.data("post_id"); 15 var processing = $(".popup#" + popup_id); 16 $.ajax({ 17 url: mona_ajax_url.ajaxURL, 18 type: "post", 19 data: { 20 action: "get_posts_by_popup", 21 postId: postId, 22 }, 23 error: function (request) { 24 hello.removeClass("active"); 25 }, 26 beforeSend: function (response) { 27 hello.addClass("active"); 28 }, 29 success: function (result) { 30 if (result.success) { 31 $(".popup#" + popup_id).addClass("open"); 32 $(".popup#" + popup_id) 33 .find(".popup-wrapper") 34 .html(result.data.popupContent); 35 console.log("success"); 36 } else { 37 console.log("error"); 38 } 39 hello.removeClass("active"); 40 setTimeout(PopupModule(), 2000); 41 SwiperModule(); 42 }, 43 }); 44 } else { 45 $(".popup#" + popup_id).addClass("open"); 46 } 47 } 48 }); 49 50 $(document).ready(function () { 51 $("#address").on("change", function () { 52 $("#filter-form").submit(); 53 }); 54 $("#project").on("change", function () { 55 $("#filter-form").submit(); 56 }); 57 $("#product_used").on("change", function () { 58 $("#filter-form").submit(); 59 }); 60 $("#solution_used").on("change", function () { 61 $("#filter-form").submit(); 62 }); 63 }); 64 65 $(document).ready(function () { 66 $(".select-filter-2-box.state").on("change", function () { 67 $("#filter-form").submit(); 68 }); 69 }); 70 71 $(document).on( 72 "click", 73 ".discover-image .discover-icon .icon.down", 74 function () { 75 $(".popup.popup-download").addClass("open"); 76 // $("a#btn-down-1").atrr("download"); 77 } 78 ); 79 80 //form tư vấn 81 $(document).on( 82 "click", 83 ".policy-form-wrap .policy-form-left .b-tv", 84 function () { } 85 ); 86 87 document.addEventListener( 88 "wpcf7submit", 89 function (event) { 90 if ( 91 event.detail.contactFormId === "167" && 92 event.detail.status === "mail_sent" 93 ) { 94 const checkedElements = document.querySelectorAll( 95 ".form-control.style-five.checked" 96 ); 97 98 checkedElements.forEach(function (element) { 99 element.classList.remove("checked"); 100 }); 101 102 // Code xỠlý khác (nếu cần) 103 } 104 }, 105 false 106 ); 107 108 //popup thiết kế 109 $(document).on( 110 "click", 111 ".design-image .design-icon .icon.download", 112 function (e) { 113 e.preventDefault(); 114 $(".popup.pop-down").addClass("open"); 115 } 116 ); 117}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.