1jQuery(document).ready(function() { 2 $ = jQuery; 3 4 // Get the modal 5 var modal = document.getElementById('modal'); 6 7 // Get the image and insert it inside the modal - use its "alt" text as a caption 8 var modalContent = document.getElementById("modal_content"); 9 10 $('figure').click(function(event) { 11 12 13 var $figure = $(this); 14 15 /* @TG: Kill the modal and open the href if the element has a class of no-modal */ 16 17 18 if($figure.find('img').hasClass('no-modal')){ 19 window.open($figure.find('img').attr('src')); 20 return; 21 } 22 23 $('body').addClass('modal-open'); 24 25 $('#modal_content').html($figure.find('img')[0].outerHTML); 26 modal.style.display = "block"; 27 }); 28 29 // When the user clicks on <span> (x), close the modal 30 $('.close').click(function() { 31 modal.style.display = "none"; 32 $('body').removeClass('modal-open'); 33 }); 34});
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.