PageSourceSearch

https://nordfriesland-online.de/wp-content/themes/seek/assets/twp/…?ver=c07715627310061d56a41fd1f90670cc

js nordfriesland-online.de collected 2026-10-02 14:08:11 UTC 6,956 bytes, 217 lines download raw bytes

1
2(function (e) {
3    "use strict";
4    var n = window.TWP_JS || {};
5    n.navigation = function () {
6      //added arrow
7      var menuId= document.getElementById("primary-menu");
8      if( menuId!='' ){
9        e("ul#primary-menu>li,div#primary-menu>ul>li").has('ul').addClass("down-arrow");
10        e("ul#primary-menu>li>ul li,div#primary-menu>ul>li>ul li").has('ul').addClass("right-arrow");
11      }
12
13      e("#search,#search-close").on("click",function(){
14        e("#search-field").slideToggle();
15        e("#nav-latest-news-field").slideUp();
16      })
17      e("#nav-latest-news,#latest-news-close").on("click",function(){
18        e("#nav-latest-news-field").slideToggle();
19        e("#search-field").slideUp();
20      })
21    }, 
22    n.stickyHeader = function () {
23      var header = document.getElementById("site-navigation");
24      var scrollTop = document.getElementById("scroll-top");
25      var sticky = header.offsetTop;
26      if (window.pageYOffset > sticky) {
27          header.classList.add("sticky");
28          scrollTop.classList.add("show");
29      } else {
30        header.classList.remove("sticky");
31        scrollTop.classList.remove("show");
32      }
33     
34    },
35    n.mobileMenu = function () {
36      e("#twp-menu-icon").on("click",function(){
37        e(".twp-mobile-menu").addClass("show");
38        e("#primary-nav-menu,#primary-menu").clone().appendTo(".twp-mobile-menu");
39        e("#overlay").toggleClass("show");
40        e("body").css("overflow","hidden");
41      })
42      e("#twp-mobile-close,#overlay").on("click",function(){
43          e(".twp-mobile-menu").removeClass("show");
44          e(".twp-mobile-menu #primary-nav-menu,.twp-mobile-menu #primary-menu").remove();
45          e("#overlay").toggleClass("show");
46          e("body").css("overflow","visible");
47      })
48    },
49  //progress bar and newsletter 
50    n.progressBar = function () {
51      var winScroll = document.body.scrollTop || document.documentElement.scrollTop;
52      var height = document.documentElement.scrollHeight - document.documentElement.clientHeight;
53      var scrolled = (winScroll / height) * 100;
54      var progressBarId = document.getElementById("progressbar");
55      if( scrolled >= 50){
56        e("#newsletter").addClass("show");
57     }else{
58       e("#newsletter").removeClass("show");
59     }
60      if( progressBarId == null ){
61      }else{
62        progressBarId.style.width = scrolled + "%";
63      }
64     
65   },
66   n.newsletter_close = function(){
67      e("#newsletter-close").on("click",function(){
68        e("#newsletter").removeClass("twp-newsletter-active");
69      })
70   }
71   
72    // SCROLL UP //
73    n.scroll_up = function () {
74      e("#scroll-top").on("click", function () {
75          e("html, body").animate({
76              scrollTop: 0
77          }, 700);
78          return false;
79      });
80    }, 
81   
82  // tab widget
83  n.tab_posts = function () {
84    e(".twp-tab li").on("click",function(){
85      var tabClass = e(this).attr('class');
86      e(this).addClass('active').siblings().removeClass('active');
87      e(this).closest('.section-head').next('.twp-tab-content').children('#'+tabClass).addClass('active').siblings().removeClass('active');
88    })
89
90  },
91
92    n.DataBackground = function () {
93        var pageSection = e(".data-bg");
94        pageSection.each(function (indx) {
95
96            if (e(this).attr("data-background")) {
97                e(this).css("background-image", "url(" + e(this).data("background") + ")");
98            }
99        });
100
101        e('.bg-image').each(function () {
102            var src = e(this).children('img').attr('src');
103            e(this).css('background-image', 'url(' + src + ')').children('img').hide();
104        });
105    },
106    n.slider = function() {
107        e(".twp-ticket-pin-slider").slick({
108            speed: 3000,
109            autoplay: true,
110            autoplaySpeed: 0,
111            cssEase: 'linear',
112            slidesToShow: 2,
113            slidesToScroll: 1,
114            infinite: true,
115            swipeToSlide: true,
116            centerMode: true,
117            focusOnSelect: true,
118            responsive: [
119                    {
120                      breakpoint: 750,
121                      settings: {
122                        slidesToShow: 1,
123                      }
124                    },
125                    {
126                      breakpoint: 480,
127                      settings: {
128                        slidesToShow: 1,
129                      }
130                    }
131            ]
132        });
133        e(".twp-banner-slider,.wp-block-gallery.columns-1,.gallery-columns-1").slick({
134            autoplay: true,
135            infinite: true,
136            speed: 300,
137            arrow: false,
138            dots: false,
139            slidesToShow: 1,
140            slidesToScroll: 1,
141        });
142        e(".twp-featured-post-slider").slick({
143          cssEase: 'linear',
144          slidesToShow: 5,
145          slidesToScroll: 1,
146          autoplay: false,
147          infinite: true,
148          arrow: false,
149          dots: false,
150          centerMode: true,
151          responsive: [
152                  {
153                    breakpoint: 1200,
154                    settings: {
155                      slidesToShow: 2,
156                      centerMode: false,
157                    }
158                  },
159                  {
160                    breakpoint: 480,
161                    settings: {
162                      slidesToShow: 1,
163                      centerMode: false,
164                    }
165                  }
166          ]
167      });
168
169    }
170    n.galleryMagnificPopUp = function () {
171      e('.wp-block-gallery,.gallery').each(function () {
172        e(this).magnificPopup({
173            delegate: 'a',
174            type: 'image',
175            closeOnContentClick: false,
176            closeBtnInside: false,
177            mainClass: 'mfp-with-zoom mfp-img-mobile',
178            image: {
179                verticalFit: true,
180                titleSrc: function (item) {
181                    return item.el.attr('title');
182                }
183            },
184            gallery: {
185                enabled: true
186            },
187            zoom: {
188                enabled: true,
189                duration: 300,
190                opener: function (element) {
191                    return element.find('img');
192                }
193            }
194        });
195    });
196    },
197
198
199    n.twp_sticky_sidebar = function () {
200      jQuery('.widget-area').theiaStickySidebar({
201          additionalMarginTop: 30
202      });
203    },
204    e(window).on('load', function () { 
205      e('#status').fadeOut(); 
206      e('#preloader').delay(350).fadeOut('slow');  
207      e('body').delay(350).css({ 'overflow': 'visible' });
208   })
209
210    e(document).ready(function () {
211        n.DataBackground(),n.navigation(),n.mobileMenu(),n.slider(),n.tab_posts(),n.scroll_up(),n.newsletter_close(),n.twp_sticky_sidebar(),n.galleryMagnificPopUp();
212    }), e(window).scroll(function () {
213      n.stickyHeader(),n.progressBar();
214    }),e(window).resize(function(){
215    })
216
217})(jQuery);

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.