PageSourceSearch

https://vivatex.dk/wp-content/themes/woostroid2/assets/js/theme-script.js?ver=1.0.11

js vivatex.dk collected 2026-09-27 07:40:43 UTC 1,626 bytes, 83 lines download raw bytes

1;var Woostroid2_Theme_JS;
2
3(function($) {
4	'use strict';
5
6	Woostroid2_Theme_JS = {
7
8		init: function() {
9			this.page_preloader_init();
10			this.toTopInit();
11			this.responsiveMenuInit();
12			this.magnificPopupInit();
13			this.swiperInit();
14		},
15
16		page_preloader_init: function(self) {
17
18			if ($('.page-preloader-cover')[0]) {
19				$('.page-preloader-cover').delay(500).fadeTo(500, 0, function() {
20					$(this).remove();
21				});
22			}
23		},
24
25		toTopInit: function() {
26			if ($.isFunction(jQuery.fn.UItoTop)) {
27				$().UItoTop({
28					text: '',
29					scrollSpeed: 600
30				});
31			}
32		},
33
34		responsiveMenuInit: function() {
35			if (typeof woostroid2ResponsiveMenu !== 'undefined') {
36				woostroid2ResponsiveMenu();
37			}
38		},
39
40		magnificPopupInit: function() {
41
42			if (typeof $.magnificPopup !== 'undefined') {
43
44				//MagnificPopup init
45				$('[data-popup="magnificPopup"]').magnificPopup({
46					type: 'image'
47				});
48
49				$(".gallery > .gallery-item a").filter("[href$='.png'],[href$='.jpg']").magnificPopup({
50					type: 'image',
51					gallery: {
52						enabled: true,
53						navigateByImgClick: true,
54					},
55				});
56
57			}
58		},
59
60		swiperInit: function() {
61			if (typeof Swiper !== 'undefined') {
62
63				//Swiper carousel init
64				var mySwiper = new Swiper('.swiper-container', {
65					// Optional parameters
66					loop: true,
67					spaceBetween: 10,
68                    autoHeight: true,
69
70					// Navigation arrows
71                    navigation: {
72                        nextEl: '.swiper-button-next',
73                        prevEl: '.swiper-button-prev'
74                    }
75				})
76
77			}
78		}
79	};
80
81	Woostroid2_Theme_JS.init();
82
83}(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.