PageSourceSearch

https://www.hirsch-remchingen.de/files/script/main.js

js hirsch-remchingen.de collected 2026-10-07 01:49:49 UTC 2,897 bytes, 119 lines download raw bytes

1jQuery(document).ready(function($){
2
3	$('#section_1, #section_2, #section_3, #section_4').click (function (e) {
4   		$(this).addClass("is-full-width");
5   		e.preventDefault(); 
6
7   // setTimeout(function () {
8//        window.location.href = "index_2.html"; 
9//     }, 1200); 
10
11	});
12	
13	$('#section_1').click (function (e) {
14   		$(this).addClass("is-full-width");
15   		e.preventDefault(); 
16
17    setTimeout(function () {
18        window.location.href = "restaurant-und-speisekarte.html"; 
19	}, 1200); 
20 	});
21	
22	$('#section_2').click (function (e) {
23   		$(this).addClass("is-full-width");
24   		e.preventDefault(); 
25
26    setTimeout(function () {
27        window.location.href = "hotel-zimmer.html"; 
28	}, 1200); 
29 	});
30	
31	$('#section_3').click (function (e) {
32   		$(this).addClass("is-full-width");
33   		e.preventDefault(); 
34
35    setTimeout(function () {
36        window.location.href = "frisches-und-lesenswertes.html"; 
37	}, 1200); 
38 	});
39	
40	$('#section_4').click (function (e) {
41   		$(this).addClass("is-full-width");
42   		e.preventDefault(); 
43
44    setTimeout(function () {
45        window.location.href = "terrasse-garten.html"; 
46	}, 1200); 
47 	});
48
49
50
51	//check if background-images have been loaded and show list items
52	$('.cd-single-project').bgLoaded({
53	  	afterLoaded : function(){
54	   		showCaption($('.projects-container li').eq(0));
55	  	}
56	});
57
58
59	//close project
60	$('.projects-container .cd-close').on('click', function(){
61		toggleProject($('.is-full-width'), $('.projects-container'), false);
62	});
63    
64    
65
66	//scroll to project info
67	$('.projects-container .cd-scroll').on('click', function(){
68		$('.projects-container').animate({'scrollTop':$(window).height()}, 500); 
69	});
70
71
72	function showCaption(project) {
73		if(project.length > 0 ) {
74			setTimeout(function(){
75				project.addClass('is-loaded');
76				showCaption(project.next());
77			}, 150);
78		}
79	}
80});
81
82 /*
83 * BG Loaded
84 * Copyright (c) 2014 Jonathan Catmull
85 * Licensed under the MIT license.
86 */
87 (function($){
88 	$.fn.bgLoaded = function(custom) {
89	 	var self = this;
90
91		// Default plugin settings
92		var defaults = {
93			afterLoaded : function(){
94				this.addClass('bg-loaded');
95			}
96		};
97
98		// Merge default and user settings
99		var settings = $.extend({}, defaults, custom);
100
101		// Loop through element
102		self.each(function(){
103			var $this = $(this),
104				bgImgs = window.getComputedStyle($this.get(0), '::before').getPropertyValue('content').replace(/'/g, "").replace(/"/g, "").split(', ');
105			$this.data('loaded-count',0);
106			$.each( bgImgs, function(key, value){
107				var img = value.replace(/^url\(["']?/, '').replace(/["']?\)$/, '');
108				$('<img/>').attr('src', img).load(function() {
109					$(this).remove(); // prevent memory leaks
110					$this.data('loaded-count',$this.data('loaded-count')+1);
111					if ($this.data('loaded-count') >= bgImgs.length) {
112						settings.afterLoaded.call($this);
113					}
114				});
115			});
116
117		});
118	};
119})(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.