1(function ($) { 2 var initializeBlock = function ($block) { 3 console.log("link-card init"); 4 5 // YOUR CONTENT 6 }; 7 8 // Initialize each block on page load (front end). 9 $(document).ready(function () { 10 $(".link-card-block").each(function () { 11 initializeBlock($(this)); 12 }); 13 }); 14 15 // Initialize dynamic block preview (editor). 16 if (window.acf) { 17 window.acf.addAction( 18 "render_block_preview/type=blocktype", 19 initializeBlock 20 ); 21 } 22})(jQuery);
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.