1jQuery(document).ready(function ($) { 2 3 const $modal = $('#partnerWPfstmodal'); 4 5 // Stop if modal doesn't exist on page 6 if (!$modal.length) return; 7 8 // OPEN MODAL 9 $("#partnerWPfstbtn, #partnerWPfstbtn1, #partnerWPfstbtn2, #partnerWPfstbtn3").on('click', function () { 10 $modal.fadeIn(); 11 $('body').addClass('scroll-hidden'); 12 }); 13 14 // CLOSE MODAL (X button) 15 $(document).on('click', '#partnerWPfstmodal .close', function () { 16 $modal.fadeOut(); 17 $('body').removeClass('scroll-hidden'); 18 }); 19 20}); 21 22jQuery(document).ready(function ($) { 23 24 const $modal = $('#partnersocialmodal'); 25 26 // Stop if modal doesn't exist on page 27 if (!$modal.length) return; 28 29 // OPEN MODAL (event delegation - works for multiple buttons with same id) 30 $(document).on('click', '[id="partnersocial"]', function () { 31 $modal.fadeIn(); 32 $('body').addClass('scroll-hidden'); 33 }); 34 35 // CLOSE MODAL (X button) 36 $(document).on('click', '#partnersocialmodal .close', function () { 37 $modal.fadeOut(); 38 $('body').removeClass('scroll-hidden'); 39 }); 40 41});
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.