1// setup gallery lightbox 2// uses colorbox or swipebox depending on screen size 3jQuery(document).ready(function($) { 4 if($(window).width() <= 768) { 5 $('.gallery .thumbnail').swipebox(); 6 } else { 7 $('.gallery-caption').colorbox({ 8 rel: 'gallery-caption', 9 href: function() { return $(this).attr('data-src'); }, 10 title: function() { 11 var _this = $(this); 12 return _this.attr('data-title'); 13 }, 14 close: '<i class="fa fa-times" aria-hidden="true"></i><span class="sr-only">close</span>', 15 previous: '<i class="fa fa-caret-left" aria-hidden="true"></i><span class="sr-only">previous</span>', 16 next: '<i class="fa fa-caret-right" aria-hidden="true"></i><span class="sr-only">next</span>', 17 maxWidth: '90%', 18 maxHeight: '90%' 19 }); 20 } 21 22 // virtual tours lightbox 23 $('.virtual-tour-link').colorbox({ 24 iframe: true, 25 close: '<i class="fa fa-times" aria-hidden="true"></i><span class="sr-only">close</span>', 26 previous: '<i class="fa fa-caret-left" aria-hidden="true"></i><span class="sr-only">previous</span>', 27 next: '<i class="fa fa-caret-right" aria-hidden="true"></i><span class="sr-only">next</span>', 28 innerWidth: '90%', 29 innerHeight: '90%', 30 maxWidth: '90%', 31 maxHeight: '90%' 32 }); 33 34 // add text in buttons to please WAVE checker 35 $('#cboxPrevious').text('previous'); 36 $('#cboxNext').text('next'); 37 $('#cboxSlideshow').text('slideshow'); 38});
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.