PageSourceSearch

https://schaeufele.de/media/templates/site/j51_stella_schaeufelewirtschaft/js/scripts.js?4e46a8

js schaeufele.de collected 2026-10-03 17:37:11 UTC 3,479 bytes, 124 lines download raw bytes

1(function($) {"use strict";
2
3	$(document).ready(function() {
4
5		var templateOptions = Joomla.getOptions('j51_template');
6
7		// Add parent-hover class to hovered parent items
8		$('.hornav li').hover(function () {
9			$(this).addClass('parent-hover');
10			}, function () {
11			$(this).removeClass('parent-hover');
12		});
13
14		// Smoothscroll
15		$('.menu a').click(function() {
16			if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) {
17				var target = $(this.hash);
18				target = target.length ? target : $('[name=' + this.hash.slice(1) +']');
19				if (target.length) {
20					$('html,body').animate({
21					scrollTop: target.offset().top + parseInt(templateOptions.scrolltoOffset)
22					}, 800);
23					return false;
24				}
25			}
26		});
27
28		// Bootstrap stuff
29		$(document).ready(function()
30		{
31
32			// Turn radios into btn-group
33			$('.radio.btn-group label').addClass('btn');
34			$(".btn-group label:not(.active)").click(function()
35			{
36				var label = $(this);
37				var input = $('#' + label.attr('for'));
38
39				if (!input.prop('checked')) {
40					label.closest('.btn-group').find("label").removeClass('active btn-success btn-danger btn-primary');
41					if (input.val() == '') {
42						label.addClass('active btn-primary');
43					} else if (input.val() == 0) {
44						label.addClass('active btn-danger');
45					} else {
46						label.addClass('active btn-success');
47					}
48					input.prop('checked', true);
49				}
50			});
51			$(".btn-group input[checked=checked]").each(function()
52			{
53				if ($(this).val() == '') {
54					$("label[for=" + $(this).attr('id') + "]").addClass('active btn-primary');
55				} else if ($(this).val() == 0) {
56					$("label[for=" + $(this).attr('id') + "]").addClass('active btn-danger');
57				} else {
58					$("label[for=" + $(this).attr('id') + "]").addClass('active btn-success');
59				}
60			});
61		})
62
63	});
64})(jQuery);
65
66(function() {
67    document.addEventListener('DOMContentLoaded', function() {
68			var templateOptions = Joomla.getOptions("j51_template");
69
70			// Mobile menu
71			const menu = new MmenuLight(document.querySelector("#mobile-menu"));
72
73			const navigator = menu.navigation({
74				theme: "dark"
75			});
76	
77			const drawer = menu.offcanvas({
78				position: templateOptions.mobileMenuPosition
79			});
80	
81			document.querySelector('a[href="#mobile-menu"]')
82				.addEventListener('click', (evnt) => {
83					evnt.preventDefault();
84					drawer.open();
85				});
86
87		var executeThis = function() {
88			var continuousElements = document.getElementsByClassName("animate")
89			for (var i = 0; i < continuousElements.length; i++) {
90			  new Waypoint({
91			    element: continuousElements[i],
92			    handler: function() {
93			      this.element.classList.add("animated");
94			    },
95			    offset: "85%"
96			  })
97			}
98		};
99		
100		var checkWaypoint = function(){
101				if (typeof Waypoint === "undefined") {
102						setTimeout(checkWaypoint, 50);
103				} else {
104						executeThis();
105				}
106		};
107		checkWaypoint();
108    });
109})();
110
111function dodajAktywne(elem) {
112    var a = document.getElementsByTagName('a')
113    for (i = 0; i < a.length; i++) {
114        a[i].parentNode.classList.remove('active')
115    }
116    elem.parentNode.classList.add('active');
117}
118
119//Script fuer Teburio Tischreservierungssystem 01.05.2022
120(function( d, s, f, js, fjs) {
121  (js = d.createElement(s)), (fjs = d.getElementsByTagName(s)[0]);
122  js.src = f; js.async = 1;
123  fjs.parentNode.insertBefore(js, fjs);
124})( document, "script", "https://static.teburio.de/w2.js?id=wdJZJxejcJCmmKnoa");

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.