1 $(document).ready(function () { 2 3 minimHeight = $('.pos_relative li').length * 30 + 700; 4 5 $('#center_s_sidebarom').css('min-height', minimHeight); 6 7 8 var url = document.location.toString(); 9 10 11var url2 = url.split(["/"],[url.length]); 12lastIndexUrl = url2[url2.length - 2]; 13//lastIndexUrlBezHtml = lastIndexUrl.substr(0,lastIndexUrl.length - 5); 14 var urlFirstPage = url2[0] + '/' + url2[1] + '/' +url2[2] + '/' +url2[3] + '/'; 15 16 $('#tel').click(function (){ 17 alert(urlFirstPage); 18 }); 19 20 21 22 23//if(lastIndexUrl.indexOf('#') != -1) { 24 /// lastIndexUrlbezResh = lastIndexUrl.split(["#"],[lastIndexUrl.length])[0]; 25 // lastIndexUrlBezHtml = lastIndexUrlbezResh.substr(0,lastIndexUrlbezResh.length - 5); 26 // } 27 28if (url == "http://lingvodom.ru/" || url == "http://lingvodom.ru/index.html") 29{ $("#verhnee_pravoe_menu li:first").addClass('current_top_li'); } 30 else { 31 $(".sf-menu li a[href='"+urlFirstPage+"']").parent().addClass('current_li'); 32 } 33 34 35 36$.each($("#verhnee_pravoe_menu li a:not(:first)"), function() { 37 var Href = $(this).attr('href').split(["/"],[$(this).attr('href').length]); 38 lastHref = Href[Href.length - 2]; 39 if ( lastHref == lastIndexUrl ) 40 { $(this).parent().addClass('current_top_li'); 41 $(".sf-menu li a[href='/"+urlFirstPage+"']").parent().removeClass('current_li');} 42 }); 43 44 45 46 47 48 49//$.each($(".sf-menu li a"), function() { 50 // if ( $(this).attr('href').split(["/"])[1] == lastIndexUrl ) 51 // { $(this).parent().addClass('current_li'); } }); 52 53 54 55 56//$.each( $("#sidebar li a"), function() { 57 // if ( $(this).attr('href').split(["/"])[1] == lastIndexUrl+'-vloj2' ) 58 // { $(this).addClass('current_a_sidebar current_a_sidebar_vloj2'); 59 // CurrentLiSf = $(this).parent().parent().parent().children().attr('class'); 60 // $(".sf-menu li a."+CurrentLiSf).parent().parent().parent().addClass('current_li'); 61 //} 62 //}); 63 64 65}); 66 67
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.