1 2function displayModalInfo(postId, typeOfModal){ 3 jQuery.ajax({ 4 5 type : "POST", 6 url : '/wp-admin/admin-ajax.php', 7 data : { 8 action: "imt_modal_box_layout_vc", 9 post_id: postId, 10 typeOfModal: typeOfModal 11 }, 12 success: function (response) { 13 14/** if user select one of this options **/ 15jQuery('body').css('overflow', 'hidden'); 16jQuery(".imt-response").html(response); 17 if(typeOfModal == 'center_popup') { 18 var display_modal = jQuery("#imt_modal_id"); 19 var close_modal = jQuery(".imt-close")[0]; 20 21 22 23 }else{ 24 var display_modal = jQuery("#imt_modal_id_right"); 25 var close_modal = jQuery(".imt-close-right")[0]; 26 } 27 28 if(display_modal){ 29 display_modal.css("display", "block"); 30 jQuery(".imt-modal-content").css({ 31 "-webkit-animation-name": "imt-fadeInUp", 32 "animation-name": "imt-fadeInUp" 33 }); 34 35 } 36 if(close_modal){ 37 close_modal.onclick = function() { 38 display_modal.css("display", "none"); 39 jQuery('body').css('overflow', 'visible '); 40 }; 41 } 42 43 } 44 45 }); 46} 47jQuery(document).ready(function(){ 48 jQuery('.imt-modal-wrapp').on('click', function(e){ 49 var currentId = jQuery(e.target).attr('id') 50 if (currentId=='imt_modal_id' || currentId=='imt_modal_id_right'){ 51 jQuery("#imt_modal_id").css('display', 'none') 52 jQuery("#imt_modal_id_right").css('display', 'none'); 53 jQuery('body').css('overflow', 'visible '); 54 } 55 }); 56});
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.