PageSourceSearch

https://kigi.bel.tr/tema/genel/assets/js/main.js

js kigi.bel.tr collected 2026-09-25 11:52:12 UTC 7,885 bytes, 296 lines download raw bytes

1(function(window) {
2    "use strict";
3
4    var mainContainer = document.querySelector(".main-wrap"),
5        openCtrl = document.getElementById("btn-search"),
6        openCtrl2 = document.getElementById("btn-search2"),
7        closeCtrl = document.getElementById("btn-search-close"),
8        searchContainer = document.querySelector(".search"),
9        inputSearch = searchContainer.querySelector(".search__input");
10
11    function init() {
12        initEvents();
13    }
14
15    function initEvents() {
16        openCtrl.addEventListener("click", openSearch);
17        openCtrl2.addEventListener("click", openSearch);
18        closeCtrl.addEventListener("click", closeSearch);
19        document.addEventListener("keyup", function(ev) {
20            // escape key.
21            if (ev.keyCode == 27) {
22                closeSearch();
23            }
24        });
25    }
26
27    function openSearch() {
28        mainContainer.classList.add("main-wrap--move");
29        searchContainer.classList.add("search--open");
30        setTimeout(function() {
31            inputSearch.focus();
32        }, 600);
33    }
34
35    function closeSearch() {
36        mainContainer.classList.remove("main-wrap--move");
37        searchContainer.classList.remove("search--open");
38        inputSearch.blur();
39        inputSearch.value = "";
40    }
41
42    init();
43})(window);
44
45$(function() {
46    setTimeout(function() {
47        $(".loader").addClass("hide");
48        $("html").addClass("loaded");
49    }, 500);
50});
51
52$(document).ready(function() {
53    $(".hamburger-box>.icon").click(function() {
54        $(".hamburger-box>.icon").toggleClass("active");
55    });
56});
57
58$(document).ready(function() {
59    $("#mobile-menu").mCustomScrollbar({
60        theme: "minimal"
61    });
62
63    $("#dismiss, .overlay").on("click", function() {
64        $("#mobile-menu").removeClass("active");
65        $("#sidebarCollapse").removeClass("active");
66        $(".overlay").removeClass("active");
67    });
68
69    $("#sidebarCollapse").on("click", function() {
70        $("#mobile-menu").addClass("active");
71        $(".overlay").addClass("active");
72        $(".collapse.in").toggleClass("in");
73        $("a[aria-expanded=true]").attr("aria-expanded", "false");
74    });
75
76    $(".drp-mobile-link").on("click", function() {
77        $(this)
78            .next(".drp-mobile")
79            .toggleClass("active");
80    });
81});
82
83$(document).ready(function() {
84    $(".header-dropdown .tab-link").on("click", function() {
85        var target = $(this).attr("datatarget");
86
87        $(target)
88            .parent()
89            .children(".tab-panel")
90            .removeClass("active");
91        $(target).addClass("active");
92
93        $(this)
94            .parent()
95            .children(".tab-link")
96            .removeClass("active");
97        $(this).addClass("active");
98    });
99
100    $(".tab-component .tab-head .tab-link").on("click", function() {
101        var target = $(this).attr("datatarget");
102
103        $(".tab-component .tab-body .tab-panel").removeClass("active");
104        $(target).addClass("active");
105
106        $(".tab-component .tab-body .tab-panel .do-nicescroll3").removeClass(
107            "active"
108        );
109        $(target + " .do-nicescroll3").addClass("active");
110        $(target).addClass("active");
111
112        $(".tab-component .tab-head .tab-link").removeClass("active");
113        $(this).addClass("active");
114    });
115	
116	$(".bagis-component .tab-head .tab-link").on("click", function() {
117        var target = $(this).attr("datatarget");
118
119        $(".bagis-component .tab-body .tab-panel").removeClass("active");
120        $(target).addClass("active");
121
122        $(".bagis-component .tab-body .tab-panel .do-nicescroll3").removeClass(
123            "active"
124        );
125        $(target + " .do-nicescroll3").addClass("active");
126        $(target).addClass("active");
127
128        $(".bagis-component .tab-head .tab-link").removeClass("active");
129        $(this).addClass("active");
130    });
131
132    $(".do-nicescroll3").niceScroll({
133        cursorwidth: 8,
134        cursoropacitymin: 0.6,
135        cursorcolor: "#3b557a",
136        cursorborder: "none",
137        cursorborderradius: 4,
138        autohidemode: "leave",
139        emulatetouch: true,
140        background: "#dde3e8",
141        railoffset: { top: 20, left: -20 },
142        cursorfixedheight: 250,
143        scrollbarid: "etkinlik-scroll"
144    });
145
146    $(".owl-carousel-etkinlik").owlCarousel({
147        loop: true,
148        nav: true,
149        items: 1,
150        navContainer: ".etkinlik-nav"
151    });
152    $(".owl-carousel-proje").owlCarousel({
153        loop: true,
154        nav: true,
155        items: 1,
156        responsiveClass: true,
157        navSpeed: 500,
158		navText:['<i class="fas fa-chevron-left"></i>','<i class="fas fa-chevron-right"></i>'],
159        navContainer: ".projeler-nav",
160        responsive: {
161            0: {
162                stagePadding: 0,
163                margin: 20
164            },
165            768: {
166                stagePadding: 0,
167                margin: 20
168            },
169            992: {
170                stagePadding: 100
171            },
172            1200: {
173                stagePadding: 250
174            },
175            1400: {
176                stagePadding: 250
177            },
178            1600: {
179                stagePadding: 400
180            }
181        }
182    });
183
184    $(".owl-carousel-festival").owlCarousel({
185        loop: false,
186        nav: true,
187        items: 1,
188        navContainer: ".festival-nav",
189        rewind: true
190    });
191
192    $(".owl-carousel-hizlimenu").owlCarousel({
193        loop: true,
194		nav: true,
195		autoplay:true,
196        items: 10,
197        stagePadding: 30,
198        margin: 15,
199        navContainer: ".hizlimenu-nav",
200        responsive: {
201            0: {
202                nav: true,
203                items: 2
204            },
205            768: {
206                nav: true,
207                items: 4
208            },
209            992: {
210                nav: true,
211                items: 5
212            },
213            1200: {
214                nav: true,
215                items: 7
216            },
217            1450: {
218                nav: true,
219                items: 8
220            },
221            1700: {
222                items: 10,
223                nav: true
224            }
225        }
226    });
227
228    $(".owl-carousel-fotogaleri").owlCarousel({
229        loop: true,
230        nav: true,
231        items: 3,
232        navContainer: ".fotogaleri-nav",
233        responsive: {
234            0: {
235                items: 1
236            },
237            768: {
238                items: 1
239            },
240            992: {
241                items: 2
242            },
243            1200: {
244                items: 3
245            },
246            1400: {
247                items: 3
248            },
249            1600: {
250                items: 3
251            }
252        }
253    });
254	
255	$(".owl-carousel-videogaleri").owlCarousel({
256        loop: true,
257        nav: true,
258        items: 3,
259        navContainer: ".videogaleri-nav",
260        responsive: {
261            0: {
262                items: 1
263            },
264            768: {
265                items: 1
266            },
267            992: {
268                items: 2
269            },
270            1200: {
271                items: 3
272            },
273            1400: {
274                items: 3
275            },
276            1600: {
277                items: 3
278            }
279        }
280    });
281
282    var btn = $("#page-up");
283
284    $(window).scroll(function() {
285        if ($(window).scrollTop() > 200) {
286            btn.addClass("active");
287        } else {
288            btn.removeClass("active");
289        }
290    });
291
292    btn.on("click", function(e) {
293        e.preventDefault();
294        $("html, body").animate({ scrollTop: 0 }, "300");
295    });
296});

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.