1 2import { isMobile } from './../helpers.js' 3 4const productImages = '#gallery img' 5const productImagesModal = '#gallery_preview img' 6const imageModal = '#productImagesModal' 7 8const $document = $(document) 9const $productImages = $(productImages) 10 11$document.on('click', productImages, function () { 12 if (isMobile()) { 13 $(imageModal).modal('show'); 14 $(imageModal).on('shown.bs.modal', () => { 15 $(imageModal + ' img[data-index="' + $(this).data('index') + '"]')[0].scrollIntoView({ 16 behavior: 'smooth', 17 block: 'center' 18 }); 19 }); 20 } 21});
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.