1var fTouch = ('ontouchstart' in document); 2 3function xBaseScroll(sTargetSelector, nOffset) { 4 var nSpeed = 400; 5 var nPos = $(sTargetSelector).offset().top; 6 $('body,html').animate({ 7 scrollTop: nPos + nOffset 8 }, nSpeed, 'swing'); 9} 10 11$(function () { 12 $('a[href^="#"]').click(function () { 13 var speed = 500; 14 var href = $(this).attr('href'); 15 var target = $(href === '#' || href === '' ? 'html' : href); 16 if (!target.length) { 17 return true; 18 } 19 var position = target.offset().top; 20 $('html, body').animate({ scrollTop: position }, speed, 'swing'); 21 return false; 22 }); 23}); 24 25$(window).on('load resize', function () { 26 var x = $(window).width(); 27 var y = 940; 28 if (x <= y) { 29 $('body').removeClass('pcmode').addClass('spmode'); 30 } else { 31 $('body').addClass('pcmode').removeClass('spmode'); 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.