PageSourceSearch

https://www.izmir-taa.org.tr/static/js/app.js

js izmir-taa.org.tr collected 2026-10-08 05:57:11 UTC 15,684 bytes, 421 lines download raw bytes

1jQuery(function () {
2
3    LoadingClose();
4
5    //headerFixed();
6    scrollToTop();
7
8    new WOW().init();
9
10    $('.sitemenu').stellarNav();
11
12    var solmenu = $(".solmenu");
13    if (solmenu && solmenu.length > 0) {
14        var path = window.location.pathname;
15        path = path.replace(/\/$/, "");
16        path = decodeURIComponent(path);
17
18        solmenu + $(" li:has(ul)").addClass("submenu");
19        solmenu + $(" a").each(function () {
20            var href = $(this).attr('href');
21            if (path === href) {
22                $(this).closest("li a").addClass("active");
23                $(this).parents("li").addClass("active");
24            }
25        });
26    }
27
28    // alert close
29    $('.close').click(function () {
30        $('.alert').hide();
31    });
32
33    //$('img').error(function () {
34    //    $(this).attr('src', '/user_files/noimages.png');
35    //});
36
37    sss();
38
39    $('.btn.validate').on('click', function () {
40        debugger;
41        var a = $('#form1').validationEngine('validate');
42        if (a && a == true) {
43            LoadingOpen();
44        }
45        return a;
46    });
47
48    $('#ddl_diller').on('change', function () {
49        var link = $(this).val();
50        if (link && link != "") {
51            window.location.href = link;
52        }
53    });
54
55    $(".btn_solmenu").click(function () {
56        $(".sidebar-content").toggle("slow");
57    });
58
59    owlSlider();
60
61    var controller = new slidebars;
62    controller.init(), $(".mobile_button_inner").on("click", function (e) {
63        return controller.toggle("id-1"), $(this).toggleClass("is-active"), !1
64    })
65});
66
67function menuWidthBelirle() {
68    var windowW = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth;
69
70    var dilW = $(".diller").outerWidth() + 15;
71    var SosyalW = $('.sosyal_icon').outerWidth() + 55;
72    var logoW = $(".logo").outerWidth();
73
74    if (isNaN(SosyalW))
75        SosyalW = 0;
76
77    if (isNaN(dilW))
78        dilW = 0;
79
80    //if (windowW > 1266) {
81    //    $('.sitemenu').css({
82    //        width: windowW - ((dilW + 15) + logoW + SosyalW) - 80,
83    //        //marginLeft: logoW
84    //    });
85
86    //    $('.sitemenu > ul > li').css({
87    //        width: $('.sitemenu').outerWidth() / $('.sitemenu > ul > li').length - 25
88    //    });
89    //}
90
91
92    //$('.slogan').css("width", windowW - logoW - 80);
93
94    //if (windowW < 1160 && windowW > 767) {
95    //    $('.slogan').css("line-height", $(".logo").height() + "px");
96    //}
97
98    //console.log($('.sitemenu').outerWidth());
99}
100
101
102$(window).on('load', function () {
103    menuWidthBelirle();
104    $(window).on('resize', function () {
105        menuWidthBelirle();
106    });
107
108    var ww = $(window).outerWidth();
109    var headerHeight = $("header").height();
110    var url = $(location).attr('href');
111    if (url.indexOf("#") != -1) {
112        var id = url.split("#");
113        var $target = $('#' + id[id.length - 1]);
114        if ($target.length) {
115            var pos = $target.offset().top - headerHeight;
116            $('html, body').animate({ scrollTop: pos }, 500);
117        }
118    }
119});
120
121function LoadingClose() {
122    $(".loader-content").show();
123    $(".loader").delay(350).fadeOut("slow");
124}
125
126function LoadingOpen() {
127    $(".loader-content").show();
128    $(".loader").fadeIn();
129}
130
131function owlSlider() {
132    var prev_button = "<i class='fa fa-angle-left none'></i>";
133    var next_button = "<i class='fa fa-angle-right none'></i>";
134
135    $('#banner').owlCarousel({
136        items: 1,
137        margin: 0,
138        autoHeight: true,
139        nav: true,
140        autoplay: true,
141        autoplayTimeout: 3000,
142        autoplayHoverPause: true,
143        navText: [prev_button, next_button]
144    });
145
146    $('#icerik_gorselleri').owlCarousel({
147        items: 1,
148        margin: 0,
149        autoHeight: true,
150        nav: true,
151        navText: [prev_button, next_button]
152    });
153
154    $('#anasayfa_orta').owlCarousel({
155        items: 1,
156        margin: 0,
157        autoHeight: true,
158        nav: false,
159        dots: true,
160        autoplay: true,
161        autoplayTimeout: 3000,
162        autoplayHoverPause: true,
163        navText: [prev_button, next_button]
164    });
165
166    $('.loop').owlCarousel({
167        items: 3,
168        margin: 20,
169        loop: true,
170        autoHeight: true,
171        nav: true,
172        dots: false,
173        navText: [prev_button, next_button],
174        responsiveClass: true,
175        responsive: {
176            0: { items: 1 },
177            480: { items: 2 },
178            568: { items: 2 },
179            640: { items: 2 },
180            667: { items: 2 },
181            736: { items: 2 },
182            768: { items: 2 },
183            992: { items: 3 },
184            1024: { items: 3 },
185            1200: { items: 3 }
186        }
187    });
188
189    $('.loop2').owlCarousel({
190        items: 5,
191        margin: 20,
192        loop: true,
193        autoHeight: true,
194        nav: true,
195        dots: false,
196        navText: [prev_button, next_button],
197        responsiveClass: true,
198        responsive: {
199            0: { items: 2 },
200            480: { items: 2 },
201            568: { items: 3 },
202            640: { items: 3 },
203            667: { items: 3 },
204            736: { items: 3 },
205            768: { items: 3 },
206            992: { items: 4 },
207            1024: { items: 5 },
208            1200: { items: 5 }
209        }
210    });
211}
212
213function popupAc() {
214    $.fancybox.open({
215        src: '.popup',
216        type: 'inline'
217    })
218}
219
220function scrollToTop() {
221    var link = $('#to-top');
222    var windowW = window.innerWidth
223        || document.documentElement.clientWidth
224        || document.body.clientWidth;
225
226    $(window).scroll(function () {
227        if (($(this).scrollTop() > 150) && (windowW > 991)) {
228            link.fadeIn(100);
229        } else {
230            link.fadeOut(100);
231        }
232    });
233
234    link.click(function () {
235        $('html, body').animate({ scrollTop: 0 }, 500);
236        return false;
237    });
238};
239
240function headerFixed() {
241    $(window).scroll(function () {
242        var header = $('header');
243        var headerHeight = header.height();
244        var scroll = $(window).scrollTop();
245
246        if (scroll >= headerHeight) {
247            header.addClass('header_fixed');
248            $('body').css('padding-top', headerHeight);
249        }
250        else {
251            header.removeClass('header_fixed');
252            $('body').removeAttr('style');
253        }
254    });
255}
256
257function checkEmail(email) {
258    var filter = /^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,4})$/;
259
260    if (!filter.test(email)) {
261        return false;
262    }
263    else {
264        return true;
265    }
266}
267
268function uyariMdl(_mesaj, _type, _redirecturl) {
269    toastr.options = {
270        'closeButton': true,
271        'debug': false,
272        'positionClass': 'toast-top-right',
273        'onclick': null,
274        'showDuration': '300',
275        'hideDuration': '1000',
276        'timeOut': '5000',
277        'extendedTimeOut': '1000',
278        'showEasing': 'swing',
279        'hideEasing': 'linear',
280        'showMethod': 'fadeIn',
281        'hideMethod': 'fadeOut',
282        'progressBar': true
283    };
284
285    if (_redirecturl != '' && _redirecturl != null)
286        toastr.options.onHidden = function () { window.location.href = _redirecturl };
287
288    if (_type == '' || _type == null) toastr.error(_mesaj);
289    else toastr[_type](_mesaj);
290}
291
292function sss() {
293    $(".accordionheader:first-child").next("div").slideToggle(500).siblings("div.accordioncontent").slideUp(500);
294    $(".accordionheader:first-child").toggleClass("accordionheaderhover").siblings("div.accordionheaderhover").removeClass("accordionheaderhover").addClass("accordionheader");
295    $(".accordionheader").click(function () {
296        $(this).next("div").slideToggle(500).siblings("div.accordioncontent").slideUp(500);
297        $(this).toggleClass("accordionheaderhover").siblings("div.accordionheaderhover").removeClass("accordionheaderhover").addClass("accordionheader");
298    })
299}
300
301
302var slidebars = function () {
303    var canvas = $("[canvas]"),
304        offCanvas = {},
305        init = !1,
306        registered = !1,
307        sides = ["top", "right", "bottom", "left"],
308        styles = ["reveal", "push", "overlay", "shift"],
309        getAnimationProperties = function (id) {
310            var elements = $(),
311                amount = "0px, 0px",
312                duration = 1e3 * parseFloat(offCanvas[id].element.css("transitionDuration"), 10);
313            return "reveal" !== offCanvas[id].style && "push" !== offCanvas[id].style && "shift" !== offCanvas[id].style || (elements = elements.add(canvas)), "push" !== offCanvas[id].style && "overlay" !== offCanvas[id].style && "shift" !== offCanvas[id].style || (elements = elements.add(offCanvas[id].element)), offCanvas[id].active && ("top" === offCanvas[id].side ? amount = "0px, " + offCanvas[id].element.css("height") : "right" === offCanvas[id].side ? amount = "-" + offCanvas[id].element.css("width") + ", 0px" : "bottom" === offCanvas[id].side ? amount = "0px, -" + offCanvas[id].element.css("height") : "left" === offCanvas[id].side && (amount = offCanvas[id].element.css("width") + ", 0px")), {
314                elements: elements,
315                amount: amount,
316                duration: duration
317            }
318        },
319        registerSlidebar = function (id, side, style, element) {
320            if (isRegisteredSlidebar(id)) throw "Error registering Slidebar, a Slidebar with id '" + id + "' already exists.";
321            offCanvas[id] = {
322                id: id,
323                side: side,
324                style: style,
325                element: element,
326                active: !1
327            }
328        },
329        isRegisteredSlidebar = function (id) {
330            return !!offCanvas.hasOwnProperty(id)
331        };
332    this.init = function (callback) {
333        if (init) throw "Slidebars has already been initialized.";
334        registered || ($("[off-canvas]").each(function () {
335            var parameters = $(this).attr("off-canvas").split(" ", 3);
336            if (!parameters || !parameters[0] || -1 === sides.indexOf(parameters[1]) || -1 === styles.indexOf(parameters[2])) throw "Error registering Slidebar, please specifiy a valid id, side and style'.";
337            registerSlidebar(parameters[0], parameters[1], parameters[2], $(this))
338        }), registered = !0), init = !0, this.css(), $(events).trigger("init"), "function" == typeof callback && callback()
339    }, this.exit = function (callback) {
340        if (!init) throw "Slidebars hasn't been initialized.";
341        var exit = function () {
342            init = !1, $(events).trigger("exit"), "function" == typeof callback && callback()
343        };
344        this.getActiveSlidebar() ? this.close(exit) : exit()
345    }, this.css = function (callback) {
346        if (!init) throw "Slidebars hasn't been initialized.";
347        for (var id in offCanvas)
348            if (isRegisteredSlidebar(id)) {
349                var offset;
350                offset = "top" === offCanvas[id].side || "bottom" === offCanvas[id].side ? offCanvas[id].element.css("height") : offCanvas[id].element.css("width"), "push" !== offCanvas[id].style && "overlay" !== offCanvas[id].style && "shift" !== offCanvas[id].style || offCanvas[id].element.css("margin-" + offCanvas[id].side, "-" + offset)
351            } this.getActiveSlidebar() && this.open(this.getActiveSlidebar()), $(events).trigger("css"), "function" == typeof callback && callback()
352    }, this.open = function (id, callback) {
353        if (!init) throw "Slidebars hasn't been initialized.";
354        if (!id || !isRegisteredSlidebar(id)) throw "Error opening Slidebar, there is no Slidebar with id '" + id + "'.";
355        var open = function () {
356            offCanvas[id].active = !0, offCanvas[id].element.css("display", "block"), $(events).trigger("opening", [offCanvas[id].id]);
357            var animationProperties = getAnimationProperties(id);
358            animationProperties.elements.css({
359                "transition-duration": animationProperties.duration + "ms",
360                transform: "translate(" + animationProperties.amount + ")"
361            }), setTimeout(function () {
362                $(events).trigger("opened", [offCanvas[id].id]), "function" == typeof callback && callback()
363            }, animationProperties.duration)
364        };
365        this.getActiveSlidebar() && this.getActiveSlidebar() !== id ? this.close(open) : open()
366    }, this.close = function (id, callback) {
367        if ("function" == typeof id && (callback = id, id = null), !init) throw "Slidebars hasn't been initialized.";
368        if (id && !isRegisteredSlidebar(id)) throw "Error closing Slidebar, there is no Slidebar with id '" + id + "'.";
369        if (id || (id = this.getActiveSlidebar()), id && offCanvas[id].active) {
370            offCanvas[id].active = !1, $(events).trigger("closing", [offCanvas[id].id]);
371            var animationProperties = getAnimationProperties(id);
372            animationProperties.elements.css("transform", ""), setTimeout(function () {
373                animationProperties.elements.css("transition-duration", ""), offCanvas[id].element.css("display", ""), $(events).trigger("closed", [offCanvas[id].id]), "function" == typeof callback && callback()
374            }, animationProperties.duration)
375        }
376    }, this.toggle = function (id, callback) {
377        if (!init) throw "Slidebars hasn't been initialized.";
378        if (!id || !isRegisteredSlidebar(id)) throw "Error toggling Slidebar, there is no Slidebar with id '" + id + "'.";
379        offCanvas[id].active ? this.close(id, function () {
380            "function" == typeof callback && callback()
381        }) : this.open(id, function () {
382            "function" == typeof callback && callback()
383        })
384    }, this.isActive = function (id) {
385        return init
386    }, this.isActiveSlidebar = function (id) {
387        if (!init) throw "Slidebars hasn't been initialized.";
388        if (!id) throw "You must provide a Slidebar id.";
389        if (!isRegisteredSlidebar(id)) throw "Error retrieving Slidebar, there is no Slidebar with id '" + id + "'.";
390        return offCanvas[id].active
391    }, this.getActiveSlidebar = function () {
392        if (!init) throw "Slidebars hasn't been initialized.";
393        var active = !1;
394        for (var id in offCanvas)
395            if (isRegisteredSlidebar(id) && offCanvas[id].active) {
396                active = offCanvas[id].id;
397                break
398            } return active
399    }
399, this.getSlidebars = function () {
400        if (!init) throw "Slidebars hasn't been initialized.";
401        var slidebarsArray = [];
402        for (var id in offCanvas) isRegisteredSlidebar(id) && slidebarsArray.push(offCanvas[id].id);
403        return slidebarsArray
404    }, this.getSlidebar = function (id) {
405        if (!init) throw "Slidebars hasn't been initialized.";
406        if (!id) throw "You must pass a Slidebar id.";
407        if (!id || !isRegisteredSlidebar(id)) throw "Error retrieving Slidebar, there is no Slidebar with id '" + id + "'.";
408        return offCanvas[id]
409    }, this.events = {};
410    var events = this.events;
411    $(window).on("resize", this.css.bind(this))
412};
413
414var sedeceSayi = function (evt) {
415    evt = (evt) ? evt : window.event
416    var charCode = (evt.which) ? evt.which : evt.keyCode
417    if (charCode > 31 && (charCode < 48 || charCode > 57)) {
418        return false
419    }
420    return true
421}

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.