1(function ($, root, undefined) { 2 3 $(function () { 4 5 'use strict'; 6 7 // DOM ready, take it away 8 9 $('.mobnav').on('click', function(e) { 10 e.preventDefault(); 11 if ($('nav.nav').is(':visible')) { 12 $('nav.nav').hide(); 13 } else { 14 $('nav.nav').show(); 15 } 16 }); 17 18 $('nav.nav .sub-menu').on('click', function(e) { 19 if ($(this).hasClass('open')) { 20 $(this).removeClass('open'); 21 } else { 22 $(this).addClass('open'); 23 } 24 }); 25 26 if ($('.bxslider').length) { 27 var $slidercount = 0; 28 var $bxslider = new Array(); 29 $('.bxslider').each(function() { 30 $(this).addClass('bxslider'+$slidercount).data('slidercount', $slidercount); 31 $bxslider[$slidercount] = $(this).bxSlider({ 32 controls: false, 33 auto: true, 34 'onSliderLoad': function(currentIndex) { 35 if ($('body').hasClass('rtl')) { 36 $(this).parent().parent().find('.bx-default-pager').prepend('<div class="bx-prevslide" data-slidercount="'+$slidercount+'"><i class="far fa-arrow-right"></i></div>'); 37 $(this).parent().parent().find('.bx-default-pager').append('<div class="bx-nextslide" data-slidercount="'+$slidercount+'"><i class="far fa-arrow-left"></i></div>'); 38 } else { 39 $(this).parent().parent().find('.bx-default-pager').prepend('<div class="bx-prevslide" data-slidercount="'+$slidercount+'"><i class="far fa-arrow-left"></i></div>'); 40 $(this).parent().parent().find('.bx-default-pager').append('<div class="bx-nextslide" data-slidercount="'+$slidercount+'"><i class="far fa-arrow-right"></i></div>'); 41 } 42 }, 43 }); 44 $slidercount++; 45 }); 46 47 $('body').on('click', '.bx-prevslide', function() { 48 $slidercount = $(this).parents('.bx-wrapper').find('.bxslider').data('slidercount'); 49 $bxslider[$slidercount].goToPrevSlide(); 50 }); 51 $('body').on('click', '.bx-nextslide', function($el) { 52 $slidercount = $(this).parents('.bx-wrapper').find('.bxslider').data('slidercount'); 53 $bxslider[$slidercount].goToNextSlide(); 54 }); 55 } 56 57 if ($('.newsslider').length) { 58 var $slidercount = 0; 59 var $newsslider = new Array(); 60 $('.newsslider').each(function() { 61 $(this).addClass('newsslider'+$slidercount).data('slidercount', $slidercount); 62 $newsslider[$slidercount] = $(this).bxSlider({ 63 controls: false, 64 auto: false, 65 touchEnabled: false, 66 'onSliderLoad': function(currentIndex) { 67 if ($('body').hasClass('rtl')) { 68 $(this).parent().parent().find('.bx-default-pager').prepend('<div class="bx-prevslide" data-slidercount="'+$slidercount+'"><i class="far fa-arrow-right"></i></div>'); 69 $(this).parent().parent().find('.bx-default-pager').append('<div class="bx-nextslide" data-slidercount="'+$slidercount+'"><i class="far fa-arrow-left"></i></div>'); 70 } else { 71 $(this).parent().parent().find('.bx-default-pager').prepend('<div class="bx-prevslide" data-slidercount="'+$slidercount+'"><i class="far fa-arrow-left"></i></div>'); 72 $(this).parent().parent().find('.bx-default-pager').append('<div class="bx-nextslide" data-slidercount="'+$slidercount+'"><i class="far fa-arrow-right"></i></div>'); 73 } 74 }, 75 'onSlideNext': function($el, oldSlide, newSlide) { 76 $slidercount = $(this).data('slidercount'); 77 $('html, body').animate({ 78 scrollTop: $(this).offset().top - 100 79 }, 500); 80 }, 81 'onSlidePrev': function($el, oldSlide, newSlide) { 82 $slidercount = $(this).data('slidercount'); 83 console.log($slidercount); 84 $('html, body').animate({ 85 scrollTop: $(this).offset().top - 100 86 }, 500); 87 }, 88 'onSliderResize': function(currentIndex) { 89 if ($('body').hasClass('rtl')) { 90 $(this).parent().parent().find('.bx-default-pager').prepend('<div class="bx-prevslide" data-sli
90dercount="'+$slidercount+'"><i class="far fa-arrow-right"></i></div>'); 91 $(this).parent().parent().find('.bx-default-pager').append('<div class="bx-nextslide" data-slidercount="'+$slidercount+'"><i class="far fa-arrow-left"></i></div>'); 92 } else { 93 $(this).parent().parent().find('.bx-default-pager').prepend('<div class="bx-prevslide" data-slidercount="'+$slidercount+'"><i class="far fa-arrow-left"></i></div>'); 94 $(this).parent().parent().find('.bx-default-pager').append('<div class="bx-nextslide" data-slidercount="'+$slidercount+'"><i class="far fa-arrow-right"></i></div>'); 95 } 96 } 97 }); 98 $slidercount++; 99 }); 100 101 $('body').on('click', '.bx-prevslide', function() { 102 $slidercount = $(this).parents('.bx-wrapper').find('.newsslider').data('slidercount'); 103 $newsslider[$slidercount].goToPrevSlide(); 104 $('html, body').animate({ 105 scrollTop: $(".newsslider"+$slidercount).offset().top - 100 106 }, 500); 107 }); 108 $('body').on('click', '.bx-nextslide', function($el) { 109 $slidercount = $(this).parents('.bx-wrapper').find('.newsslider').data('slidercount'); 110 $newsslider[$slidercount].goToNextSlide(); 111 $('html, body').animate({ 112 scrollTop: $(".newsslider"+$slidercount).offset().top - 100 113 }, 500); 114 }); 115 } 116 117 118 if ($('.coverslider').length) { 119 var $slidercount = 0; 120 var $coverslider = new Array(); 121 $('.coverslider').each(function() { 122 $(this).addClass('coverslider'+$slidercount).data('slidercount', $slidercount); 123 $coverslider[$slidercount] = $(this).bxSlider({ 124 mode: 'fade', 125 speed: 1500, 126 controls: false, 127 pager: false, 128 auto: true, 129 pause: 6000, 130 touchEnabled: false, 131 'onSliderLoad': function(currentIndex) { 132 $(this).parents('.bx-wrapper').addClass('alignfull').css('max-width', '100vw'); 133 $(this).addClass('init'); 134 this.redrawSlider(); 135 }, 136 }); 137 $slidercount++; 138 }); 139 } 140 141 $('.totop').on('click', function(e) { 142 e.preventDefault(); 143 $('html, body').animate({ 144 scrollTop: $('header').offset().top 145 }, 300); 146 }); 147 148 function checkScroll(strict = false) { 149 if (strict == true) { 150 $('main h1, main h2, main h3, main h4, main h5, main h6, main p, main .wp-block-image.logo img, main ul, main ol').each(function() { 151 if (($(window).scrollTop() + $(window).height()) > ($(this).offset().top)) { 152 $(this).addClass('showme'); 153 } 154 }); 155 } else { 156 $('main h1, main h2, main h3, main h4, main h5, main h6, main p, main .wp-block-image.logo img, main ul, main ol').each(function() { 157 if (($(window).scrollTop() + $(window).height()) > ($(this).offset().top + 200)) { 158 $(this).addClass('showme'); 159 } 160 }); 161 } 162 } 163 164 // DOM ready, take it away 165 $(window).scroll(function(){ 166 checkScroll(); 167 }); 168 checkScroll(true); 169 170 $('li.translations').on('click', function(e) { 171 e.preventDefault(); 172 }); 173 174 if ($('.registernow .wpcf7').length) { 175 var wpcf7Form = document.querySelector( '.registernow .wpcf7' ); 176 wpcf7Form.addEventListener( 'wpcf7mailsent', function( event ) { 177 event.preventDefault(); 178 $('.wpcf7form').hide(); 179 $('.wpcf7message').show(); 180 /* 181 window.setTimeout(function() { 182 $('.wpcf7message').show().delay(100).addClass('submitted'); 183 }, 300); 184 */ 185 }, false ); 186 } 187 188 }); 189 190})(jQuery, this);
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.