1document.addEventListener('DOMContentLoaded', function() { 2 // Check if Masonry is loaded, if not load it from CDN 3 if (typeof Masonry === 'undefined') { 4 const script = document.createElement('script'); 5 script.src = 'https://unpkg.com/masonry-layout@4/dist/masonry.pkgd.min.js'; 6 script.onload = function() { 7 initializeMasonry(); 8 }; 9 document.head.appendChild(script); 10 } else { 11 initializeMasonry(); 12 } 13 14 function initializeMasonry() { 15 const grids = document.querySelectorAll('.grid-list'); 16 grids.forEach(function(grid) { 17 new Masonry(grid, { 18 itemSelector: '.grid-item', 19 columnWidth: '.grid-sizer', 20 gutter: '.gutter-sizer', 21 percentPosition: true 22 }); 23 }); 24 } 25});
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.