1$( function () { 2 $( '.fancybox,a[href*=\'youtube.com/watch\']' ).fancybox(); 3 4 findAndReplaceDOMText( document.body, { 5 preset: 'prose', 6 find: /\//g, 7 replace: 'a', 8 wrap: 'span', 9 wrapClass: 'lightning-bolt notranslate', 10 } ); 11 12 $( 'select.placeholder-font-pwrup' ).change( function () { 13 if ( $( this ).val() === '' ) { 14 $( this ).addClass( 'font-pwrup' ); 15 } else { 16 $( this ).removeClass( 'font-pwrup' ); 17 } 18 } ); 19 20 $( '.btn-neon' ) 21 .on( 'mouseenter', function () { 22 $( this ).css( 'animationName', 'none' ); 23 } ) 24 .on( 'mouseleave', function () { 25 var duration = 20, 26 delay = Math.random() * 10, 27 direction = Math.random() > 0.5 ? 'alternate' : 'alternate-reverse'; 28 $( this ).css( { 29 animationName: 'neon-flicker', 30 animationDuration: duration + 's', 31 animationDelay: delay + 's', 32 animationIterationCount: 'infinite', 33 animationDirection: direction, 34 animationTimingFunction: 'steps(1)', 35 } ); 36 } ) 37 .trigger( 'mouseleave' ); 38 39 $( 'a[href="#signup"]' ).click( function () { 40 $( '#form-newsletter .btn' ).trigger( 'click' ); 41 } ); 42 43 $( window ).scroll( function () { 44 if ( $( window ).scrollTop() > 100 ) { 45 $( '#header' ).addClass( 'bg-transparent-black' ); 46 $( '#menu-main' ).removeClass( 'pt-3 pb-4' ).addClass( 'mt-n2' ); 47 } else { 48 $( '#header' ).removeClass( 'bg-transparent-black' ); 49 $( '#menu-main' ).addClass( 'pt-3 pb-4' ).removeClass( 'mt-n2' ); 50 } 51 } ); 52 53 $( '.btn-drop>a' ).on( 'click', function ( e ) { 54 e.preventDefault(); 55 $( this ).next( 'ul' ).fadeToggle(); 56 } ); 57 58 $('.all-merch').on('click', function(e){ 59 e.preventDefault(); 60 $('.merch').addClass('seeall'); 61 $(this).hide(); 62 }); 63 64 $('.slider-hero').slick({ 65 dots: true, 66 infinite: false, 67 slidesToShow: 1, 68 slidesToScroll: 1, 69 arrows: false, 70 asNavFor: '.content-hero', 71 }); 72 73 $('.content-hero').slick({ 74 dots: false, 75 infinite: false, 76 slidesToShow: 1, 77 slidesToScroll: 1, 78 arrows: false, 79 asNavFor: '.slider-hero', 80 }); 81 82 // $('.slider-homepage-news').slick({ 83 // dots: true, 84 // arrows: false, 85 // infinite: false, 86 // slidesToShow: 1, 87 // slidesToScroll: 1, 88 // mobileFirst: true, 89 // responsive: [ 90 // { 91 // breakpoint: 992, 92 // settings: "unslick" 93 // } 94 // ] 95 // }); 96 97 $(window).resize(function(){ 98 if($( window ).width() < 992){ 99 $('.slider-homepage-news')[0].slick.refresh(); 100 } 101 }); 102 103} );
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.