1(function ($) { 2 $(document).ready(function(){ 3 4 $(window).scroll(function() { 5 // if ($(window).scrollTop() >= 76) { 6 // $('body').addClass('fixed_header').addClass('btn_to_top_show'); 7 // } else { 8 // $('body').removeClass('fixed_header').removeClass('btn_to_top_show'); 9 // } 10 11 if ($(window).scrollTop() >= 76) { 12 $('body').addClass('btn_to_top_show'); 13 } else { 14 $('body').removeClass('btn_to_top_show'); 15 } 16 }); 17 18 $(".btn_to_top a").click(function() { 19 if ($(window).scrollTop() > 0) { 20 $("html, body").animate({ 21 scrollTop: 70 22 }, 0); 23 $("html, body").animate({ 24 scrollTop: 0 25 }, 500); 26 return false; 27 } 28 }); 29 // Создаем две пеÑееннÑе Ñ Ð½Ð°Ð·Ð²Ð°Ð½Ð¸Ñми меÑÑÑев и дней недели в маÑÑиве 30 var monthNames = [ "ЯнваÑÑ", "ФевÑалÑ", "ÐаÑÑа", "ÐпÑелÑ", "ÐаÑ", "ÐÑнÑ", "ÐÑлÑ", "ÐвгÑÑÑа", "СенÑÑбÑÑ", "ÐкÑÑбÑÑ", "ÐоÑбÑÑ", "ÐекабÑÑ" ]; 31 var dayNames= ["ÐоÑкÑеÑенÑе","ÐонеделÑник","ÐÑоÑник","СÑеда","ЧеÑвеÑг","ÐÑÑниÑа","СÑббоÑа"] 32 33 // Создаем обÑÐµÐºÑ newDate() 34 var newDate = new Date(); 35 // Ðзвлекаем ÑекÑÑÑÑ Ð´Ð°ÑÑ Ð¸Ð· обÑекÑа Date 36 newDate.setDate(newDate.getDate()); 37 // ÐавÑÑ Ð¾Ð´Ðµ денÑ, даÑа, меÑÑÑ Ð¸ год 38 $('#clockDate').html(dayNames[newDate.getDay()] + ", " + newDate.getDate() + ' ' + monthNames[newDate.getMonth()] + ' ' + newDate.getFullYear()); 39 40 setInterval( function() { 41 // Создаем обÑÐµÐºÑ newDate() и извлекаем ÑекÑÐ½Ð´Ñ ÑекÑÑего вÑемени 42 var seconds = new Date().getSeconds(); 43 // ÐобавлÑем наÑалÑнÑй Ð½Ð¾Ð»Ñ Ðº знаÑÐµÐ½Ð¸Ñ ÑекÑнд 44 $("#clockSec").html(( seconds < 10 ? "0" : "" ) + seconds); 45 },1000); 46 47 setInterval( function() { 48 // Создаем обÑÐµÐºÑ newDate() и извлекаем минÑÑÑ ÑекÑÑего вÑемени 49 var minutes = new Date().getMinutes(); 50 // ÐобавлÑем наÑалÑнÑй Ð½Ð¾Ð»Ñ Ðº знаÑÐµÐ½Ð¸Ñ Ð¼Ð¸Ð½ÑÑ 51 $("#clockMin").html(( minutes < 10 ? "0" : "" ) + minutes); 52 },1000); 53 54 setInterval( function() { 55 // Создаем обÑÐµÐºÑ newDate() и извлекаем ÑаÑÑ Ð¸Ð· ÑекÑÑего вÑемени 56 var hours = new Date().getHours(); 57 // ÐобавлÑем наÑалÑнÑй Ð½Ð¾Ð»Ñ Ðº знаÑÐµÐ½Ð¸Ñ ÑаÑов 58 $("#clockHours").html(( hours < 10 ? "0" : "" ) + hours); 59 }, 1000); 60 $('.menu-top li').hover( 61 function(){ $(this).find('> ul').stop(true, true).slideDown('fast'); }, 62 function(){ $(this).find('> ul').stop(true, true).hide(); } 63 ); 64 $(".fancybox").fancybox(); 65 $('.bean-slider .field-items').bxSlider({ 66 auto: true, 67 speed: 2000, 68 pause: 2000, 69 slideWidth: 120, 70 minSlides: 2, 71 maxSlides: 9, 72 moveSlides: 3, 73 pager: false, 74 }); 75 /*$(".year li").each(function () {if (this.getElementsByTagName("a")[0].href == location.href) this.className = "active";}); 76 thisYear = $(".year li .active").text(); 77 $(".year li ul li.active").remove(); 78 $(".this-year").html(thisYear); 79 80 $(".journal-category .year > li").hover( 81 function(){ 82 $(this).stop(true, true).click( function(){ 83 $("ul", this).slideDown(100); 84 }); 85 }, 86 function(){ 87 $("ul", this).stop(true, true).fadeOut(); 88 } 89 );*/ 90 function add_favorite(a){ 91 title="Ðаголок"; 92 url="http://www.site.ru"; 93 try { 94 window.external.AddFavorite(url,title) 95 } catch(e) { 96 try {
97 window.sidebar.addPanel(title,url,"") 98 } catch(e){ 99 if(typeof(opera)=="object") { 100 a.rel="sidebar"; 101 a.title=title; 102 a.url=url; 103 return true 104 } else { 105 alert('ÐажмиÑе Ctrl-D ÑÑÐ¾Ð±Ñ Ð´Ð¾Ð±Ð°Ð²Ð¸ÑÑ ÑÑÑаниÑÑ Ð² закладки') 106 } 107 } 108 } 109 return false; 110 } 111 112 $('.homepage_link').click(function(event) { 113 title="id-bedretdinov.ru"; 114 url="http://www.site.ru"; 115 try { 116 window.external.AddFavorite(url,title) 117 } catch(e) { 118 try { 119 window.sidebar.addPanel(title,url,"") 120 } catch(e){ 121 if(typeof(opera)=="object") { 122 a.rel="sidebar"; 123 a.title=title; 124 a.url=url; 125 return true 126 } else { 127 alert('ÐажмиÑе Ctrl-D ÑÑÐ¾Ð±Ñ Ð´Ð¾Ð±Ð°Ð²Ð¸ÑÑ ÑÑÑаниÑÑ Ð² закладки') 128 } 129 } 130 } 131 return false; 132 }); 133 $('.favorit_link').click(function(event) { 134 title=document.title; 135 url=document.location; 136 try { 137 window.external.AddFavorite(url,title) 138 } catch(e) { 139 try { 140 window.sidebar.addPanel(title,url,"") 141 } catch(e){ 142 if(typeof(opera)=="object") { 143 a.rel="sidebar"; 144 a.title=title; 145 a.url=url; 146 return true 147 } else { 148 alert('ÐажмиÑе Ctrl-D ÑÑÐ¾Ð±Ñ Ð´Ð¾Ð±Ð°Ð²Ð¸ÑÑ ÑÑÑаниÑÑ Ð² закладки') 149 } 150 } 151 } 152 return false; 153 }); 154 $('.view-id-front.view-display-id-page > .view-content').bxSlider({ 155 mode: "fade", 156 auto: true, 157 pager: false, 158 controls: false, 159 }); 160 161 $('.slider-bottom').bxSlider({ 162 auto: true, 163 speed: 2000, 164 pause: 2000, 165 slideWidth: 120, 166 minSlides: 2, 167 maxSlides: 9, 168 moveSlides: 3, 169 pager: false, 170 }); 171 $('.view-header .select-year').click(function(event) { 172 $(this).next().show(); 173 }); 174 $('.view-header .year').mouseleave(function(event) { 175 $(this).find('ul').hide(); 176 }); 177 $('#edit-year option[value="All"]').text('ÐÑе'); 178 $('.this-year').text($('#edit-year option[selected="selected"]').text()); 179 180 181 $('#edit-year option').each(function(index, el) { 182 $('.year ul').append('<li><a href="?year='+$(el).val()+'">'+$(el).text()+'</a></li>'); 183 }); 184 $('.back').click(function(event) { 185 history.back(); 186 }); 187 188 var secondValYear = $(".view-archive-new .view-filters .form-item-year select option:nth-child(2)").attr('value'); 189 // alert(secondValYear); 190 $(".view-archive-new .view-filters .form-item-year option").val(secondValYear).change(); 191 192 }); 193})(jQuery);
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.