1$.fancybox.defaults.closeExisting = true; 2$.fancybox.defaults.autoFocus = false; 3$.fancybox.defaults.touch = false; 4$.fancybox.defaults.backFocus = false; 5 6function ellipsizeTextBox(selector) { 7 var objects = $(selector); 8 objects.each(function () { 9 var wordArray = this.innerHTML.split(' '); 10 while (this.scrollHeight > this.offsetHeight) { 11 wordArray.pop(); 12 this.innerHTML = wordArray.join(' ') + '...'; 13 } 14 }); 15} 16 17$.fn.hyphenate = function() { 18 var all = "[абвгдеÑжзийклмнопÑÑÑÑÑÑ ÑÑÑÑÑÑÑÑÑÑ]", 19 glas = "[аеÑиоÑÑÑÑ\Ñ]", 20 sogl = "[бвгджзклмнпÑÑÑÑÑ ÑÑÑÑ]", 21 zn = "[йÑÑ]", 22 shy = "\xAD", 23 re = []; 24 25 re[1] = new RegExp("("+zn+")("+all+all+")","ig"); 26 re[2] = new RegExp("("+glas+")("+glas+all+")","ig"); 27 re[3] = new RegExp("("+glas+sogl+")("+sogl+glas+")","ig"); 28 re[4] = new RegExp("("+sogl+glas+")("+sogl+glas+")","ig"); 29 re[5] = new RegExp("("+glas+sogl+")("+sogl+sogl+glas+")","ig"); 30 re[6] = new RegExp("("+glas+sogl+sogl+")("+sogl+sogl+glas+")","ig"); 31 return this.each(function() { 32 var text = $(this).html(); 33 for (var i = 1; i < 7; ++i) { 34 text = text.replace(re[i], "$1"+shy+"$2"); 35 } 36 $(this).html(text); 37 }); 38}; 39 40 41$(document).ready(function () { 42 43 $.expr[':'].external = function(obj){ 44 return !obj.href.match(/^mailto\:/) 45 && (obj.hostname != location.hostname) 46 && (!obj.href.startsWith('javascript')); 47 }; 48 49 $('a:external').attr('target', '_blank'); 50 51 if ($(window).innerWidth() > 720) { 52 ellipsizeTextBox('.news-item__text'); 53 } 54 55 if($('.tabs-body-item .poster-container').children().length == 1) { 56 var index = $('.tabs-body-item .poster-container').parent().index(); 57 $('.tabs-header .tab').eq(index).hide(); 58 } 59 60 if($('.tabs-header .tab:visible').length < 2) { 61 $('.tabs-header').hide(); 62 } 63 64 //initialize swiper when document ready 65 var mySwiper = new Swiper('.banner-slider-wrap', { 66 // Optional parameters 67 effect: 'fade', 68 speed: 1000, 69 autoplay: { 70 delay: 5000 71 }, 72 simulateTouch: false, 73 loop: true, 74 pagination: { 75 el: '.banner-slide__pag', 76 type: 'fraction', 77 }, 78 navigation: { 79 nextEl: '.nav-buttons-wrap .swiper-button-next', 80 prevEl: '.nav-buttons-wrap .swiper-button-prev', 81 } 82 }); 83 84 function mainSlideChange() { 85 var slideWidth = $('.banner-slide').eq(mySwiper.realIndex + 1).outerWidth() 86 var slideHeight = $('.banner-slide').eq(mySwiper.realIndex + 1).outerHeight() 87 } 88 89 mySwiper.on('slideChange', mainSlideChange); 90 91 mainSlideChange(); 92 93 var galleryTop = new Swiper('#poster-inner', { 94 effect: 'fade', 95 autoHeight: true, 96 loop: true, 97 pagination: { 98 el: '.poster-inner__slider-pag', 99 type: 'fraction', 100 }, 101 navigation: { 102 nextEl: '.poster-inner__btn-next', 103 prevEl: '.poster-inner__btn-prev', 104 }, 105 }); 106 107 var elLeght = $('.poster-inner-thumb').length 108 109 if (elLeght > 9) { 110 $('.poster-inner__slider-right').customScroll({ 111 horizontal: false 112 }); 113 }; 114 115 $('.poster-inner-thumb').on('click', function () { 116 var slideIdx = $(this).index(); 117 var bgImg = $(this).css('background-image'); 118 119 galleryTop.slideTo(slideIdx + 1); 120 //$('.poster-inner__slider-nav_blur').css('background-image', bgImg); 121 122 }); 123 124 function slideChange() { 125 var swImg = $('.poster-inner .swiper-slide').eq(galleryTop.realIndex + 1).css('background-image'); 126 127 $('.poster-inner__slider-nav_blur').css('background-image', swImg); 128 } 129 130 galleryTop.on('slideChange', slideChange); 131 132 slideChange(); 133 134 newSlider = new Swiper('#new-slider', { 135 effect: 'slide', 136 centeredSlides: true, 137 autoHeight: true, 138 loop: true, 139 speed: 500, 140 slidesPerView: 'auto', 141 spaceBetween: 0, 142 pagination: { 143 el: '.new-slider-nav .poster-inner__slider-pag', 144 type: 'fraction', 145 }, 146 navigation: { 147 nextEl: '.new-slider-nav .poster-inner__btn-next', 148 prevEl: '.new-slider-nav .poster-inner__btn-prev', 149 } 150 }); 151 152 newSlider.on('slideChange', function() { 153 var activeIndex = newSlider.realIndex; 154 $('#new-slider video').each(function() { 155 if($(this).index() != activeIndex) 156 $(this)[0].pause(); 157 }); 158 159 var activeSlide = $('#new-slider .swiper-slide').eq(activeIndex); 160 if(activeSlide.find('video').length > 0) { 161 activeSlide.find('video')[0].play(); 162 } 163 }); 164 165 $(window).scroll(function () { 166 if ($(this).scrollTop() >= 20) { 167 $('.header').addClass('scrolled') 168 } else { 169 if(!$('header').hasClass('always-scroll')) 170 $('.header').removeClass('scrolled') 171 } 172 }); 173 174 $(window).scroll(); 175 176 $('.calendar-toggle').on('click', function () { 177 $('.calendar-slider-wrap').toggleClass('active'); 178 if($(window).width() > 720) 179 $(this).toggleClass('calendar-toggle_clicked'); 180 $('.banner.hidden').toggleClass('show'); 181 182 if($('.banner.hidden').hasClass('show') && ($(window).width() > 720)) { 183 $('.header').addClass('always-scroll'); 184 } else { 185 $('.header').removeClass('always-scroll'); 186 } 187 188 if ($(this).hasClass("calendar-toggle_clicked")) { 189 $('header').addClass('scrolled'); 190 $('body,html').animate({ 191 scrollTop: 0 192 }, 500); 193 } 194 }); 195 196 $('.close-cal').on('click', function () { 197 $('.calendar-slider-wrap').removeClass('active'); 198 $('.calendar-toggle').removeClass('calendar-toggle_clicked'); 199 $('.banner.hidden').removeClass('show'); 200 $('.header').removeClass('always-scroll'); 201 }); 202 203 $('.search-toggle').on('click', function () { 204 $('.popup__search').fadeIn(300); 205 $('body').addClass("hidden"); 206 }); 207 208 $('.popup-close').on('click', function () { 209 $('body').removeClass("hidden"); 210 $('.popup__search').fadeOut(300); 211 }); 212 213 $('.popup__search').customScroll({ 214 horizontal: false 215 }); 216 217 $('.mobile-search-wrap').customScroll({ 218 horizontal: false 219 }); 220 221 $('.performers-scrollbox').each(function () { 222 if ($(this).height() < $(this).find('.performers-list').height()) { 223 $(this).customScroll({ 224 horizontal: false 225 }); 226 } 227 }); 228 229 $(document).on('click', '.performer', function () { 230 $(this).parent().siblings('.performers-box').addClass('active'); 231 }); 232 233 $(document).on('click', '.performers-close', function () { 234 $(this).parents('.performers-box').removeClass('active'); 235 }); 236 237 function loadSearchResults() { 238 var q = $('#searchQuery').val(); 239 $.ajax({ 240 url: '/ajax/search.php?how=r&q=' + q, 241 }).done(function (res) { 242 $('.search-results').html(res); 243 }); 244 } 245 246 $('.search__form').on('submit', function(e) { 247 e.preventDefault(); 248 $('.hideKeyboard').focus(); 249 return false;
250 }); 251 252 $('.search__form input').keyup(function () { 253 if ($(this).val().length >= 1) { 254 $('.search__btn').addClass('clear'); 255 $('.mobile-search-wrap').addClass('active'); 256 } else { 257 $('.search__btn').removeClass('clear'); 258 $('.mobile-search-wrap').removeClass('active'); 259 } 260 261 if ($(this).val().length >= 3) { 262 loadSearchResults(); 263 $('.search-results').addClass('show-result'); 264 } else { 265 $('.search-results').removeClass('show-result').html(''); 266 } 267 }); 268 269 $('.search__form input').keydown(function () { 270 if ($(this).val().length >= 1) { 271 $('.search__btn').addClass('clear'); 272 $('.mobile-search-wrap').addClass('active'); 273 } else { 274 $('.search__btn').removeClass('clear'); 275 $('.mobile-search-wrap').removeClass('active'); 276 } 277 278 if ($(this).val().length >= 3) { 279 loadSearchResults(); 280 $('.search-results').addClass('show-result'); 281 } else { 282 $('.search-results').removeClass('show-result').html(''); 283 } 284 }); 285 286 $('.search__form input').change(function () { 287 if ($(this).val().length >= 1) { 288 $('.search__btn').addClass('clear'); 289 $('.mobile-search-wrap').addClass('active'); 290 } else { 291 $('.search__btn').removeClass('clear'); 292 $('.mobile-search-wrap').removeClass('active'); 293 } 294 295 if ($(this).val().length >= 3) { 296 loadSearchResults(); 297 $('.search-results').addClass('show-result'); 298 } else { 299 $('.search-results').removeClass('show-result').html(''); 300 } 301 }); 302 303 $('.search__btn').click(function () { 304 $('.search__form input').val(''); 305 $('.search-results').removeClass('show-result'); 306 $('.search__btn').removeClass('clear'); 307 $('.mobile-search-wrap').removeClass('active'); 308 }); 309 310 if($(window).width() > 720) { 311 $('[data-popup]').on('click', function (e) { 312 e.preventDefault(); 313 e.stopPropagation(); 314 if(!$(this).hasClass('active')) { 315 $('.popup-menu').hide(); 316 $($(this).attr('data-popup')).fadeIn(300); 317 } else { 318 location.href = $($(this).attr('data-popup')).find('a:first').attr('href'); 319 } 320 return false; 321 }); 322 323 $('.inner-page-nav__link').on('click', function () { 324 $(this).siblings().removeClass('active'); 325 $(this).addClass('active'); 326 }); 327 328 $('.popup-menu').each((i, el) => { 329 if($(el).find('.inner-page-nav__link.active').length > 0) { 330 $(el).show(); 331 $('[data-popup="#' + el.id + '"]').addClass('active'); 332 } 333 }); 334 } else { 335 $('.inner-page-nav.popup-menu').hide(); 336 337 var activePopupMenu = $('.inner-page-nav.popup-menu a.inner-page-nav__link.active'); 338 339 if(activePopupMenu.length > 0) { 340 341 $('.inner-page-nav:first .inner-page-nav__link').hide(); 342 $('.inner-page-nav:first [data-popup="#' + activePopupMenu[0].parentElement.id + '"]').show(); 343 344 activePopupMenu.parent().show(); 345 } 346 347 $('.inner-page-nav').on('click', function(e) { 348 $(this).toggleClass('opened'); 349 }); 350 351 $('.inner-page-nav-wrap').css('opacity', 1); 352 } 353 354 /*$(document).on('click', function(e) { 355 if(!$(e.target).is('.inner-page-nav')) { 356 $('.inner-page-nav.opened').removeClass('opened'); 357 } 358 });*/ 359 360 $('.tab').on('click', function () { 361 $(this).siblings().removeClass("active"); 362 $(this).addClass("active"); 363 364 var tabIdx = $(this).index(); 365 366 $('.tabs-body-item').removeClass('active'); 367 $('.tabs-body-item').eq(tabIdx).addClass('active'); 368 }); 369 370 $(document).on('click', '.calendar-box [data-url]', function () { 371 $.ajax({ 372 url: $(this).attr('data-url'), 373 }).done(function (res) { 374 $('.calendar-box').html($(res).find('.calendar-box').html()); 375 $('.dop-info__artists-box').each(function() { 376 $(this).customScroll({ 377 horizontal: false 378 }); 379 }); 380 if($(window).width() <= 720) { 381 $('.calendar-box_blur').css('background-image', $('.calendar_m').css('background-image')); 382 } 383 }); 384 }); 385 386 $(document).on('click', '.calendar-box [data-date]', function () { 387 $.ajax({ 388 url: '/ajax/cal.php?date=' + $(this).attr('data-date'), 389 }).done(function (res) { 390 if ($('html').hasClass('mobile-version')) { 391 $('.calendar_m-events').html(res); 392 var bg = $('.calendar_m-events .calendar-slide:first').css('background-image'); 393 $('.calendar_m').css('background-image', bg); 394 $('.calendar-box_blur').css('background-image', bg); 395 $('.calendar_m-events .calendar-slide').css('background-image', 'none'); 396 } else { 397 $('.calendar-slider-wrap').html(res); 398 var calSwiper = new Swiper('.calendar-slider', { 399 // Optional parameters 400 effect: 'fade', 401 loop: true, 402 simulateTouch: false, 403 autoHeight: true, 404 pagination: { 405 el: '.calendar-slide__pag', 406 type: 'fraction', 407 }, 408 navigation: { 409 nextEl: '.nav-buttons-wrap .calendar-slide__arrow-next', 410 prevEl: '.nav-buttons-wrap .calendar-slide__arrow-prev', 411 } 412 }); 413 $('.dop-info__artists-box').each(function() { 414 $(this).customScroll({ 415 horizontal: false 416 }); 417 }); 418 } 419 }); 420 }); 421 422 $.ajax({ 423 url: '/ajax/cal.php', 424 }).done(function (res) { 425 if ($('html').hasClass('mobile-version')) { 426 $('.calendar_m-events').html(res); 427 var bg = $('.calendar_m-events .calendar-slide:first').css('background-image'); 428 $('.calendar_m').css('background-image', bg); 429 $('.calendar-box_blur').css('background-image', bg); 430 $('.calendar_m-events .calendar-slide').css('background-image', 'none'); 431 } else { 432 $('.calendar-slider-wrap').html(res); 433 var calSwiper = new Swiper('.calendar-slider', { 434 // Optional parameters 435 effect: 'fade', 436 loop: true, 437 simulateTouch: false, 438 autoHeight: true, 439 pagination: { 440 el: '.calendar-slide__pag', 441 type: 'fraction', 442 }, 443 navigation: { 444 nextEl: '.nav-buttons-wrap .calendar-slide__arrow-next', 445 prevEl: '.nav-buttons-wrap .calendar-slide__arrow-prev', 446 } 447 }); 448 $('.dop-info__artists-box').each(function() { 449 $(this).customScroll({ 450 horizontal: false 451 }); 452 }); 453 } 454 }); 455 456 $('.mobile-nav-toggle').on('click', function () { 457 $(this).toggleClass('active'); 458 $('.mobile-nav').toggleClass('active'); 459 $('.header').removeClass('scrolled'); 460 $('.lang-item.active').toggleClass('white'); 461 462 if ($('.mobile-nav').hasClass('active')) { 463 var scrollTop = $('html').scrollTop(); 464 $('html').attr('data-scroll', scrollTop); 465 $('#bx-panel-box').css('margin-top', -scrollTop + 'px'); 466 $('body').addClass('fixed'); 467 } else { 468 $('body').removeClass('fixed'); 469 $('#bx-panel-box').css('margin-top', 0); 470 $('html').scrollTop($('html').attr('data-scroll')); 471 } 472 }); 473 474 $('.menu-item').on('click', function () { 475 $(this).siblings().find('.submenu-wrap, .menu-item__list').removeClass('active'); 476 $(this).find('.submenu-wrap, .menu-item__list').toggleClass('active'); 477 }); 478 479 $(document).on('click', '.poster-container .show-more', function () { 480 var pageNum = $(this).attr('data-page'); 481 var pageContainer = $(this).attr('data-container'); 482 window.pageContainer = pageContainer; 483 $.ajax({ 484 url: '?filter&PAGEN_1=' + pageNum, 485 data: $('.filter-nav').serialize() 486 }).done(function (res) { 487 var pageContainer = window.pageContainer;
488 $('.' + pageContainer + ' .show-more-wrap').remove(); 489 $('.' + pageContainer).append($(res).find('.' + pageContainer).html()); 490 }); 491 }); 492 493 if ($('html').hasClass('mobile-version')) { 494 var posterTab = new Swiper('#poster-inner_m', { 495 slidesPerView: "auto", 496 spaceBetween: 0, 497 freeMode: true, 498 }); 499 } 500 501 $(document).on('click', '.filter-toggle', function () { 502 $('.filter-nav-wrap_m').fadeIn(500) 503 }); 504 505 $(document).on('click', '.filter_m-close', function () { 506 $('.filter-nav-wrap_m').fadeOut(500) 507 }); 508 509}); 510 511$(document).ready(function () { 512 $(".calendar-activate").prop('autocomplete', 'off'); 513 $('.filter-nav__calendar [name="year"]').on('change', function () { 514 if (!$('html').hasClass('mobile-version')) { 515 var year = $(this).find(':selected').val(); 516 $(".calendar-activate").datepicker('destroy'); 517 $(".calendar-activate").val(''); 518 var datePickerParams = { 519 changeMonth: true, 520 yearRange: year + ':' + year, 521 dateFormat: 'dd.mm.yy', 522 monthNamesShort: window.calMonthNames, 523 dayNames: window.calDayNames, 524 dayNamesMin: window.calDayShortNames 525 }; 526 if(!window.filterCalendarInit) { 527 datePickerParams.defaultDate = '01.01.' + year; 528 } 529 window.filterCalendarInit = false; 530 $(".calendar-activate").datepicker(datePickerParams); 531 } 532 }); 533 534 $(".calendar-activate").on('change', function () { 535 if ($('html').hasClass('mobile-version')) { 536 var sourceDate = $(this).val().split('-'); 537 } else { 538 var sourceDate = $(this).val().split('.'); 539 } 540 541 if (sourceDate.length == 3) { 542 if ($('html').hasClass('mobile-version')) { 543 var day = sourceDate[2]; 544 var month = sourceDate[1]; 545 } else { 546 var day = sourceDate[0]; 547 var month = sourceDate[1]; 548 } 549 $(this).parent().find('.formated-value').text(day + ' ' + window.monthNames[month - 1]); 550 } 551 }); 552 553 window.filterCalendarInit = true; 554 $('.filter-nav__calendar [name="year"]').trigger('change'); 555 556 if ($('html').hasClass('mobile-version')) { 557 558 $('.filter-nav').on('submit', function (e) { 559 e.preventDefault(); 560 561 if($(this).find('[name="date_from"]').length) { 562 data = { 563 year: $('[name="year"]').val(), 564 date_from: $('[name="date_from"]').val().split('-').reverse().join('.'), 565 date_to: $('[name="date_to"]').val().split('-').reverse().join('.') 566 } 567 } else { 568 data = $(this).serialize(); 569 } 570 571 $.ajax({ 572 url: '?filter', 573 data: data 574 }).done(function (res) { 575 $('.poster-container').html($(res).find('.poster-container').html()); 576 $('.filter-nav-wrap_m').fadeOut(500); 577 }); 578 return false; 579 }); 580 581 } else { 582 $('.filter-nav input').on('change', function () { 583 $.ajax({ 584 url: '?filter', 585 data: $('.filter-nav').serialize() 586 }).done(function (res) { 587 $('.poster-container').html($(res).find('.poster-container').html()); 588 }); 589 }); 590 } 591}); 592 593$(document).ready(function () { 594 if ($('.filter-nav-wrap_m').length > 0) { 595 $('.inner-page-nav-wrap').append('<div class="filter-toggle" onclick=""></div>'); 596 } 597}); 598 599$(document).ready(function () { 600 $('.banner').eq(1).each(function () { 601 maxHeight = 0; 602 $(this).find('.banner-slider-nav_content').each(function () { 603 if ($(this).innerHeight() > maxHeight) { 604 maxHeight = $(this).innerHeight(); 605 } 606 }); 607 $(this).find('.banner-slider-nav_content').each(function () { 608 $(this).height(maxHeight); 609 }); 610 }); 611}); 612 613$(document).ready(function() { 614 $('.nancy').fancybox(); 615}); 616 617function px2rem(value) { 618 var rem = parseFloat($('html').css('font-size')); 619 return parseFloat(value) / rem; 620} 621 622function makeThemEquil(elems, row_size) { 623 var rowsAmount = Math.ceil(elems.length / row_size); 624 for(i = 0; i < rowsAmount; i++) { 625 var rowElems = elems.slice(i * row_size, (i + 1) * row_size); 626 var rowHeight = 0; 627 rowElems.each(function() { 628 if($(this).height() > rowHeight) { 629 rowHeight = $(this).height(); 630 } 631 }); 632 rowElems.css('height', px2rem(rowHeight) + 'rem'); 633 } 634} 635 636$(document).ready(function() { 637 makeThemEquil($('.art-pas__name'), 4); 638 makeThemEquil($('.news-item__text'), 4); 639 640 $('.choir-items-list').each(function() { 641 makeThemEquil($(this).find('.choir-item__text'), 4); 642 makeThemEquil($(this).find('.choir-item__name'), 4); 643 }); 644}); 645 646$(document).ready(function() { 647 function modalClose() { 648 var scrollTop = $('html').attr('data-scroll'); 649 650 if ($('body').hasClass('page-inner')) { 651 if ($('header').hasClass('fixed')) { 652 $('.first-screen').css('margin-top', 0); 653 } else { 654 $('header').css('margin-top', 0); 655 } 656 } else { 657 $('.page-content').css('margin-top', 0); 658 } 659 660 $('.modal').removeClass('active'); 661 $('body').removeClass('fixed'); 662 $('html').scrollTop(scrollTop); 663 $('.overlay').delay(300).fadeOut(300); 664 } 665 666 $('.modal-close, .overlay-close').on('click', modalClose); 667 668 $('.modal-wrap').on('click', function(e) { 669 if(e.target == this) { 670 modalClose(); 671 } 672 }); 673 674 $(document).on('click', '[href="#cookies"]', function(e) { 675 676 e.preventDefault(); 677 var scroll = $(window).scrollTop(); 678 679 $('html').attr('data-scroll', scroll); 680 681 if ($('body').hasClass('page-inner')) { 682 if ($('header').hasClass('fixed')) { 683 $('.first-screen').css('margin-top', -scroll + 'px'); 684 } else { 685 $('header').css('margin-top', -scroll + 'px'); 686 } 687 } else { 688 $('.page-content').css('margin-top', -scroll + 'px'); 689 } 690 691 $('#modalCookies').fadeIn(300, function () { 692 $('#modalCookies .modal').addClass('active'); 693 $('body').addClass('fixed'); 694 }); 695 696 return false;
697 }); 698 699 if($('html').hasClass('mobile-version')) { 700 $('.tabs-header .tab').on('click', function() { 701 var box = $(this).parent(); 702 if(box.children().length > 2) { 703 if($(this).index() > 0) { 704 var width = box.width() / 2; 705 box.stop().animate({ 706 scrollLeft: width * $(this).index() 707 }, 300); 708 } 709 } 710 }); 711 } 712 713 if($(window).width() < 721) { 714 $('#searchQuery').on('focus', function() { 715 $('body, .mobile-nav').addClass('block-scroll'); 716 $('body, .mobile-nav').scrollTop(0); 717 $('body, .mobile-nav').height($(window).height()); 718 }); 719 720 $('*').on('click', function() { 721 $('body, .mobile-nav').removeClass('block-scroll'); 722 $('body, .mobile-nav').scrollTop(0); 723 $('body, .mobile-nav').height(''); 724 }); 725 726 $(document).on('touchmove touchend touchstart', '.block-scroll', function(e) { 727 $('body, .mobile-nav').scrollTop(0); 728 if($(this).hasClass('block-scroll')) 729 e.preventDefault(); 730 }); 731 } 732}); 733 734$(document).on('ready', function() { 735 $(window).on('scroll', function(e) { 736 if($(window).width() < 721) { 737 $('body').append($('<div></div>').addClass('iosfix')); 738 setTimeout(function() { 739 $('.iosfix').remove(); 740 }, 500); 741 } 742 }); 743}); 744 745// spoiler start =============================================== 746$(document).on('click','.js-spoiler-title', function () { 747 let parents = $(this).parents('.js-spoiler'); 748 if(!parents.hasClass('js-spoiler-double')) { 749 if(!$(this).parents('.js-spoiler-item').hasClass('active')) { 750 $(this).parents('.js-spoiler').find('.js-spoiler-item').removeClass('active'); 751 $(this).parents('.js-spoiler').find('.js-spoiler-body').removeClass('active').slideUp(300); 752 $(this).parents('.js-spoiler-item').addClass('active'); 753 $(this).parents('.js-spoiler-item').find('.js-spoiler-body').slideDown(300); 754 } else { 755 $(this).parents('.js-spoiler').find('.js-spoiler-item').removeClass('active'); 756 $(this).parents('.js-spoiler').find('.js-spoiler-body').slide
756Up(300); 757 } 758 } else { 759 if(!$(this).parents('.js-spoiler-item').hasClass('active')) { 760 $(this).parents('.js-spoiler-item').addClass('active'); 761 $(this).parents('.js-spoiler-item').find('.js-spoiler-body').slideDown(300); 762 } else { 763 $(this).parents('.js-spoiler-item').removeClass('active'); 764 $(this).parents('.js-spoiler-item').find('.js-spoiler-body').slideUp(300); 765 } 766 } 767}); 768// spoiler end =============================================== 769 770$(document).on('change', '.js-file-block__input', function () { 771 if ($(this).val() != ' ') { 772 let faleName = $(this)[0].files[0].name; 773 $(this).parents('.js-file-block').addClass('active'); 774 $(this).parents('.js-file-block').find('.js-file-block__text').text(faleName); 775 } else { 776 $(this).parents('.js-file-block').removeClass('active'); 777 $(this).parents('.js-file-block').find('.js-file-block__text').text('ÐÑикÑепиÑÑ Ñайл'); 778 } 779}); 780 781$(document).on('click', '.js-file-block__clear', function (e) { 782 $(this).parents('.js-file-block').find('.js-file-block__input').val(null); 783 $(this).parents('.js-file-block').removeClass('active'); 784 $(this).parents('.js-file-block').find('.js-file-block__text').text('ÐÑикÑепиÑÑ Ñайл'); 785 e.preventDefault(); 786}); 787
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.