PageSourceSearch

https://karstso.org.tr/tema/genel/assets/js/main.js

js karstso.org.tr collected 2026-09-29 11:56:46 UTC 10,245 bytes, 333 lines download raw bytes

1$(function() {
2    "use strict";
3    $(window).on('load', function(event) {
4        $('.preloader').delay(500).fadeOut(500);
5    });
6    $(window).on('scroll', function(event) {
7        var scroll = $(window).scrollTop();
8        if (scroll < 200) {
9            $(".navigation").removeClass("sticky");
10        } else {
11            $(".navigation").addClass("sticky");
12        }
13    });
14    $(".navbar-toggler").on('click', function() {
15        $(this).toggleClass('active');
16    });
17    $(".navbar-nav a").on('click', function() {
18        $(".navbar-toggler").removeClass('active');
19    });
20    var subMenu = $(".sub-menu-bar .navbar-nav .sub-menu");
21    if (subMenu.length) {
22        subMenu.parent('li').children('a').append(function() {
23            return '<button class="sub-nav-toggler"> <i class="fa fa-angle-down"></i> </button>';
24        });
25        var subMenuToggler = $(".sub-menu-bar .navbar-nav .sub-nav-toggler");
26        subMenuToggler.on('click', function() {
27            $(this).parent().parent().children(".sub-menu").slideToggle();
28            return false
29        });
30    }
31    $('.container').imagesLoaded(function() {
32        var $grid = $('.grid').isotope({
33            transitionDuration: '1s'
34        });
35        $('.project-menu ul').on('click', 'li', function() {
36            var filterValue = $(this).attr('data-filter');
37            $grid.isotope({
38                filter: filterValue
39            });
40        });
41        $('.project-menu ul li').on('click', function(event) {
42            $(this).siblings('.active').removeClass('active');
43            $(this).addClass('active');
44            event.preventDefault();
45        });
46    });
47
48    function mainSlider() {
49        var BasicSlider = $('.banner-active');
50        BasicSlider.on('init', function(e, slick) {
51            var $firstAnimatingElements = $('.single-banner:first-child').find('[data-animation]');
52            doAnimations($firstAnimatingElements);
53        });
54        BasicSlider.on('beforeChange', function(e, slick, currentSlide, nextSlide) {
55            var $animatingElements = $('.single-banner[data-slick-index="' + nextSlide + '"]').find('[data-animation]');
56            doAnimations($animatingElements);
57        });
58        BasicSlider.slick({
59            autoplay: true,
60            autoplaySpeed: 10000,
61            dots: false,
62            fade: true,
63            arrows: true,
64            prevArrow: '<span class="prev"><i class="fal fa-angle-left"></i></span>',
65            nextArrow: '<span class="next"><i class="fal fa-angle-right"></i></span>',
66            responsive: [{
67                breakpoint: 1330,
68                settings: {
69                    arrows: false
70                }
71            }]
72        });
73
74        function doAnimations(elements) {
75            var animationEndEvents = 'webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend';
76            elements.each(function() {
77                var $this = $(this);
78                var $animationDelay = $this.data('delay');
79                var $animationType = 'animated ' + $this.data('animation');
80                $this.css({
81                    'animation-delay': $animationDelay,
82                    '-webkit-animation-delay': $animationDelay
83                });
84                $this.addClass($animationType).one(animationEndEvents, function() {
85                    $this.removeClass($animationType);
86                });
87            });
88        }
89    }
90    mainSlider();
91    $('.news-slider-active').slick({
92        dots: true,
93        infinite: true,
94        autoplay: true,
95        autoplaySpeed: 5000,
96        fade: false,
97        arrows: true,
98        prevArrow: '<span class="prev" style="position: absolute; left: 10px; top: 50%; transform: translateY(-50%); z-index: 10; cursor: pointer; color: #fff; background: rgba(0,0,0,0.5); width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center;"><i class="fal fa-angle-left"></i></span>',
99        nextArrow: '<span class="next" style="position: absolute; right: 10px; top: 50%; transform: translateY(-50%); z-index: 10; cursor: pointer; color: #fff; background: rgba(0,0,0,0.5); width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center;"><i class="fal fa-angle-right"></i></span>',
100        speed: 1000,
101        slidesToShow: 1,
102        slidesToScroll: 1
103    });
104    $('.portfolio-active').slick({
105        dots: false,
106        infinite: true,
107        autoplay: true,
108        autoplaySpeed: 2000,
109        arrows: true,
110        prevArrow: '<span class="prev"><i class="fal fa-long-arrow-left"></i></span>',
111        nextArrow: '<span class="next"><i class="fal fa-long-arrow-right"></i></span>',
112        speed: 1000,
113        slidesToShow: 3,
114        slidesToScroll: 1,
115        responsive: [{
116            breakpoint: 1201,
117            settings: {
118                slidesToShow: 3,
119            }
120        }, {
121            breakpoint: 992,
122            settings: {
123                arrows: false,
124                slidesToShow: 2,
125            }
126        }, {
127            breakpoint: 768,
128            settings: {
129                arrows: false,
130                slidesToShow: 1,
131            }
132        }]
133    });
134    $('.leadership-active').slick({
135        dots: false,
136        infinite: true,
137        autoplay: true,
138        autoplaySpeed: 2000,
139        arrows: true,
140        prevArrow: '<span class="prev"><i class="fal fa-long-arrow-left"></i></span>',
141        nextArrow: '<span class="next"><i class="fal fa-long-arrow-right"></i></span>',
142        speed: 1000,
143        slidesToShow: 3,
144        slidesToScroll: 1,
145        responsive: [{
146            breakpoint: 1201,
147            settings: {
148                slidesToShow: 3,
149            }
150        }, {
151            breakpoint: 992,
152            settings: {
153                arrows: false,
154                slidesToShow: 2,
155            }
156        }, {
157            breakpoint: 768,
158            settings: {
159                arrows: false,
160                slidesToShow: 1,
161            }
162        }]
163    });
164    $('.brand-active').slick({
165        dots: false,
166        infinite: true,
167        autoplay: true,
168        autoplaySpeed: 1000,
169        arrows: false,
170        speed: 1000,
171        slidesToShow: 5,
172        slidesToScroll: 2,
173        responsive: [{
174            breakpoint: 1201,
175            settings: {
176                slidesToShow: 5,
177            }
178        }, {
179            breakpoint: 992,
180            settings: {
181                slidesToShow: 4,
182            }
183        }, {
184            breakpoint: 768,
185            settings: {
186                slidesToShow: 3,
187            }
188        }, {
189            breakpoint: 576,
190            settings: {
191                slidesToShow: 2,
192            }
193        }]
194    });
195    $('.case-studies-active').slick({
196        dots: false,
197        infinite: true,
198        autoplay: true,
199        autoplaySpeed: 3000,
200        arrows: true,
201        prevArrow: '<span class="prev"><i class="fal fa-angle-left"></i></span>',
202        nextArrow: '<span class="next"><i class="fal fa-angle-right"></i></span>',
203        speed: 1500,
204        slidesToShow: 4,
205        slidesToScroll: 1,
206        responsive: [{
207            breakpoint: 1201,
208            settings: {
209                slidesToShow: 3,
210            }
211        }, {
212            breakpoint: 992,
213            settings: {
214                slidesToShow: 3,
215                arrows: false,
216            }
217        }, {
218            breakpoint: 768,
219            settings: {
220                slidesToShow: 2,
221                arrows: false,
222            }
223        }, {
224            breakpoint: 576,
225            settings: {
226                slidesToShow: 1,
227                arrows: false,
228            }
229        }]
230    });
231    $('.shop-active').slick({
232        slidesToShow: 1,
233        slidesToScroll: 1,
234        arrows: false,
235        fade: false,
236        asNavFor: '.shop-thumb-active'
237    });
238    $('.shop-thumb-active').slick({
239        slidesToShow: 3,
240        slidesToScroll: 1,
241        asNavFor: '.shop-active',
242        dots: false,
243        centerMode: true,
244        arrows: false,
245        centerPadding: "0",
246        focusOnSelect: true
247    });
248    $('.video-popup').magnificPopup({
249        type: 'iframe'
250    });
251    $('.image-popup').magnificPopup({
252        type: 'image',
253        gallery: {
254            enabled: true
255        }
256    });
257    $('.counter').counterUp({
258        delay: 10,
259        time: 2000
260    });
261    $(window).on('scroll', function(event) {
262        if ($(this).scrollTop() > 600) {
263            $('.back-to-top').fadeIn(200)
264        } else {
265            $('.back-to-top').fadeOut(200)
266        }
267    });
268    $('.back-to-top').on('click', function(event) {
269        event.preventDefault();
270        $('html, body').animate({
271            scrollTop: 0,
272        }, 1500);
273    });
274    $('#circle1').circleProgress({
275        value: 0.75,
276        size: 230,
277        lineCap: "round",
278        emptyFill: "#f1f9ff",
279        thickness: "10",
280        fill: {
281            gradient: ["#006de8"]
282        }
283    });
284    $('#circle2').circleProgress({
285        value: 0.85,
286        size: 230,
287        lineCap: "round",
288        emptyFill: "#f1f9ff",
289        thickness: "10",
290        fill: {
291            gradient: ["#006de8"]
292        }
293    });
294    $('#circle3').circleProgress({
295        value: 0.50,
296        size: 230,
297        lineCap: "round",
298        emptyFill: "#f1f9ff",
299        thickness: "10",
300        fill: {
301            gradient: ["#006de8"]
302        }
303    });
304    $('#circle4').circleProgress({
305        value: 0.65,
306        size: 230,
307        lineCap: "round",
308        emptyFill: "#f1f9ff",
309        thickness: "10",
310        fill: {
311            gradient: ["#006de8"]
312        }
313    });
314    $('.add').click(function() {
315        if ($(this).prev().val()) {
316            $(this).prev().val(+$(this).prev().val() + 1);
317        }
318    });
319    $('.sub').click(function() {
320        if ($(this).next().val() > 1) {
321            if ($(this).next().val() > 1) $(this).next().val(+$(this).next().val() - 1);
322        }
323    });
324    $('select').niceSelect();
325    new WOW().init();
326    $('#simple_timer').syotimer({
327        year: 2020,
328        month: 5,
329        day: 9,
330        hour: 20,
331        minute: 30,
332    });
333});

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.