1'use strict'; 2 3(function () { 4 var winW = $(window).width(); 5 var movieNum = $('#topMovie .p-top_movie__list--item').length; 6 var topMovie = new Swiper('#topMovie', { 7 slidesPerView: 2, 8 init: false, 9 spaceBetween: 30, 10 speed: 750, 11 navigation: { 12 nextEl: '.p-top_movie__arrow--next', 13 prevEl: '.p-top_movie__arrow--prev' 14 }, 15 breakpoints: { 16 768: { 17 slidesPerView: 1, 18 spaceBetween: 15 19 } 20 } 21 }); 22 if (winW < 769) { 23 if (movieNum > 1) { 24 topMovie.init(); 25 } else { 26 $('#topMovie').addClass('is-noneslide'); 27 $('.p-top_movie__arrow--next, .p-top_movie__arrow--prev').hide(); 28 } 29 } else { 30 if (movieNum > 2) { 31 topMovie.init(); 32 } else { 33 $('#topMovie').addClass('is-noneslide'); 34 $('.p-top_movie__arrow--next, .p-top_movie__arrow--prev').hide(); 35 } 36 } 37 var bnrNum = $('#topBnr li').length; 38 var topBnr = new Swiper('#topBnr', { 39 init: false, 40 slidesPerView: 1, 41 spaceBetween: 0, 42 loop: true, 43 speed: 750, 44 autoplay: { 45 delay: 5000 46 }, 47 pagination: { 48 el: '.p-top_main__banner--dots', 49 clickable: true 50 } 51 }); 52 if (bnrNum > 1) { 53 topBnr.init(); 54 } 55 56 var from = location.search; 57 var hash = location.hash; 58 59 $(window).on('load', function () { 60 setTimeout(function () { 61 $('.p-top_main').addClass('is-active'); 62 }, 1000); 63 if ($('#firstModal').length && from == '' && hash == '') { 64 if ($('#firstModal').hasClass('p-top_movie__list--item')) { 65 setTimeout(function () { 66 $('#firstModal').trigger('click'); 67 }, 4000); 68 } else { 69 setTimeout(function () { 70 $('body').addClass('is-modal-open'); 71 $('#firstModal').addClass('is-open'); 72 $('#firstModal .m-modal__bg_inner,#firstModal .m-modal__content').addClass('is-active'); 73 }, 4000); 74 $('#firstModal [data-modal-ui-close]').on('click', function () { 75 $('body').removeClass('is-modal-open'); 76 $('#firstModal').removeClass('is-open'); 77 $('#firstModal .m-modal__bg_inner,#firstModal .m-modal__content').removeClass('is-active'); 78 }); 79 } 80 } 81 }); 82 83 var ScrollEffectModule = new SCROLL_EFFECT_MODULE({ 84 elem: '.js-scroll', 85 displayRatio: 0.7, 86 displayReverse: false, 87 addClassNameActive: 'is-active', 88 on: { 89 In: function In(item, pos) {} 90 } 91 }); 92})();
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.