PageSourceSearch

https://www.eastwest-trading.de/out/child_revier/src/js/custom.js?1789272213

js eastwest-trading.de collected 2026-10-04 14:14:48 UTC 7,574 bytes, 266 lines download raw bytes

1$(document).ready(function () {
2    if ($('#pageheadersearch').length > 0) {
3        $("#pageheadersearch").submit(function (event) {
4            if ($('#pageheadersearch #searchParam').val() == '') {
5                event.preventDefault();
6            }
7        });
8    }
9    if ($('#re4PaymentNextStepBottom').length > 0) {
10        $("#re4PaymentNextStepBottom").click(function () {
11            $("#payment").submit();
12        });
13    }
14    // Startseitenslider:
15    showStartSlider('init');
16    var timer;
17    var timerSensitivity = 100;
18    $(window).bind('resize', function() {
19        timer && clearTimeout(timer);
20        timer = setTimeout(function() {
21            showStartSlider('resize');
22        }, timerSensitivity);
23    });
24    // Live Search:
25    $('#jquery-live-search').css('cssText', 'width: ' + $('#pageheadersearch').width() + 'px !important');
26    $(window).bind('resize', function() {
27        $('#jquery-live-search').css('cssText', 'width: ' + $('#pageheadersearch').width() + 'px !important');
28    })
29});
30
31function submitUnveil(formObject) {
32    $(formObject).submit();
33    $(document).ajaxComplete(function () {
34        $('#productList').find('img').unveil();
35    });
36}
37
38if ($('#partnericons').length > 0) {
39    $('#partnericons').slick({
40        infinite: false,
41        speed: 300,
42        slidesToShow: 4,
43        slidesToScroll: 1,
44        responsive: [
45            {
46                breakpoint: 920,
47                settings: {
48                    slidesToShow: 4,
49                    slidesToScroll: 1,
50                }
51            },
52            {
53                breakpoint: 736,
54                settings: {
55                    slidesToShow: 3,
56                    slidesToScroll: 1
57                }
58            },
59            {
60                breakpoint: 552,
61                settings: {
62                    slidesToShow: 2,
63                    slidesToScroll: 1
64                }
65            },
66            {
67                breakpoint: 368,
68                settings: {
69                    slidesToShow: 1,
70                    slidesToScroll: 1
71                }
72            }
73        ]
74    });
75}
76if ($('#topseller').length > 0) {
77    $('#topseller').slick({
78        infinite: false,
79        speed: 300,
80        slidesToShow: 4,
81        slidesToScroll: 1,
82        responsive: [
83            {
84                breakpoint: 920,
85                settings: {
86                    slidesToShow: 4,
87                    slidesToScroll: 1,
88                }
89            },
90            {
91                breakpoint: 736,
92                settings: {
93                    slidesToShow: 3,
94                    slidesToScroll: 1
95                }
96            },
97            {
98                breakpoint: 552,
99                settings: {
100                    slidesToShow: 2,
101                    slidesToScroll: 1
102                }
103            },
104            {
105                breakpoint: 368,
106                settings: {
107                    slidesToShow: 1,
108                    slidesToScroll: 1
109                }
110            }
111        ]
112    });
113}
114
115function slickAlsoBought() {
116    if ($('#alsobought').length > 0) {
117        $('#alsobought').slick({
118            infinite: false,
119            speed: 300,
120            slidesToShow: 4,
121            slidesToScroll: 1,
122            responsive: [
123                {
124                    breakpoint: 920,
125                    settings: {
126                        slidesToShow: 4,
127                        slidesToScroll: 1,
128                    }
129                },
130                {
131                    breakpoint: 736,
132                    settings: {
133                        slidesToShow: 3,
134                        slidesToScroll: 1
135                    }
136                },
137                {
138                    breakpoint: 552,
139                    settings: {
140                        slidesToShow: 2,
141                        slidesToScroll: 1
142                    }
143                },
144                {
145                    breakpoint: 368,
146                    settings: {
147                        slidesToShow: 1,
148                        slidesToScroll: 1
149                    }
150                }
151            ]
152        });
153    }
154}
155
156function disabledBasketBlinker() {
157    $("#nobasket").unbind("click");
158    $("#nobasket").click(function () {
159        $('#varselect')
160            .animate({borderColor: '#AE152A', backgroundColor: '#8A1165', color: '#ffffff'}, 250, 'linear')
161            .animate({borderColor: '#cccccc', backgroundColor: '#ffffff', color: '#333333'}, 250, 'linear')
162            .animate({borderColor: '#AE152A', backgroundColor: '#8A1165', color: '#ffffff'}, 250, 'linear')
163            .animate({borderColor: '#cccccc', backgroundColor: '#ffffff', color: '#333333'}, 250, 'linear')
164            .animate({borderColor: '#AE152A', backgroundColor: '#8A1165', color: '#ffffff'}, 250, 'linear');
165    });
166}
167
168function prgredir(url) {
169    $('<form action="/prg/receiver.php" method="post"><input type="hidden" name="url" value="' + url + '"></input></form>').appendTo('body').submit();
170}
171
172/* ----- LazyLoading im dd_menu: ----- */
173
174function megamenu_lazyload() {
175    setTimeout(function() {
176        $("#header .dropdown.open > .dd-nav-expand img").trigger("unveil");
177    }, 10);
178}
179
180$("#header .navbar-nav > li > a").mouseenter(function() {
181    megamenu_lazyload($(this).parent());
182});
183
184var dragging = false;
185$("html").on('touchmove', function(e) {
186    dragging = true;
187});
188
189$("#header .navbar-nav > li.dropdown > a").on('touchend', function(e) {
190    if (!dragging) {
191        megamenu_lazyload($(this).parent());
192        e.stopPropagation();
193        e.handled = true;
194    }
195});
196
197/* ----- LazyLoading in den Topsellern: ----- */
198
199function topsellermenu_lazyload() {
200    $("#topseller .slick-active img").addClass("geladen").trigger("unveil");
201}
202
203$("#topseller .slick-arrow").click(function() {
204    topsellermenu_lazyload($(this).parent());
205});
206
207
208/* ----- Listing: ----- */
209
210$(".ukat-toggle").click(function() {
211    $(".ukat-list").slideToggle(400);
212    $(".ukat").toggleClass('open');
213});
214
215
216
217/* ----- Zubehör-Button auf ADS: ----- */
218
219$(".zubehoerbutton").click(function() {
220    $('html, body').animate({
221        scrollTop: $("#zubehoer").offset().top - $('#header').height() - 10
222    }, 500);
223});
224
225
226
227/* Slider auf der Startseite: */
228
229function showStartSlider(sType) {
230    // blendet den Slider auf der Startseite ein, wenn die Seite fertig geladen ist oder das Fenster vergrößert wurde
231    var sliderDesktop           = $('.slider-wrapper'),
232        sliderMobile            = $('.slider-wrapper-mobile'),
233        placeHolderDesktop      = $('.slider-placeholder', sliderDesktop),
234        placeHolderMobile       = $('.slider-placeholder', sliderMobile);
235    if (placeHolderDesktop && placeHolderDesktop.is(":visible")) {
236        placeHolderDesktop.replaceWith(catchSliderOutput);
237        if (sType == "resize") {
238            $('.dd-slider', sliderDesktop).flexslider({
239                animation: "slide"
240            });
241        }
242    }
243    if (placeHolderMobile && placeHolderMobile.is(":visible")) {
244        placeHolderMobile.replaceWith(catchSliderOutputMobile);
245        if (sType == "resize") {
246            $('.dd-slider', sliderMobile).flexslider({
247                animation: "slide"
248            });
249        }
250    }
251}
252
253
254
255/* Payment Options */
256
257$('#payment input[type="radio"]').click(function() {
258    $('.activePayment').removeClass('activePayment')
259    $(this).parent().parent().find('dd').addClass('activePayment')
260});
261
262
263
264$(document).scroll(function () {
265    $('#jquery-live-search').slideUp(200);
266});

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.