PageSourceSearch

https://www.alpine-gastgeber.com/templates/responsive2/js/ui-engine.js

js alpine-gastgeber.com collected 2026-10-07 01:38:30 UTC 1,778 bytes, 63 lines download raw bytes

1(function($){
2	$(document).ready(function(){
3
4		$('.img-intro a').append('<span class="icon-search" />').magnificPopup({type:'image'});
5		$('.mfp-link').magnificPopup({type:'image'});
6		$('#shortcut-modules a span').before('<span class="bg-label" />');
7		$('.menu-open, .menu-close').on('click', function(){ $('#mainmenu').toggleClass('open'); });
8		$(document).on('click', function(event) {
9			if( ! $(event.target).closest("nav, .menu-open").length) {
10				$('#mainmenu').removeClass('open');
11			}
12		});
13		
14		$('#content .sis-container').each(function(){
15			$('a', this).magnificPopup({
16				type:'image',
17				gallery:{enabled:true}
18			})
19		});
20		
21		var topheight;
22		var resizeHandler = function() {
23			topheight = $('#top-container').outerHeight();
24			$('#top-spacer').height(topheight);
25			var $bc = $('#buttons-container');
26			$bc.removeClass('wrapped')
27			if ( $bc.height() > 60) { 
28				$bc.addClass('wrapped');
29			}
30		}
31		resizeHandler();
32		$(window).resize(function(){
33			clearTimeout(window.resizedFinished);
34			window.resizedFinished = setTimeout(resizeHandler, 250);
35		});
36
37		var triggerheight = topheight - 52;;
38		var scrollHandler = function() {
39			var scrolltop = $(window).scrollTop();
40			if (scrolltop < triggerheight) {
41				$('#top-container').removeClass('sticky');
42			} else {
43				$('#top-container').addClass('sticky');
44			}
45		}
46		scrollHandler();
47		$(window).scroll(scrollHandler);
48	});
49
50	$(window).on('load', function(){
51		setTimeout(function(){
52			var offset;
53			offset = $('#scrolltoarticle').parent().offset();
54			if (typeof offset === 'undefined') {
55				offset = $('#scrollhere').offset();
56			}
57			if (typeof offset !== 'undefined' && offset.top > 0) {
58				$('html, body').animate({ scrollTop: offset.top - 54 }, 1000);
59			}
60		},1000);
61	});
62
63})(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.