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