1$(document).ready(function () { 2 3var url_my = location.protocol + "//" + location.hostname; 4$("a[href^='http://']").not("[href^='"+url_my+"']") 5.attr("target","_blank"); 6$("a[href^='https://']").not("[href^='"+url_my+"']") 7.attr("target","_blank"); 8 9 $('[data-fancybox="gallery"]').fancybox({ 10 thumbs : { 11 autoStart : true 12 } 13 }); 14 15 $('.partner_slider').owlCarousel({ 16 loop: true, 17 margin: 10, 18 items: 4, 19 slideBy:4, 20 smartSpeed: 500, 21 responsiveClass: true, 22 responsive:{ 23 0:{ 24 items: 1, 25 nav: true 26 }, 27 460:{ 28 items: 2, 29 nav: true, 30 }, 31 580:{ 32 items: 3, 33 nav: true, 34 }, 35 700:{ 36 items: 4, 37 nav: true, 38 }, 39 900:{ 40 items: 5, 41 nav: true, 42 }, 43 1100:{ 44 items: 6, 45 nav: true, 46 } 47 } 48 }); 49 50 $('.aphorism_slide').owlCarousel({ 51 loop: true, 52 items: 1, 53 autoplay:true, 54 autoplayTimeout:3500, 55 smartSpeed: 1500, 56 autoplayHoverPause:true 57 }); 58 $('.about_slider').owlCarousel({ 59 loop: true, 60 margin: 30, 61 responsiveClass: true, 62 responsive:{ 63 0:{ 64 items: 1, 65 nav: true 66 }, 67 420:{ 68 items: 1, 69 nav: true, 70 margin: 15, 71 }, 72 680:{ 73 items: 2, 74 nav: true, 75 margin: 15, 76 }, 77 1100:{ 78 items: 2, 79 nav: true, 80 } 81 } 82 }); 83 84 $('.about_slider2').owlCarousel({ 85 loop: true, 86 margin: 30, 87 responsiveClass: true, 88 responsive:{ 89 0:{ 90 items: 2, 91 nav: true 92 }, 93 420:{ 94 items: 2, 95 nav: true, 96 margin: 15, 97 }, 98 680:{ 99 items: 4, 100 nav: true, 101 margin: 15, 102 }, 103 1100:{ 104 items: 4, 105 nav: true, 106 } 107 } 108 }); 109 110 $('.slide1').owlCarousel({ 111 loop: true, 112 margin: 0, 113 items: 1, 114 }); 115 $('.slide2').owlCarousel({ 116 loop: true, 117 margin: 0, 118 items: 1, 119 }); 120 121 $(window).scroll(function() { 122 var button = $('#back-to-top'); 123 var scrollPosition = $(window).scrollTop(); 124 if (scrollPosition < 800) { 125 button.css('opacity','0'); 126 } else { 127 button.css("opacity",'1'); 128 } 129 }); 130 $(function () { 131 $('<a id="back-to-top"></a>') 132 .click(function () { 133 $('html,body').animate({ 134 scrollTop: 0 135 }, 1200); 136 return false; 137 }) 138 .appendTo($('body')); 139 }); 140 141 $('.menu_open_btn').click(function (e) { 142 e.preventDefault(); 143 $(this).toggleClass('active'); 144 $(this).parent('.menu_block').find('.menu').stop().slideToggle(); 145 }); 146/* 147 $('.left_menu_item a').click(function (e) { 148 e.preventDefault(e); 149 $(this).parent('.left_menu_item').find('.left_podmenu').stop().slideToggle(); 150 }); 151*/ 152 /*Tab*/ 153 $('.schame_1_tab .tab_btn').click(function() { 154 var tab_id=$(this).attr('id'); 155 tabClick(tab_id) 156 }); 157 function tabClick(tab_id) { 158 if (tab_id != $('.schame_1_tab .tab_btn.active').attr('id') ) { 159 $('.schame_1_tab .tab_btn').removeClass('active'); 160 $('#'+tab_id).addClass('active'); 161 $('.schame_1_tab div').removeClass('active'); 162 $('#schame_'+ tab_id).addClass('active'); 163 } 164 } 165 166 $('.schame_2_tab .tab_btn').click(function() { 167 var tas_id=$(this).attr('id'); 168 tasClick(tas_id) 169 }); 170 function tasClick(tas_id) { 171 if (tas_id != $('.schame_2_tab .tab_btn.active').attr('id') ) { 172 $('.schame_2_tab .tab_btn').removeClass('active'); 173 $('#'+tas_id).addClass('active'); 174 $('.schame_2_tab div').removeClass('active'); 175 $('#schams_'+ tas_id).addClass('active'); 176 } 177 } 178 179 $('.schame_navbar .fl_btn1').click(function (e) { 180 e.preventDefault(); 181 $('.schame_navbar a').removeClass('active'); 182 $(this).addClass('active'); 183 $('.schame_2_tab').hide(); 184 $('.schame_1_tab').show(); 185 }); 186 $('.schame_navbar .fl_btn2').click(function (e) { 187 e.preventDefault(); 188 $('.schame_navbar a').removeClass('active'); 189 $(this).addClass('active'); 190 $('.schame_1_tab').hide(); 191 $('.schame_2_tab').show(); 192 }); 193 194 195 196 if($("div").is("#map")){ 197 ymaps.ready ( 198 function () { 199 200 var map = new ymaps.Map ( 201 'map' , { 202 center : [57.000774, 40.978978] , 203 zoom : 15 , 204 controls : [ "center" ] 205 } 206 ); 207 208 209 /*var place1 = ymaps.templateLayoutFactory.createClass ( '<div class="map_number"><img src="img/map_loc.png"></div>' );*/ 210 var Placemark1 = new ymaps.Placemark ( 211 [57.000774, 40.978978] , { 212 hintContent : '' 213 } , { 214 preset: 'twirl#redIcon', 215 iconCaption: '' 216 } 217 ); 218 219 map.geoObjects 220 .add ( Placemark1 ); 221 } 222 ); 223 } 224 225 if($("div").is("#map1")){ 226 ymaps.ready ( 227 function () { 228 229 var map1 = new ymaps.Map ( 230 'map1' , { 231 center : [57.000774, 40.978978] , 232 zoom : 15 , 233 controls : [ "center" ] 234 } 235 ); 236 237 var Placemark2 = new ymaps.Placemark ( 238 [57.000774, 40.978978] , { 239 hintContent : '' 240 } , { 241 preset: 'twirl#redIcon', 242 iconCaption: '' 243 } 244 ); 245 246 map1.geoObjects 247 .add ( Placemark2 ); 248 } 249 ); 250 } 251 252});
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.