PageSourceSearch

https://regensburg-tourismus.gmbh/fileadmin/templates/_js/_main.js?1763377354

js regensburg-tourismus.gmbh collected 2026-10-09 23:51:32 UTC 2,206 bytes, 120 lines download raw bytes

1/// RESIZE HEADER ///
2function resizeHeader() {
3//    var offset = parseInt($("header").height());
4	var offset = 50;
5
6	$(window).scroll(function() {
7		if ($(this).scrollTop() > offset) {
8			$("body").addClass("scroll");
9		} else {
10			if ($("body").hasClass("scroll")) {
11				$("body").removeClass("scroll");
12			}
13		}
14	});
15}
16
17
18/// DOCUMENT READY ///
19$(document).ready(function(){
20
21	/// RESIZE HEADER ///
22	resizeHeader();
23
24	/// MENU ///
25	ma5menu({
26		menu: '.site-menu',
27		activeClass: 'current',
28		footer: '',
29		position: 'left',
30		closeOnBodyClick: true
31	});
32	
33	
34	/// Scroll to top ///
35	$(window).scroll(function(){
36		if ($(this).scrollTop() > 100) {
37			$('.toTop').fadeIn();
38		} else {
39			$('.toTop').fadeOut();
40		}
41	});
42	$('.toTop').click(function(){
43		$('html, body').animate({scrollTop : 0},800);
44		return false;
45	});
46		
47	/// ACCORDION ///
48	$(".accordionTitle, .accordionToggle").click(function(){ 
49		//$(this).parent().toggleClass("open");
50		$(this).parent().toggleClass("open").prev(".accordionContent").slideToggle("slow");
51	});
52/*
53	$(".accordionToggle").click(function(){ 
54		//$(this).parent().toggleClass("open");
55		$(this).parent().toggleClass("open").prev(".accordionContent").slideToggle("slow");
56	});
57*/
58
59/*
60	$(".accordionTitle").click(function(){
61        var $scrollto = this;                                                 
62		setTimeout(function(){
63        	$.scrollTo($scrollto,500,{offset:-150})
64		}, 500);
65    });
66*/
67
68
69	// Slider Imageslider  ///
70	var swiper = new Swiper('.swiperRed .swiper-container', {
71		loop: true,
72		//centeredSlides: true,
73		
74		navigation: {
75			nextEl: '.swiper-button-next',
76			prevEl: '.swiper-button-prev',
77		},
78		autoplay: {
79			delay: 5000
80		},
81		
82		slidesPerView: 1,
83		spaceBetween: 10,
84		
85
86		breakpoints: {
87			420: {
88				slidesPerView: 2,
89				spaceBetween: 10,
90			},
91			640: {
92				slidesPerView: 3,
93				spaceBetween: 30,
94			},
95			1000: {
96				slidesPerView: 3,
97				spaceBetween: 50,
98			}
99		}
100	});
101
102
103
104	// Slider Citation  ///
105	var swiper = new Swiper('.citation .swiper-container', {
106		loop: true,
107		centeredSlides: true,
108		
109		navigation: {
110			nextEl: '.swiper-button-next',
111			prevEl: '.swiper-button-prev',
112		},
113		autoplay: {
114			delay: 5000
115		}
116	});	
117
118		
119});
120

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.