1$(document).ready(function(){ 2 3 $("div.formline.op253, div.formline.op254, div.formline.op256").hide(); 4 5 6 $("#spec253x").change(function() { 7 if(this.checked) { 8 $("div.formline.op253").show(); 9 } else { 10 $("div.formline.op253").hide(); 11 } 12}); 13 14 $("#spec254x").change(function() { 15 if(this.checked) { 16 $("div.formline.op254").show(); 17 } else { 18 $("div.formline.op254").hide(); 19 } 20}); 21 22 $("#spec256x").change(function() { 23 if(this.checked) { 24 $("div.formline.op256").show(); 25 } else { 26 $("div.formline.op256").hide(); 27 } 28}); 29 30 31 32 /* $( function() { 33 $( "#accordion" ).accordion({ 34 active: false, 35 collapsible: true, 36 heightStyle: "content" 37 }); 38 } ); 39 40 $("#mainwrap").hide().addClass("loaded").fadeIn(1000); 41 $('.fancybox').fancybox(); 42 43 $("a.inlineVideo").fancybox({ 44 'hideOnContentClick': true 45 }); 46 47*/ 48 49 $(document).scroll(function() { 50 var p = $( document ).scrollTop(); 51 52 if (p > 95) { 53 $("#mainwrap").addClass("fixi"); 54 } else { 55 $("#mainwrap").removeClass("fixi"); 56 } 57 58 59 }); 60 61 62 63 $( "#pokor, #dekla, #zako" ).click(function() { 64 var url = $( this ).data( "url" ); 65 window.location.href = url; 66 return false; 67 }); 68 69 70 71 72 $("#topmenu ul.menu_collapsible span, #topmenu ul.menu_collapsible li, #topmenu-fixed ul.menu_collapsible span, #topmenu-fixed ul.menu_collapsible li, div.newselem, div.img-insti").hover( 73 function () { 74 $(this).addClass("hover"); 75 }, 76 function () { 77 $(this).removeClass("hover"); 78 } 79 ); 80 81 $( "div.extra-advert div.text-advm p" ).each(function() { 82 var str = $(this).text(); 83 if (str.length > 320) { 84 var ministr = str.substring(0, 320); 85 $(this).html(ministr+"..."); 86 } 87 }); 88 89 $( "#fiform div.formline p.subhead" ).click(function() { 90 $(this).siblings("div.collapse").toggle("slow"); 91 $(this).parent().siblings().find("div.collapse").hide("slow"); 92 return false; 93 }); 94 95 96 $( "div.after" ).click(function() { 97 $("#search-ajax-results-wrap").html(""); 98 }); 99 100 $( "#topmenu-mob li.level1:has(ul.acitem) > a, #topmenu-mob li.level1:has(ul.acitem) > span" ).click(function() { 101 $(this).siblings().toggle("slow"); 102 return false; 103 }); 104 105 $( "#mobmenu-icon" ).click(function() { 106 $("html, body").animate({scrollTop: 0}, 500); 107 if ( $( "#topmenu-mob" ).is( ".show" ) ) { 108 $( "#topmenu-mob" ).removeClass("show").addClass("hide").hide("slow"); 109 } else { 110 $( "#topmenu-mob" ).removeClass("hide").addClass("show").show("slow"); 111 } 112 }); 113 114 $( "#mobmenu2-icon" ).click(function() { 115 $("html, body").animate({scrollTop: 0}, 500); 116 if ( $( "div.icons-block" ).is( ".show" ) ) { 117 $( "div.icons-block" ).removeClass("show").addClass("hide").hide("slow"); 118 } else { 119 $( "div.icons-block" ).removeClass("hide").addClass("show").show("slow"); 120 } 121 }); 122 123 124 125 126 127 128 129 130 131 /* ----------- topmenu ---------------*/ 132 133/* 134 135var timeout = 500; 136var closetimer = 0; 137 138function jsddm_close() 139{ 140jQuery("div.moduletabletopme li.lev1 ul").css("display","none"); 141 jQuery('#zad2').stop(true, true).animate({ 142opacity: 0, 143width: 0 144}, 200, function() { 145 146}); 147} 148 149function jsddm_timer() 150{ closetimer = window.setTimeout(jsddm_close, timeout);} 151 152function jsddm_canceltimer() 153{ if(closetimer) 154 { window.clearTimeout(closetimer); 155 closetimer = null;}} 156 157 158 159jQuery("div.moduletabletopme li.lev1").hover( 160 function () { 161 162 jsddm_canceltimer(); 163 jQuery(this).siblings().find("ul").css("display","none"); 164 jQuery(this).find("ul").css("display","block"); 165 166 }, 167 function () { 168 jsddm_timer(); 169 170 171 } 172 ); 173 174 175 176 177jQuery('<div id="zad2"> </div>').prependTo('div.moduletabletopme'); 178jQuery('#zad2').animate({ 179opacity: 0 180}, 1, function() { 181 182}); 183 184 185jQuery("div.moduletabletopme a.l1").hover( 186 function () { 187 var zad2width = jQuery(this).parent().width() + 10; 188 189 var p = jQuery(this).parent(); 190var position = p.position(); 191var toleft = position.left - 5; 192 193 jQuery('#zad2').stop(true, true).animate({ 194opacity: 0.6, 195left: toleft, 196width: zad2width 197}, 300, function() { 198// Animation complete. 199}); 200 201 202 }, 203 function () { 204 205 206 207 } 208 ); 209 210 211 212 213 214 */ 215 216/* ----------- end of topmenu part ----------- */ 217 218 219 220 221 222 223// ÐниÑиализиÑÑем плагин 224 $('div.advert-block').appear(); 225 $('div.news-box').appear();
226// Ðогда клаÑÑ class поÑвлÑеÑÑÑ Ð² облаÑÑи видимоÑÑи ÑкÑана ÑÑабаÑÑÐ²Ð°ÐµÑ Ð½ÑжнÑй нам код. 227 228 $('div.advert-block').on('appear', function(event, $all_appeared_elements) { 229 // ÑÑÑ Ð²ÑполниÑÑÑ ÐºÐ¾Ð´ когда поÑвиÑÑÑ ÑÐ»ÐµÐ¼ÐµÐ½Ñ Ð² облаÑÑÑ Ð²Ð¸Ð´Ð¸Ð¼Ð¾ÑÑи 230 $('div.advert-block').addClass("show"); 231 }); 232 $('div.news-box.classic').on('appear', function(event, $all_appeared_elements) { 233 // ÑÑÑ Ð²ÑполниÑÑÑ ÐºÐ¾Ð´ когда поÑвиÑÑÑ ÑÐ»ÐµÐ¼ÐµÐ½Ñ Ð² облаÑÑÑ Ð²Ð¸Ð´Ð¸Ð¼Ð¾ÑÑи 234 $('div.news-box.classic').addClass("show"); 235 }); 236 $('div.news-box.adv').on('appear', function(event, $all_appeared_elements) { 237 // ÑÑÑ Ð²ÑполниÑÑÑ ÐºÐ¾Ð´ когда поÑвиÑÑÑ ÑÐ»ÐµÐ¼ÐµÐ½Ñ Ð² облаÑÑÑ Ð²Ð¸Ð´Ð¸Ð¼Ð¾ÑÑи 238 $('div.news-box.adv').addClass("show"); 239 }); 240 $('div.news-box.anzah').on('appear', function(event, $all_appeared_elements) { 241 // ÑÑÑ Ð²ÑполниÑÑÑ ÐºÐ¾Ð´ когда поÑвиÑÑÑ ÑÐ»ÐµÐ¼ÐµÐ½Ñ Ð² облаÑÑÑ Ð²Ð¸Ð´Ð¸Ð¼Ð¾ÑÑи 242 $('div.news-box.anzah').addClass("show"); 243 }); 244 $('div.news-box.procenters').on('appear', function(event, $all_appeared_elements) { 245 // ÑÑÑ Ð²ÑполниÑÑÑ ÐºÐ¾Ð´ когда поÑвиÑÑÑ ÑÐ»ÐµÐ¼ÐµÐ½Ñ Ð² облаÑÑÑ Ð²Ð¸Ð´Ð¸Ð¼Ð¾ÑÑи 246 $('div.news-box.procenters').addClass("show"); 247 }); 248 249 250 251 252 253 254 // SimpleSearch ajax 255 // Ðнопка 256 $(".search").submit(function () { 257 // ÑаÑкоменÑиÑоваÑÑ ÐµÑли нÑжна кнопка 258 // $("#search-ajax-results-wrap").load("/search-result.html/ .search-ajax-results",$(".search").serialize()).slideDown("fast"); 259 return false; 260 }); 261 // Ðивой поиÑк 262 $("#searchId").keyup(function() { 263 if(this.value.length > 2) { // ÐолÑзоваÑÐµÐ»Ñ Ð½Ð°Ð±Ð¸ÑÐ°ÐµÑ Ð±Ð¾Ð»ÑÑе 2 Ñимволов в ÑÑÑоке поиÑка 264 // ÑкÑÑваеÑ/оÑобÑÐ°Ð¶Ð°ÐµÑ Ñ ÑезÑлÑÑаÑÑ Ð·Ð° пÑеделами окна 265 $(document).click(function(event){ // ÑкÑÑваем 266 if ($(event.target).closest(".search-ajax-results-wrap").length) return; 267 $(".search-ajax-results-wrap").slideUp("fast"); 268 //event.stopPropagation(); 269 }); 270 $('#search').click( function() { // оÑобÑажаем 271 $(".search-ajax-results-wrap").slideDown("fast"); 272 return false; 273 }); 274 // ajax запÑÐ¾Ñ Ð·Ð°Ð³ÑÑзка ÑезÑлÑÑаÑов поиÑка Ð¾Ñ ÑÑÑаниÑÑ Ð¸ показ конÑейнеÑа 275 var parsesearc = $("#search-ajax-results-wrap").load("/search-result.html/ .search-ajax-results",$(".sisea-search-form").serialize()).slideDown("fast"); 276 $("#search-ajax-results-wrap").html(parsesearc.find('.results .sisea-result')); 277 console.log(parsesearc.find('.sisea-result')); 278 } 279 else { 280 // ÐÑли набÑано менÑÑе 2 Ñимволов, ÑкÑÑÑÑ ÐºÐ¾Ð½ÑÐµÐ¹Ð½ÐµÑ (CSS display:none;) 281 $("#search-ajax-results-wrap").slideUp("fast"); 282 } 283 }); 284 285 286 /* ---------------------------- top search block -------------------------------- */ 287 var s = $('#searchform-block input'), 288 f = $('#searchform-block form'), 289 a = $('#searchform-block .after'), 290 m = $('#searchform-block h4'); 291 d = $('#searchform-block'); 292 293 s.focus(function(){ 294 if( f.hasClass('open') ) return; 295 f.addClass('in'); 296 setTimeout(function(){ 297 f.addClass('open'); 298 f.removeClass('in'); 299 }, 1300); 300 }); 301 302 d.on('click', function(e){ 303 if( d.hasClass('open') ) { 304 d.addClass('close'); 305 d.removeClass('open'); 306 } else { 307 d.addClass('open'); 308 d.removeClass('close'); 309 } 310 });
311 312 a.on('click', function(e){ 313 e.preventDefault(); 314 if( !f.hasClass('open') ) return; 315 s.val(''); 316 f.addClass('close'); 317 f.removeClass('open'); 318 setTimeout(function(){ 319 f.removeClass('close'); 320 }, 1300); 321 }); 322 323 324 325 f.submit(function(e){ 326 e.preventDefault(); 327 m.html('Thanks, high five!').addClass('show'); 328 f.addClass('explode'); 329 setTimeout(function(){ 330 s.val(''); 331 f.removeClass('explode'); 332 m.removeClass('show'); 333 }, 3000); 334 }) 335 /* ---------------------------- end of search block -------------------------------- */ 336 337 338 339 $('.slick-mob, .allnews-wrapper.mob').slick({ 340 infinite: true, 341 slidesToShow: 1, 342 slidesToScroll: 1 343 }); 344 345 346 347 $("a[href*='u/news/achievements-14-19.html']").attr( "href", "assets/media/achievements-2014-2019.pdf" ).attr("target","_blank"); 348 349 350 351 $( "#calbodylistnduu div.event-title a" ).each(function() { 352 var str = $(this).text(); 353 if (str.length > 100) { 354 var ministr = str.substring(0, 100); 355 $(this).html(ministr+"..."); 356 } 357 }); 358 359 360 361 362 363 }); 364
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.