PageSourceSearch

https://elamed.pl/wp-content/themes/emg2022/js/scripts.js?ver=1790926333

js elamed.pl collected 2026-10-02 07:32:29 UTC 9,842 bytes, 320 lines download raw bytes

1$('#portfolio-tab .nav-link').on('click', function() {
2    console.log($(this).attr('data-bg'));
3    console.log('Click');
4
5    var icon = $(this).find('.ico');
6
7    var all_el = $('#portfolio-tab .nav-link');
8
9    $.each(all_el, function() {
10        var icon_el = $(this).find('.ico');
11
12        icon_el.css('background-color','');
13    })
14
15    icon.css('background-color', $(this).attr('data-bg'));
16});
17
18jQuery('.offcanvas-body .nav-link').on('click', function() {
19    let myOffCanvas = document.getElementById('offcanvasNavbar');
20    let openedCanvas = bootstrap.Offcanvas.getInstance(myOffCanvas);
21    openedCanvas.hide();
22});
23
24$('.nav-link.anhor').on('click', function() {
25    var href = $(this).attr('href');
26
27    $('html,body').animate(
28        {scrollTop: $(href).offset().top}
29    , 700);
30});
31
32
33
34$('#commentsCarousel').slick({
35    infinite: true,
36    slidesToShow: 1,
37    slidesToScroll: 1,
38    fade: true,
39    arrows: false,
40    dots: true,
41    adaptiveHeight: false
42});
43
44$('#eko-page-carousel').slick({
45    infinite: true,
46    slidesToShow: 1,
47    slidesToScroll: 1,
48    fade: true,
49    arrows: false,
50    dots: true,
51    adaptiveHeight: false
52});
53
54$('.main-hero__logos .carousel').slick({
55    infinite: true,
56    slidesToShow: 8,
57    slidesToScroll: 1,
58    arrows: false,
59    dots: false,
60    adaptiveHeight: false,
61    autoplay: true,
62    autoplaySpeed: 2000,
63    responsive: [
64        {
65          breakpoint: 1400,
66          settings: {
67            slidesToShow: 6
68          }
69        },
70        {
71          breakpoint: 1200,
72          settings: {
73            slidesToShow: 5,
74          }
75        },
76        {
77          breakpoint: 992,
78          settings: {
79            slidesToShow: 4,
80          }
81        },
82        {
83          breakpoint: 576,
84          settings: {
85            slidesToShow: 3,
86          }
87        },
88        {
89          breakpoint: 400,
90          settings: {
91            slidesToShow: 2,
92          }
93        }
94      ]
95});
96
97
98if($('#emgRules')) {
99    $.get( "https://dev.elamed.pl/agreements.php?agreement_id=4", function( data ) {
100        console.log( data );
101    });
102
103    /*<input class="form-check-input" type="checkbox" value="" id="flexCheckDefault">
104    <label class="form-check-label" for="flexCheckDefault">
105    Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin vulputate ut ex eu ultrices. Aliquam erat volutpat. 
106    </label>*/
107}
108
109
110
111
112window.addEventListener('scroll', function() {
113    if (window.scrollY > 50) {
114        $('.main-header').addClass('affixed');
115        $('.main-header .nav').addClass('dark');
116        $('.main-header .brand .gray').removeClass('d-none');
117        $('.main-header .brand .light').addClass('d-none');
118        $('.main-header header').addClass('py-2');
119        $('.main-header header').removeClass('py-3');
120        $('.main-header').addClass('border-bottom');
121    } else {
122        $('.main-header .nav').removeClass('dark');
123        $('.main-header').removeClass('affixed');
124        $('.main-header .brand .light').removeClass('d-none');
125       $('.main-header .brand .gray').addClass('d-none');
126       $('.main-header header').removeClass('py-2');
127        $('.main-header header').addClass('py-3');
128        $('.main-header').removeClass('border-bottom');
129    }
130});
131
132jQuery(document).on('scroll', function(e) {
133
134    var deltaY = e.originalEvent.deltaY;  
135    
136    if (e.type === 'touchmove') {
137        deltaY = e.originalEvent.touches[0].pageY;
138    }
139
140    var sceene_height = jQuery('.main-hero').height();
141    var vh = window.innerHeight;
142    
143    // console.log(sceene_height);
144    // console.log(vh);
145
146    if (window.scrollY > 50) {
147        $('.main-header').addClass('affixed');
148        $('.main-header .nav').addClass('dark');
149        $('.main-header .brand .gray').removeClass('d-none');
150        $('.main-header .brand .light').addClass('d-none');
151        $('.main-header header').addClass('py-2');
152        $('.main-header header').removeClass('py-3');
153        $('.main-header').addClass('border-bottom');
154    } else {
155        $('.main-header .nav').removeClass('dark');
156        $('.main-header').removeClass('affixed');
157        $('.main-header .brand .light').removeClass('d-none');
158       $('.main-header .brand .gray').addClass('d-none');
159       $('.main-header header').removeClass('py-2');
160        $('.main-header header').addClass('py-3');
161        $('.main-header').removeClass('border-bottom');
162    }
163
164    // if(window.scrollY >= sceene_height) {
165    //     $('.main-header .nav').addClass('dark');
166    //     $('.main-header .brand .gray').removeClass('d-none');
167    //     $('.main-header .brand .light').addClass('d-none');
168    // } else {
169    //     $('.main-header .nav').removeClass('dark');
170    //     $('.main-header .brand .light').removeClass('d-none');
171    //    $('.main-header .brand .gray').addClass('d-none');
172    // }
173
174
175
176    // Paginacja
177    if (window.scrollY > (vh-100)) {
178        $('#f_pagination1').addClass('active');
179    } else {
180        $('#f_pagination1').removeClass('active');
181    }
182    if (window.scrollY > (vh+600)) {
183        $('#f_pagination2').addClass('active');
184    }  else {
185        $('#f_pagination2').removeClass('active');
186    }
187    if (window.scrollY > (vh+1200)) {
188        $('#f_pagination3').addClass('active');
189    } else {
190        $('#f_pagination3').removeClass('active');
191    }
192    if (window.scrollY > (vh+1800)) {
193        $('#f_pagination4').addClass('active');
194    } else {
195        $('#f_pagination4').removeClass('active');
196    }
197    if (window.scrollY > (vh+2400)) {
198        $('#f_pagination5').addClass('active');
199    } else {
200        $('#f_pagination5').removeClass('active');
201    }
202    if (window.scrollY > (vh+3000)) {
203        $('#f_pagination6').addClass('active');
204    } else {
205        $('#f_pagination6').removeClass('active');
206    }
207
208    if (window.scrollY > (vh-100) && window.scrollY < (vh+600)) {
209       $('.content-vertical .item').removeClass('show');
210       $('.content-vertical-images .item').removeClass('show');
211
212       $('#f_content1').addClass('show');
213       $('#f_image1').addClass('show');
214    } else if(window.scrollY > (vh+600) && window.scrollY < (vh+1200)) {
215        $('.content-vertical .item').removeClass('show');
216        $('.content-vertical-images .item').removeClass('show');
217
218        $('#f_content2').addClass('show');
219        $('#f_image2').addClass('show');
220    } else if(window.scrollY > (vh+1200) && window.scrollY < (vh+1800)) {
221        $('.content-vertical .item').removeClass('show');
222        $('.content-vertical-images .item').removeClass('show');
223        
224        $('#f_content3').addClass('show');
225        $('#f_image3').addClass('show');
226    } else if(window.scrollY > (vh+1800) && window.scrollY < (vh+2400)) {
227        $('.content-vertical .item').removeClass('show');
228        $('.content-vertical-images .item').removeClass('show');
229        
230        $('#f_content4').addClass('show');
231        $('#f_image4').addClass('show');
232    } else if(window.scrollY > (vh+2400) && window.scrollY < (vh+3000)) {
233        $('.content-vertical .item').removeClass('show');
234        $('.content-vertical-images .item').removeClass('show');
235        
236        $('#f_content5').addClass('show');
237        $('#f_image5').addClass('show');
238    } else if(window.scrollY > (vh+3000)) {
239        $('.content-vertical .item').removeClass('show');
240        $('.content-vertical-images .item').removeClass('show');
241        
242        $('#f_content6').addClass('show');
243        $('#f_image6').addClass('show');
244    } else {
245        $('.content-vertical .item').removeClass('show');
246        $('.content-vertical-images .item').removeClass('show');
247    }
248
249    // EKO
250    if($('body').hasClass('home')) {
251        if(window.scrollY > (vh+4600)) {
252            $('#eko').addClass('step1');
253        } else {
254            $('#eko').removeClass('step1');
255        }
256        if(window.scrollY > (vh+5200)) {
257            $('#eko').addClass('step2');
258        } else {
259            $('#eko').removeClass('step2');
260        }
261        if(window.scrollY > (vh+5800)) {
262            $('#eko').addClass('step3');
263        } else {
264            $('#eko').removeClass('step3');
265        }
266        if(window.scrollY > (vh+6400)) {
267            $('#eko').addClass('step4');
268        } else {
269            $('#eko').removeClass('step4');
270        }
271
272        if(window.scrollY >
272 (vh+4600) && window.scrollY < (vh+5200)) {
273            $('.eko-item-1').addClass('active');
274        } else  {
275            $('.eko-item-1').removeClass('active');
276        }
277        
278        if(window.scrollY > (vh+5200) && window.scrollY < (vh+5800)) {
279            $('.eko-item-2').addClass('active');
280        } else {
281            $('.eko-item-2').removeClass('active');
282        }
283        
284        if(window.scrollY > (vh+5800) && window.scrollY < (vh+6400)) {
285            $('.eko-item-3').addClass('active');
286            
287        } else {
288            $('.eko-item-3').removeClass('active');
289        }
290        
291        if(window.scrollY > (vh+6400) && window.scrollY < (vh+7000)) {
292            $('.eko-item-4').addClass('active');
293
294        } else {
295            $('.eko-item-4').removeClass('active');
296        }
297
298        if(window.scrollY > (vh+5800)) {
299            $('.arrow-gray').addClass('d-none');
300            $('.arrow-white').removeClass('d-none');
301        } else {
302            $('.arrow-gray').removeClass('d-none');
303            $('.arrow-white').addClass('d-none');
304        }
305    }
306});
307
308
309if($('body').hasClass('home')) {
310    var controller = new ScrollMagic.Controller();
311    var vh = window.innerHeight;
312
313    new ScrollMagic.Scene({triggerElement: "#features", duration: (vh+3000), offset: vh/2})
314                    .setPin("#features")
315                    .addTo(controller);
316
317    new ScrollMagic.Scene({triggerElement: "#eko", duration: (vh+2000), offset: vh/2})
318                .setPin("#eko")
319                .addTo(controller);
320}

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.