1$(document).ready(function () { 2 3// if ($('.old-cars').length > 0 || $('.from').length > 0) $('html, body').animate({scrollTop:$('h1').offset().top - 30}, 'slow'); 4 5 //Go to the top of the slider for brands pages 6 // if ($('.scroll_to_banners').length > 0) global_scrollToBlock('#main-banners', '6', 0); 7 8 $('select').selectBox({ 9 mobile: true 10 }); 11 12/* $('.cars_list .item .btn-credit').live("click", function (event) { 13 (event.preventDefault) ? event.preventDefault() : event.returnValue = false; 14 $(this).closest('div').find('form').submit(); 15 return false; 16 }); 17 18 $('.cars_list.old-cars .btn').live("click", function () { 19 car_item = $(this).closest('.item'); 20 $('#credit-modal #car_info').val(car_item.find('.car-info').text()); 21 $('#credit-modal #price').val(car_item.find('.price').text()); 22 $('#credit-modal .modal-text').show(); 23 $('#credit-modal #callback-button').show(); 24 $('#credit-modal .modal-success').hide(); 25 return false; 26 }); 27 28 $('.model-list .col-sm-3 .item').live("click", function () { 29 window.location.href = $(this).find('.model a').attr('href'); 30 });*/ 31 32 $(".preview").each(function(){ $(this).attr('href',$(this).attr('src')); }); 33 34 $(".preview").fancybox({ 35 cyclic: false, 36 showNavArrows: false, 37 width: '70%', 38 height: '70%', 39 transitionIn: 'elastic', 40 transitionOut: 'elastic', 41 overlayOpacity: '0.8' 42 }); 43 44 //ÐÑобÑажение аÑдио-плееÑа 45 if ($('.player_controls').length > 0) { 46 47 $(".player_controls").prop('volume', 0.5); 48 49 var cookieName = 'AMHOUSE_AUDIO_MUTED1'; 50 51 $('.header_player').css("display", "block"); 52 53 $('.player .pause').click(function(){ 54 $(this).hide(); 55 $('.player .play').css("display", "inline-block"); 56 $(".player_controls").trigger('pause'); 57 }); 58 59 $('.player .play').click(function(){ 60 $(this).hide(); 61 $('.player .pause').css("display", "inline-block"); 62 $(".player_controls").trigger('play'); 63 }); 64 65 $('.player .nosound').click(function(){ 66 $(this).hide(); 67 $('.player .sound').css("display", "inline-block"); 68 $(".player_controls").prop("muted", false); 69 $.cookie(cookieName, null, {path:'/'}); 70 }); 71 72 $('.player .sound').click(function(){ 73 $(this).hide(); 74 $('.player .nosound').css("display", "inline-block"); 75 $(".player_controls").prop("muted", true); 76 $.cookie(cookieName, 'muted', {path:'/'}); 77 }); 78 79 if ($.cookie(cookieName) === 'muted') { 80 $('.player .sound').click(); 81 }; 82 83 } 84 85}); 86 87function global_scrollToBlock(block, back, spd) { 88 var speed = spd >= 0 ? spd : 1000; 89 90 $("html, body").animate({scrollTop: $(block).offset().top - back + "px"}, speed); 91} 92 93//ÐагÑÑзка новой ÑÑÑаниÑÑ 94function global_load_new_page(loadUrl, loadElement, async_value, action_button) { 95 96 if (!loadUrl) loadUrl = $('.pager').find('a:eq('+($('.pager a').length-2)+')').attr('href'); 97 98 //if (!loadElement) loadElement = '.catalog_list .catalog_list_wrap'; 99 100 if (!async_value) async_value = 'true'; 101 102 /*$('.catalog_list_full .preloader').show(); 103 $('.sections_list .sections_wrap_disabled').show();*/ 104 105 if (action_button) $(action_button).hide(); 106 107 //ÐбновлÑем блок Ñ Ð²Ñводом ÑезÑлÑÑаÑов 108 if (loadUrl) { 109 110 $.ajax({ 111 url: loadUrl, 112 type: "GET", 113 data: { 114 AJAX: 'Y' 115 } 116 ,async: async_value 117 }).done(function (html) { 118 119 $(loadElement).append(html); 120 121 if (parseInt($(loadElement).attr('total_pages')) != parseInt($(loadElement).find('.page_content').last().attr('current_page')))
122 { if (action_button) $(action_button).show(); }; 123 124 global_free_process_filter(action_button); 125 126 }); 127 128 } 129 else 130 { 131 global_free_process_filter(); 132 }; 133 134} 135 136function global_free_process_filter() { 137 138 /*$('.catalog_list_full .preloader').hide(); 139 $('.sections_list .sections_wrap_disabled').hide();*/ 140 filter_reload_process = false; 141 busy = false; 142 143}
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.