PageSourceSearch

https://proficalbe.de/typo3conf/ext/baumarkt_sitepackage/Resources/Public/JavaScript/script.js?1771482953

js proficalbe.de collected 2026-10-07 04:32:03 UTC 10,100 bytes, 277 lines download raw bytes

1jQuery(document).ready(function($) {
2
3
4
5 /**
6	* Close modal
7	*/
8	$( ".mw-links-modal" ).click(function() {
9					$( ".mw-modal" ).toggleClass('mw-show');
10	});
11	$( ".mw-modal-overlay" ).click(function() {
12					$( ".mw-modal" ).removeClass('mw-show');
13	});
14	$( ".mw-modal-close" ).click(function() {
15					$( ".mw-modal" ).removeClass('mw-show');
16	});
17
18	var additionalHeight = 0;
19			//StickyHeader
20			$(window).on('scroll', function () {
21
22                    scroll = $(window).scrollTop(),
23                    scrollTop = $( ".mw-header" ).outerHeight(true);
24
25                    if($('.mw-header-top').outerHeight(true) > 0) {
26                        additionalHeight = $('.mw-header-top').outerHeight(true);
27                    }
28
29					if (scroll > scrollTop) {
30                        $('.mw-header-top').addClass('sticky');
31                        $( ".mw-header-main" ).addClass('sticky');
32                        $('.mw-header-sticky').addClass('sticky');
33                        if(additionalHeight > 0) {
34                            $( ".mw-header-main" ).css('top', additionalHeight + 'px');
35                        }
36					} else {
37                        $('.mw-header-top').removeClass('sticky');
38                        $( ".mw-header-main" ).removeClass('sticky');
39                        $('.mw-header-sticky').removeClass('sticky');
40                        $( ".mw-header-main" ).removeAttr('style');
41					}
42
43
44			});
45/*
46			$(window).on('resize', function () {
47
48					var newHeight = $(".mw-header-main").outerHeight();
49					$(".mw-header-sticky").height(newHeight);
50
51			}).trigger('resize');
52*/
53var newHeight = $(".mw-header-main").outerHeight() + $('.mw-header-top').outerHeight();
54$(".mw-header-sticky").height(newHeight);
55
56
57
58
59// Scroll Top
60		var $scrollTop = $('.mw-backtotop');
61		var scrollBottomHeight = $(window).scrollTop() + $(window).height();
62		$(window).scroll(function () {
63
64				if ($(window).scrollTop() > $(window).height()) {
65						$scrollTop.addClass('mw-show');
66				} else {
67						$scrollTop.removeClass('mw-show');
68				}
69
70
71				/*
72				if($(window).scrollTop() + $(window).height() > ($(document).height() - 2*($(window).height())) ) {
73						$(".mw-links-sticky").removeClass('mw-show');
74
75				} else {
76						$(".mw-links-sticky").addClass('mw-show');
77
78				}
79				if($(window).scrollTop() + $(window).height() > ($(document).height() - $(window).height()) ) {
80
81						$scrollTop.addClass('mw-show');
82				} else {
83
84						$scrollTop.removeClass('mw-show');
85				}
86*/
87
88			});
89
90		// Scroll effect button top
91		$scrollTop.on('click', function (event) {
92				event.preventDefault();
93				$('html, body').stop().animate({
94								scrollTop: 0
95						},
96						800
97				);
98		});
99
100
101
102
103	// //Initialize Swiper
104	// var swiper = new Swiper('.swiper-container', {
105	//   pagination: {
106	//     el: '.swiper-pagination',
107	//     clickable: true,
108	//   },
109	// 	/*
110	//   navigation: {
111	//     nextEl: '.swiper-button-next',
112	//     prevEl: '.swiper-button-prev',
113	//   },
114	// 	*/
115    //
116	//   autoplay: {
117	//     delay: 5000,
118	//   },
119    //
120	// });
121
122// Search
123    $('.mw-search-icons').keypress(function (event) {
124        if (event.which === 13) {
125            $(this).click();
126        }
127    });
128	$( ".mw-search-icons" ).click(function(){
129			$( this ).toggleClass( "mw-search-active" );
130			$( this ).parents(".mw-header-main").toggleClass( "mw-search-active" );
131	});
132
133// Main Menu
134	if( /Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent) ) {
135        $( ".mw-menu .mw-nav-parent>a" ).click(function(){
136            $( this ).parent().toggleClass( "mw-active" ).find('.mw-nav-parent').removeClass( "mw-active" );
137            $( this ).parent().siblings('.mw-nav-parent').removeClass( "mw-active" );
138            if ($( this ).parent().parent().hasClass('mw-nav-level-2')) {
139                  $( this ).parent().parent().parent().siblings('.mw-nav-parent').find('.mw-nav-parent').removeClass( "mw-active" );
140            }
141        });
142    } else {
143        $( ".mw-menu .mw-nav-parent" ).hover(
144            function() {
145                $( this ).addClass( "mw-active" );
146            }, function() {
147                $( this ).removeClass( "mw-active" );
148            }
149        );
150        // $( ".mw-menu .mw-nav-parent" ).hover( function(){
151        //     $( this ).toggleClass( "mw-active" );
152        // });
153    }
154    $('.mw-menu .mw-nav > .mw-nav-parent > a[role="menuitem"]').on('focus', function() {
155        $('.mw-menu .mw-nav-parent').removeClass('mw-active');
156        $(this).closest('.mw-nav-parent').addClass('mw-active');
157    });
158
159// Offcanvas Menu
160// Slide In
161    $( ".mw-offcanvas-burger" ).click(function(){
162        $( this ).next(".mw-offcanvas-content").toggleClass( "mw-active" );
163    });
164    $( ".mw-offcanvas-close, .mw-offcanvas-overlay" ).click(function(){
165        $( this ).closest(".mw-offcanvas-content").toggleClass( "mw-active" );
166    });
167
168// OpenClose
169
170	$(".mw-offcanvas").find("li.mw-nav-parent > .mw-nav-more").on("click", function(e) {
171				e.preventDefault();
172				$(this).closest("li").siblings().find("ul.mw-nav-level").slideUp();
173
174				$(this).closest("li").siblings().find("li.mw-nav-parent").removeClass("mw-active");
175
176			  $(this).closest("li").siblings().removeClass("mw-active");
177			  $(this).closest("li").children("ul.mw-nav-level").slideToggle();
178			  $(this).closest("li").toggleClass("mw-active");
179	 });
180
181   // OpenClose
182  $(".mw-acc").find("a.mw-acc-header").on("click", function(e) {
183        e.preventDefault();
184        $(this).closest(".mw-acc-element").siblings().find(".mw-acc-main").slide
184Up();
185        $(this).closest(".mw-acc-element").siblings().removeClass("mw-active");
186        $(this).closest(".mw-acc-element").children(".mw-acc-main").slideToggle();
187        $(this).closest(".mw-acc-element").toggleClass("mw-active");
188    });
189
190    $(".media2click-haspreview").hover(
191        function() {
192            $( this ).find('.media2click-placeholder-inner').show();
193            $( this ).find('.media2click-controls').show();
194        }, function() {
195            $( this ).find('.media2click-placeholder-inner').hide();
196            $( this ).find('.media2click-controls').hide();
197        }
198    );
199
200    $('#eingabe').on('change keyup paste',function(e){
201        val1 = $('#eingabe').val() * 2.676284;
202        val2 = $('#eingabe').val() * 0.191085;
203        val3 = 0.2663997868801705;
204        val4 = $('#eingabe').val() * 10.046119148;
205        $('.v1').text(val1.toFixed(2));
206        $('.v2').text(val2.toFixed(2));
207        $('.v3').text(val3.toFixed(2));
208        $('.v4').text(val4.toFixed(2));
209    });
210
211    $('#raiffeisenWareBayerischerWaldKundenkonto-31211 .statictext-11').hide();
212    $('#raiffeisenWareBayerischerWaldKundenkonto-31211 .form-group-raiffeisenWareBayerischerWaldKundenkonto-31211-checkbox-2').hide();
213
214// Datenschutzhinweise
215//    $('#raiffeisenWareBayerischerWaldKundenkonto-31211 .statictext-2').hide();
216//   $('#raiffeisenWareBayerischerWaldKundenkonto-31211 .form-group-raiffeisenWareBayerischerWaldKundenkonto-31211-linkedcheckbox-2').hide();
217    $('#raiffeisenWareBayerischerWaldKundenkonto-31211 .statictext-5').hide();
218    $('#raiffeisenWareBayerischerWaldKundenkonto-31211 .statictext-10').hide();
219
220// Einverständnis Bankauskunft
221//    $('#raiffeisenWareBayerischerWaldKundenkonto-31211 .statictext-3').hide();
222//    $('#raiffeisenWareBayerischerWaldKundenkonto-31211 .form-group-raiffeisenWareBayerischerWaldKundenkonto-31211-checkbox-1').hide();
223
224    $('#raiffeisenWareBayerischerWaldKundenkonto-31211 .statictext-8').hide();
225    $('#raiffeisenWareBayerischerWaldKundenkonto-31211 .statictext-1').hide();
226    $('#raiffeisenWareBayerischerWaldKundenkonto-31211 .form-group-raiffeisenWareBayerischerWaldKundenkonto-31211-text-12').hide();
227    $('#raiffeisenWareBayerischerWaldKundenkonto-31211 .form-group-raiffeisenWareBayerischerWaldKundenkonto-31211-text-13').hide();
228    $('#raiffeisenWareBayerischerWaldKundenkonto-31211 .form-group-raiffeisenWareBayerischerWaldKundenkonto-31211-text-14').hide();
229
230    $('#raiffeisenWareBayerischerWaldKundenkonto-31211-singleselect-2').on('change',function(e){
231
232        $('.statictext-11').hide();
233        $('.form-group-raiffeisenWareBayerischerWaldKundenkonto-31211-checkbox-2').hide();
234//        $('.statictext-2').hide();
235//        $('.form-group-raiffeisenWareBayerischerWaldKundenkonto-31211-linkedcheckbox-2').hide();
236        $('.statictext-5').hide();
237        $('.statictext-10').hide();
238
239//        $('.statictext-3').hide();
240//        $('.form-group-raiffeisenWareBayerischerWaldKundenkonto-31211-checkbox-1').hide();
241
242        $('.statictext-8').hide();
243        $('.statictext-1').hide();
244        $('.form-group-raiffeisenWareBayerischerWaldKundenkonto-31211-text-12').hide();
245        $('.form-group-raiffeisenWareBayerischerWaldKundenkonto-31211-text-13').hide();
246        $('.form-group-raiffeisenWareBayerischerWaldKundenkonto-31211-text-14').hide();
247
248        var selectedOption = $('#raiffeisenWareBayerischerWaldKundenkonto-31211-singleselect-2').find(":selected").val();
249        if(selectedOption === 'LastscLastschriftverfahrenhriftverfahren') {
250            $('.statictext-8').show();
251            $('.statictext-1').show();
252            $('.form-group-raiffeisenWareBayerischerWaldKundenkonto-31211-text-12').show();
253            $('.form-group-raiffeisenWareBayerischerWaldKundenkonto-31211-text-13').show();
254            $('.form-group-raiffeisenWareBayerischerWaldKundenkonto-31211-text-14').show();
255
256            // Datenschutzhinweise
257//            $('.statictext-2').show();
258//            $('.form-group-raiffeisenWareBayerischerWaldKundenkonto-31211-linkedcheckbox-2').show();
259
260	    // Einverstaendnis Bankauskunft
261//            $('.statictext-3').show();
262//            $('.form-group-raiffeisenWareBayerischerWaldKundenkonto-31211-checkbox-1').show();
263
264        }
265
266        if(selectedOption === 'VorkaVorkassesse') {
267            // $('.statictext-11').show();
268            // $('.form-group-raiffeisenWareBayerischerWaldKundenkonto-31211-checkbox-2').show();
269            $('.statictext-5').show();
270            $('.statictext-10').show();
271        }
272
273
274    });
275
276
277});

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.