1$(function(){ 2 //parallax 3 var nDefPos = -128; 4 $(window).scroll(function(){ 5 if(window.screen.width > 480){ 6 $("section#index_main").css("background-position","center "+ (nDefPos + ($(this).scrollTop()/1.5)) + "px"); 7 } 8 }); 9 //dealers list 10 var nNowList = 0; 11 function xChangeLists(nNum){ 12 $(".index_dealersList:eq("+nNowList+")").fadeOut(300,function(){ 13 nNowList = nNum 14 $(".index_dealersList:eq("+nNowList+")").fadeIn(300); 15 }); 16 } 17 $("#index_dealersArea select").change(function(e){ 18 //alert($(this).val()) 19 xChangeLists($(this).val()); 20 }); 21 $(".index_dealersList:eq(0)").show(); 22 //smooth scroll 23 $('a[href^=#]').click(function(e) { 24 var sHref = $(this).attr("href") 25 var sTarget = $(sHref == "#" || sHref== "" ? 'html':sHref); 26 var nPosition = sTarget.offset().top; 27 $("body,html").animate({ 28 scrollTop:nPosition 29 },500); 30 return false; 31 }); 32});
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.