1 jQuery(document).ready(function($) { 2 if($('i')!=='undefined'){ 3 $('i').tooltip(); 4 } 5 6 if($('#myCarousel')!=='undefined'){ 7 $('#myCarousel').carousel({ 8 interval: 0 9 }); 10 } 11 12 13 //Handles the carousel thumbnails 14 $('[id^=carousel-selector-]').click(function () { 15 var id_selector = $(this).attr("id"); 16 try { 17 var id = /-(\d+)$/.exec(id_selector)[1]; 18 console.log(id_selector, id); 19 jQuery('#myCarousel').carousel(parseInt(id)); 20 $('.carousel-inner .item').each(function(index){ 21 $(this).removeClass('active'); 22 23 });$('.item[data-slide-number="'+id+'"]').attr('class','item active'); 24 } catch (e) { 25 console.log('Regex failed!', e); 26 } 27 }); 28 29 // When the carousel slides, auto update the text 30 $('#myCarousel').on('slide.bs.carousel', function (e) { 31 var id = $('.item.active').data('slide-number'); 32 $('#carousel-text').html($('#slide-content-'+id).html()); 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.