PageSourceSearch

https://www.brennekeusa.com/typo3conf/ext/brennekeusa/Resources/Public/js/ini.js?1730190771

js brennekeusa.com collected 2026-09-26 15:40:17 UTC 5,732 bytes, 214 lines download raw bytes

1$(function(){
2	
3	$(window).scroll(function() {
4	    var windscroll = $(window).scrollTop();
5	    if(windscroll>=20){
6	        $('body').addClass('reduced');
7	    } else {
8		    $('body').removeClass('reduced');
9	    }
10	    //
11	    if ($(this).scrollTop() > 100) {
12			$('#btn_top').stop().fadeIn();
13		} else {
14			$('#btn_top').stop().fadeOut();
15		}
16	}).scroll();
17	
18	$("a").on('click', function(event) {
19	    if (this.hash !== "") {
20	    	event.preventDefault();
21			var hash = this.hash;
22			$('html, body').animate({scrollTop: $(hash).offset().top - 56}, 800, function(){});
23		}
24	});
25	
26	$("#id_modal_agecheck_privacypolicy_enter").on('click', function(event) {
27	    $.fancybox.close();
28	});
29	
30	
31	$('#id_mobile_menu_wrapper ul li.has-sub').click(function() {
32		if ($(this).hasClass('active')) {
33			$(this).removeClass('active');
34		} else {
35			$(this).addClass('active');
36		}
37		$(this).find('.sub').slideToggle();
38	});
39	
40	$('#id_menu_btn').click(function() {
41		if ($('body').hasClass('menu-opened')) {
42			$('body').removeClass('menu-opened');
43			$('#id_overlay').fadeOut();
44			$('#id_mobile_menu_wrapper').fadeOut();
45		} else {
46			$('body').addClass('menu-opened');
47			$('#id_overlay').fadeIn();
48			$('#id_mobile_menu_wrapper').fadeIn();
49		}
50	});
51	
52	$('#id_menu_close').click(function() {
53		if ($('body').hasClass('menu-opened')) {
54			$('body').removeClass('menu-opened');
55			$('#id_overlay').fadeOut();
56			$('#id_mobile_menu_wrapper').fadeOut();
57		} else {
58			$('body').addClass('menu-opened');
59			$('#id_overlay').fadeIn();
60			$('#id_mobile_menu_wrapper').fadeIn();
61		}
62	});
63	
64	
65	
66	$('a.has-mega-menu').on('click', function(){
67		$('.mega-menu').each(function() {
68		    $(this).hide();
69		});
70		$('body').addClass('menu-opened');
71		$(this).siblings('.mega-menu').show();
72	});
73	
74	$('a.mega-menu-close').on('click', function(){
75		$('.mega-menu').each(function() {
76		    $(this).hide();
77		});
78		$('body').removeClass('menu-opened');
79	});
80	
81	
82	/*
83	$('#id_filter_type_buechsenmunition').click(function() {
84		$('#id_filter_wildart').show();
85	});
86	$('#id_filter_type_flintenmunition').click(function() {
87		$('#id_filter_wildart').show();
88	});
89	$('#id_filter_type_behoerdenmunition').click(function() {
90		$('#id_filter_wildart').hide();
91	});
92	
93	$('#id_filter_type_hunting').click(function() {
94		$('#id_filter_wildart').show();
95	});
96	$('#id_filter_type_bear').click(function() {
97		$('#id_filter_wildart').hide();
98	});
99	$('#id_filter_type_law').click(function() {
100		$('#id_filter_wildart').hide();
101	});
102	*/
103	
104	
105});
106
107function loadAnalytics(){
108	console.log("loadAnalytics");
109	window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date;
110	ga('create', 'UA-xxx-x', 'auto');
111	ga('set', 'anonymizeIp', true);
112	ga('send', 'pageview');
113	var gascript = document.createElement("script");
114	gascript.async = true;
115	gascript.src = "https://www.google-analytics.com/analytics.js";
116	document.getElementsByTagName("head")[0].appendChild(gascript, document.getElementsByTagName("head")[0]);              
117}
118
119function gaOptout(){
120	var deleteDate = new Date();
121	deleteDate.setTime(deleteDate.getTime()-(864000000));
122	deleteDate = deleteDate.toGMTString();
123	aCookies=document.cookie.split('; ');
124	for (i=0;i<aCookies.length;i++){
125		aCookie = aCookies[i].split('=');
126		document.cookie = aCookie[0]+'=0; expires='+deleteDate+'; path=/';
127	}
128	alert('Das Tracking durch Google Analytics wurde in Ihrem Browser für diese Website deaktiviert.'); 
129	return false;              
130}
131
132$(document).ready(function() {
133	
134	$("#id_year").text((new Date).getFullYear());
135	
136	if ($('.slider').length > 0) {
137		$(".slider").slick({
138			slidesToShow: 4,
139			slidesToScroll: 4,
140			autoplaySpeed: 8000,
141			dots: true,
142			arrows: true,
143			autoplay: true,
144	        responsive: [
145	        {
146	          breakpoint: 900,
147	          settings: {
148	            slidesToShow: 1,
149				dots: true,
150	            slidesToScroll: 1,
151	          }
152	        }
153	      ]
154		}); 
155	}
156	
157	if ($('.grid').length > 0) {
158		// init Isotope
159		var $grid = $('.grid').isotope({
160	  	itemSelector: '.element-item'
161		});
162		// filter functions
163		var filterFns = {
164	  	// show if number is greater than 50
165	  	numberGreaterThan50: function() {
166	    	var number = $(this).find('.number').text();
167	    	return parseInt( number, 10 ) > 50;
168	  	},
169	  	// show if name ends with -ium
170	  	ium: function() {
171	    	var name = $(this).find('.name').text();
172	    	return name.match( /ium$/ );
173	  	}
174		};
175		// bind filter button click
176		$('.filters-button-group').on( 'click', 'button', function() {
177	  	var filterValue = $( this ).attr('data-filter');
178	  	// use filterFn if matches value
179	  	filterValue = filterFns[ filterValue ] || filterValue;
180	  	$grid.isotope({ filter: filterValue });
181		});
182		// change is-checked class on buttons
183		$('.button-group').each( function( i, buttonGroup ) {
184	  	var $buttonGroup = $( buttonGroup );
185	  	$buttonGroup.on( 'click', 'button', function() {
186	    	$buttonGroup.find('.is-checked').removeClass('is-checked');
187	    	$( this ).addClass('is-checked');
188	  	});
189		});
190	
191		$('.grid-gallery').isotope({
192	  	itemSelector: '.gallery-element-item',
193	  	masonry: {
194	    	fitWidth: true
195	  	}
196		});
197	}
198	
199	function replaceSymbols() {
200        $('*').each(function() {
201            $(this).contents().filter(function() {
202                return this.nodeType === Node.TEXT_NODE;
203            }).each(function() {
204                let text = $(this).text();
205            	let replacedText = text.replace(/®/g, '<sup>®</sup>').replace(/™/g, '<sup>™</sup>').replace('<sup><sup>', '<sup>').replace('</sup></sup>', '</sup>');
206            	if (replacedText !== text) {
207                	$(this).replaceWith(replacedText);
208            	}
209            });
210        });
211    }
212    replaceSymbols();
213
214});

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.