1$('.content-slider').bxSlider({ 2 minSlides:1, 3 maxSlides:4, 4 slideWidth:205, 5 slideMargin:0, 6 pager:false 7}); 8$('.blog-slider').bxSlider({ 9 minSlides:1, 10 maxSlides:2, 11 slideWidth:408, 12 slideMargin:0, 13 pager:false 14}); 15 16/* tab */ 17 18$('.tab-btn').click(function(){ 19 var t = $(this); 20 t.closest('.tab-wrapp').find('.tab-btn, .tab-block').removeClass('active'); 21 t.addClass('active'); 22 $(t.attr('href')).addClass('active'); 23 return false; 24}) 25 26/* scroll */ 27 28$('.to-top').bind('click',function(){ 29 var t = $(this); 30 $('html, body').stop().animate({ 31 scrollTop: $(t.attr('href')).offset().top 32 }, 1000); 33 return false; 34}); 35 36/* content */ 37 38var contentPosition = function(){ 39 var top = $('.page-content-top'), 40 bottom = $('.page-content-bottom'), 41 topHeight = top.height(), 42 bottomHeight = bottom.height(), 43 barHeight = $('.sidebar').height(), 44 wWidth = $(window).width(), 45 marg; 46 47 if(topHeight + bottomHeight < barHeight && wWidth > 991){ 48 marg = barHeight - (topHeight + bottomHeight) - 20; 49 bottom.css('padding-top',marg + 'px'); 50 }else{ 51 bottom.css('padding-top',0); 52 } 53 bottom.css('visibility','visible'); 54}; 55 56$(window).load(function(){ 57 contentPosition(); 58 if($('#fb-root').length>0){ 59 setInterval(contentPosition,20); 60 } 61}) 62$(window).resize(function(){ 63 setTimeout(contentPosition,20); 64}) 65 66/* select */ 67 68$('.slct').click(function(){ 69 var t = $(this); 70 $('.slct').not(t).removeClass('active').parent().find('.slct-list').slideUp(50); 71 if(t.hasClass('active')){ 72 t.removeClass('active').parent().find('.slct-list').slideToggle(50); 73 }else{ 74 t.addClass('active').parent().find('.slct-list').slideToggle(50); 75 } 76 return false; 77}) 78$('.slct-list li').click(function(){ 79 var t = $(this), 80 val = t.text(), 81 html = t.html(); 82 t.closest('.select').find('.slct').html(html).removeClass('active'); 83 t.parent().slideToggle(50).parent().find('input').val(val); 84}) 85$(document).click(function() { 86 $('.slct').removeClass('active').parent().find('.slct-list').slideUp(50); 87}); 88 89function scroll_top() {//СкÑолинг ÑÑÑаниÑÑ Ðº ÑлеменÑÑ 90 91 document.getElementById('vhod').style.display=''; 92 93 if(document.querySelector('#vhod')) { 94 var destination = jQuery('#vhod').offset().top; 95 jQuery("html,body").animate({scrollTop: destination-40}, 100); 96 jQuery('#vhod').css({'border':'2px solid red'}); 97 } 98 99}
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.