1jQuery(function($) { 2 var left_indent = parseInt($('#schedule-slider').css('left')); 3 var block_width = $('.game-block').outerWidth(); 4 var slider_width = $('#schedule-slider').outerWidth(); 5 var left_stop = 0; 6 var view_width = $('.gs-slider-area').outerWidth(); 7 var nbr_blocks = Math.floor( view_width/block_width ); 8 var slide_distance = (nbr_blocks-1)*block_width; 9 //var right_stop = -slider_width + slide_distance; 10 //10 to acccount for extra width of slider 11 var right_stop = -slider_width + nbr_blocks*block_width+10; 12 13 $('#gs-slider-right-arrow').click(function(){ 14 15 left_indent = Math.max( left_indent-slide_distance, right_stop ); 16 17 $('#schedule-slider').css( {'left' : left_indent } ); 18 19 }); 20 21 22 $('#gs-slider-left-arrow').click(function(){ 23 24 //alert( 'BEFORE: left_indent= ' + left_indent + ' /slide_distance= ' + slide_distance + ' /' ); 25 26 left_indent = Math.min( left_indent+slide_distance, left_stop ); 27 28 $('#schedule-slider').css( {'left' : left_indent } ); 29 30 //alert( 'AFTER: left_indent= ' + left_indent + ' /slide_distance= ' + slide_distance + ' /' ); 31 32 }); 33});
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.