1$( document ).ready(function() { 2 3 $('.obgalel IMG').on( "click", function( event ) { 4 5 let ref = $(this).attr('ref'); 6 $('.obgalel IMG').removeClass('activeimg'); 7 $(this).addClass('activeimg'); 8 9 $('.obgalmain IMG').attr('src', ref); 10 }); 11 12 $('.nextg').on( "click", function( event ) { 13 $('.obgalel IMG').removeClass('activeimg'); 14 15 let next = $(this).attr('ref'); 16 let src = $('IMG[index="' + next + '"]').attr('ref'); 17 $('.obgalmain IMG').attr('src', src); 18 19 $('IMG[index="' + next + '"]').addClass('activeimg'); 20 21 let lastindex = $('.obgalmain').attr('lastindex'); 22 23 if(next == lastindex){ 24 $('.nextg').attr('ref', '0'); 25 } 26 else { 27 next = parseInt(next); 28 next++; 29 $('.nextg').attr('ref', next); 30 } 31 32 }); 33 34 35 $('.prevg').on( "click", function( event ) { 36 $('.obgalel IMG').removeClass('activeimg'); 37 38 let prev = $(this).attr('ref'); 39 let src = $('IMG[index="' + prev + '"]').attr('ref'); 40 41 $('IMG[index="' + prev + '"]').addClass('activeimg'); 42 43 $('.obgalmain IMG').attr('src', src); 44 let lastindex = $('.obgalmain').attr('lastindex'); 45 46 prev = parseInt(prev); 47 48 if(prev == 0){ 49 $('.prevg').attr('ref', lastindex); 50 } 51 else { 52 prev--; 53 $('.prevg').attr('ref', prev); 54 } 55 56 }); 57 58 59 60 61});
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.