1;(function($) { 2 if($('body').hasClass('fl-disable-side-nav') == false) { 3 var wrapper = $('<div />').addClass('fl-side-nav-wrapper'), 4 nav = $('<ul />').addClass('fl-side-nav').appendTo(wrapper), 5 $rows = $('[data-side-nav]'), 6 waypoints; 7 8 if ($rows.length > 0) { 9 function updateWaypoint(direction) { 10 var id = $(this).attr('id'); 11 12 $('.fl-side-nav-item', wrapper).removeClass('active'); 13 $('.fl-side-nav-link[href="#' + id + '"]', wrapper).parents('.fl-side-nav-item').addClass('active'); 14 }; 15 16 waypoints = $rows.waypoint({ 17 handler: updateWaypoint, 18 offset: 25 19 }); 20 21 $rows.each(function () { 22 var item = $('<li />').addClass('fl-side-nav-item').appendTo(nav), 23 link = $('<a />').addClass('fl-side-nav-link') 24 .attr('href', '#' + $(this).attr('id')) 25 .data('target', $(this).attr('id')) 26 .text($(this).data('side-nav')) 27 .appendTo(item); 28 29 if ($(this).data('side-nav').length <= 0) { 30 link.addClass('no-text'); 31 } 32 }); 33 34 wrapper.appendTo($('body')); 35 } 36 } 37 38}(jQuery));
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.