PageSourceSearch

https://www.harita.gov.tr/MSB/Scripts/main.js

js harita.gov.tr collected 2026-10-02 09:56:09 UTC 36,349 bytes, 1,117 lines download raw bytes

1
2const isMobile = () => {
3    if (navigator.userAgent.match(/Android/i) ||
4        navigator.userAgent.match(/webOS/i) ||
5        navigator.userAgent.match(/iPhone/i) ||
6        navigator.userAgent.match(/iPod/i) ||
7        navigator.userAgent.match(/iPad/i)) {
8        return true;
9    }
10    else {
11        return false;
12    }
13}
14
15
16const isMobileApple = () => {
17    if (navigator.platform.match(/iPhone|iPod|iPad/)) {
18        return true;
19    }
20    else {
21        return false;
22    }
23}
24const get_youtube = e => {
25    e.preventDefault();
26    let video_url;
27    let id;
28    if (new URL(e.target.href).searchParams.get("v")) {
29        video_url = new URL(e.target.href).searchParams.get("v");
30        id = e.target.dataset.href;
31
32    }
33    else {
34        video_url = new URL(e.target.href).pathname.slice(1);
35        id = e.target.dataset.href;
36    }
37
38    let source = new URL(e.target.href);
39
40    if (source.host.toLowerCase().includes("medianova") == true) {
41        $(".video-galerisi-modal iframe").attr("src", source);
42
43        $(".video-galerisi-modal").addClass("show");
44    }
45    else if (source.host.toLowerCase().includes("youtu") == true) {
46        $(".video-galerisi-modal iframe").attr("src", "https://www.youtube.com/embed/" + video_url);
47
48        $(".video-galerisi-modal").addClass("show");
49    }
50    else {
51        $(".video-galerisi-modal-local video").attr("src", "/" + video_url);
52
53        $(".video-galerisi-modal-local").addClass("show");
54    }
55    $.ajax({
56        type: 'POST',
57        data: { id: id },
58        url: '/Anasayfa/Okundu/' + id,
59        //contentType: 'application/json'
60    });
61}
62
63const bodyToggle = () => {
64    $("body").toggleClass("overflow");
65    if (!isMobile()) {
66        $("body").toggleClass("scroll-padding");
67    }
68}
69
70const bodyAdd = () => {
71    $("body").addClass("overflow");
72    if (!isMobile()) {
73        $("body").addClass("scroll-padding");
74    }
75}
76
77const bodyRemove = () => {
78    $("body").removeClass("overflow");
79    if (!isMobile()) {
80        $("body").removeClass("scroll-padding");
81    }
82}
83
84var modalCountry = document.getElementById("countryModal");
85// Get the button that opens the modal
86var btn = document.getElementById("country");
87var btnSize = document.querySelectorAll(".country");
88
89
90// Get the <span> element that closes the modal
91var span = document.getElementsByClassName("close")[0];
92if (span != undefined) {
93    var clickcallback = function (i) {
94        modalCountry.style.display = "block";
95    }
96
97    span.onclick = function () {
98        modalCountry.style.display = "none";
99    }
100
101    window.onclick = function (event) {
102        if (event.target == modalCountry) {
103            modalCountry.style.display = "none";
104        }
105    }
106}
107
108var sehitVideo = document.getElementById("sehit-arka-plan-video");
109$("#video-ses-content").on("click", function (e) {
110    sehitVideo.muted = !sehitVideo.muted;
111    if (!sehitVideo.muted) {
112        $("#video-ses-btn-open").css("display", "block");
113        $("#video-ses-btn-close").css("display", "none");
114    } else {
115        $("#video-ses-btn-open").css("display", "none");
116        $("#video-ses-btn-close").css("display", "block");
117    }
118
119});
120
121function screenWidth() {
122    return screen.width;
123}
124
125$(document).ready(function () {
126
127  
128
129    if (1280 < screenWidth() < 1492) {
130        $(".carousel-baslik-text").css("font-size", "0.9rem");
131    }
132    if (screenWidth() > 1493) {
133        $(".carousel-baslik-text").css("font-size", "1rem");
134    }
135    var swiper = new Swiper(".mySwiper", {
136        grabCursor: true,
137        effect: "creative",
138        loop: true,
139        pagination: {
140            el: ".swiper-pagination",
141            clickable: true,
142
143        },
144
145        creativeEffect: {
146            prev: {
147                shadow: true,
148                translate: ["-20%", 0, -1],
149            },
150            next: {
151                translate: ["100%", 0, 0],
152            },
153        },
154    });
155    var swiperFotograflar = new Swiper(".ana-sayfa-fotograflar-slider", {
156        slidesPerView: 1,
157        spaceBetween: 30,
158        loop: true,
159        pagination: {
160            el: ".swiper-pagination",
161            clickable: true,
162        }
163    });
164    var swiperVideolar = new Swiper(".ana-sayfa-videolar-slider", {
165        slidesPerView: 1,
166        spaceBetween: 30,
167        loop: true,
168        pagination: {
169            el: ".swiper-pagination",
170            clickable: true,
171        }
172        
173    });
174    var swiper = new Swiper(".swiperSehitBody", {
175        spaceBetween: 30,
176
177        // loop:true,
178        // autoplay: {
179        //     delay: 6000,
180        //     disableOnInteraction: false,
181        // },
182        pagination: {
183            el: ".swiper-pagination",
184            clickable: true,
185        },
186    });
187    var sehitCdnVideo = document.getElementsByClassName("sehitVideoControl");
188    Array.prototype.forEach.call(sehitCdnVideo, function (el) {
189        if (el != undefined) {
190            el.controls = true;
191        }
192    });
193   
194    
195    var swiperTerorle = new Swiper(".terorle-mucadele", {
196        effect: "coverflow",
197        grabCursor: true,
198        centeredSlides: true,
199        slidesPerView: "auto",
200        loop: true,
201        coverflowEffect: {
202            rotate: 0,
203            stretch: 0,
204            depth: 150,
205            modifier: 1,
206            slideShadows: true,
207        },
208        pagination: {
209            el: ".swiper-pagination",
210            clickable: true,
211        },
212    });
213 
214    var swiper = new Swiper(".baris-pinari-slider", {
215        slidesPerView: 1,
216        spaceBetween: 10,
217        loop: true,
218        pagination: {
219            el: ".swiper-pagination",
220            clickable: true,
221        },
222        breakpoints: {
223            640: {
224                slidesPerView: 2,
225                spaceBetween: 10,
226            },
227            768: {
228                slidesPerView: 3,
229                spaceBetween: 40,
230            },
231            1024: {
232                slidesPerView: 3,
233                spaceBetween: 50,
234            }
235
236        },
237        navigation: {
238            nextEl: ".swiper-button-next",
239            prevEl: ".swiper-button-prev",
240        },
241    });
242    
243   
244    //document.getElementById("newsurl").setAttribute("content", "https://www.msb.gov.tr" + window.location.pathname);
245
246    var mainSlider = document.getElementsByClassName("carousel-main-inner");
247    if (mainSlider[0] != undefined) {
248        var mainSliderDurum = window.getComputedStyle(mainSlider[0], null).display;
249        if (mainSliderDurum == "none") {
250            mainSlider[0].style.display = "block";
251        }
252    }
253    var terrorSlider = document.getElementsByClassName("counter-terorrism-carousel");
254    if (terrorSlider[0] != undefined) {
255        var terrorFlkty = new Flickity(terrorSlider[0]);
256        terrorSlider[0].style.display = "block";
257        terrorFlkty.resize();
258    }
259
260
261    if (isMobile()) {
262        $(".carousel-nav-btn").css("display", "flex");
263    }
264    $(".switch").click(e => {
265        $(".header").toggleClass("show");
266        bodyToggle();
267    });
268    $(".overley").click(e => {
269        $(".header").removeClass("show");
270        $("body").removeClass("overflow");
271    });
272    $(".modal-search-close").click(e => {
273        bodyToggle();
274        $(".modal-search").toggleClass("show");
275    })
276
277    //main carousel
278    var $carousel = $('.carousel-main>div:nth-child(2)').flickity({
279        wrapAround: true,
280        prevNextButtons: false,
281        pageDots: true,
282        imagesLoaded: true,
283        lazyLoad: true
284    });
285
286     
287   
288
289    if ($carousel.length > 0) {
290
291        var $carousel_nav_phone = $('.carousel-nav-phone').flickity({
292            asNavFor: '.carousel-main>div:nth-child(2)',
293            contain: true,
294            pageDots: false,
295            prevNextButtons: false,
296            imagesLoaded: true,
297            lazyLoad: 6
298        });
299
300        var $carouselNav = $('.carousel-nav>div');
301        var $carouselNavCells = $carouselNav.find('.carousel-cell');
302
303        $carouselNav.on('click', '.carousel-cell', function (event) {
304            var index = $(event.currentTarget).index();
305            $carousel.flickity('select', index);
306        });
307
308        var flkty = $carousel.data('flickity');
309        var navTop = $carouselNav.position().top;
310        var navCellHeight = $carouselNavCells.height();
311        var navHeight = $carouselNav.height();
312
313        $carousel.on('select.flickity', function () {
314            // set selected nav cell
315            $carouselNav.find('.is-nav-selected').removeClass('is-nav-selected');
316            var $selected = $carouselNavCells.eq(flkty.selectedIndex)
317                .addClass('is-nav-selected');
318            // scroll nav
319            var scrollY = $selected.position().top +
320                $carouselNav.scrollTop() - (navHeight + navCellHeight) / 2;
321            $carouselNav.scrollTop(scrollY);
322            //$carouselNav.animate({
323            //    scrollTop: scrollY
324            //});
325        });
326
327
328        // progressBar
329        var duration = 4;//slider süresi
330        var interval = 10;
331        var sliderWrapper = document.querySelector('.carousel-container');
332        var progressBar = document.querySelector('.progress');
333
334        // Pause control
335        var isPaused = false;
336
337        sliderWrapper.addEventListener('mouseenter', function () {
338            isPaused = true;
339        });
340
341        sliderWrapper.addEventListener('mouseleave', function () {
342            isPaused = false;
343        });
344        sliderWrapper.addEventListener('touchstart', function () {
345            isPaused = false;
346            startProgressbar();
347
348        });
349
350        // Main function
351        var percentTime,
352            step,
353            tick;
354
355        function startProgressbar() {
356            resetProgressbar();
357            percentTime = 0;
358            isPaused = false;
359            tick = window.setInterval(increase, interval);
360        };
361
362        function increase() {
363            if (!isPaused) {
364                step = (duration * 1000) / interval;
365                percentTime += 100 / step;
366                progressBar.style.width = percentTime + "%";
367                if (percentTime >= 100) {
368                    flkty.next();
369                    startProgressbar();
370                }
371            }
372        }
373
374        function resetProgressbar() {
375            progressBar.style.width = 0 + '%';
376            clearTimeout(tick);
377        }
378        startProgressbar();
379
380    }
381
382
383
384    //.bakanliktan-haberler slider
385    var $bakanliktan_haberler_carousel = $(".bakanliktan-haberler-carousel").flickity({
386        cellAlign: 'left',
387        imagesLoaded: true,
388        lazyLoad: true,
389        contain: true,
390        wrapAround: true,
391        prevNextButtons: true,
392        pageDots: true
393    });
394
395
396    //twitter carousel
397    $('.twitter-carousel').flickity({
398        cellAlign: 'left',
399        imagesLoaded: true,
400        lazyLoad: true,
401        contain: true,
402        prevNextButtons: false,
403        pageDots: false,
404        autoPlay: false,
405        groupCells: true
406    });
407
408
409    $(".galeri-nav>a").click(e => {
410        e.preventDefault();
411        $(".galeri-nav>a").removeClass("active");
412        $(e.target).addClass("active");
413        $(".galeri-carousel").parent().removeClass("show");
414        const $slider = $(e.target.getAttribute('href'));
415        $slider.addClass("show");
416        $slider.find(".galeri-carousel").flickity('resize');
417        $slider.find(".galeri-carousel").flickity('select', 0);
418    })
419
420    var $carousel_fotograflar = $('.fotograflar>.galeri-carousel').flickity({
421        cellAlign: 'left',
422        imagesLoaded: true,
423        lazyLoad: true,
424        contain: true,
425        wrapAround: true,
426        autoPlay: false,
427        prevNextButtons: false
428    });
429    var $carousel_videolar = $('.videolar>.galeri-carousel').flickity({
430        cellAlign: 'left',
431        imagesLoaded: true,
432        lazyLoad: true,
433        contain: true,
434        wrapAround: true,
435        autoPlay: false,
436        prevNextButtons: false
437    });
438    var $carousel_tatbikat = $('.tatbikatlar>.galeri-carousel').flickity({
439        cellAlign: 'left',
440        imagesLoaded: true,
441        lazyLoad: true,
442        contain: true,
443        wrapAround: true,
444        autoPlay: false,
445        prevNextButtons: false
446    });
447
448    $(".faaliyetlerimiz-nav>a").click(e => {
449        e.preventDefault();
450        $(".faaliyetlerimiz-nav>a").removeClass("active");
451        $(e.target).addClass("active");
452        $(".faaliyetlerimiz-carousel").removeClass("show");
453        const $slider = $($(e.target).attr('href'));
454        $slider.addClass("show");
455        $slider.flickity('resize');
456        $slider.flickity('select', 0);
457    })
458
459    var $carousel_harita_genel = $(".faaliyetlerimiz-carousel.harita-genel").flickity({
460        cellAlign: 'left',
461        imagesLoaded: true,
462        lazyLoad: true,
463        contain: true,
464        wrapAround: true,
465        autoPlay: false,
466        prevNextButtons: false,
467        groupCells: true
468    })
469
470    var $carousel_terorle_mucadele = $(".faaliyetlerimiz-carousel.terorle-mucadele").flickity({
471        cellAlign: 'left',
472        imagesLoaded: true,
473        lazyLoad: true,
474        contain: true,
475        wrapAround: true,
476        autoPlay: false,
477        prevNextButtons: false,
478        groupCells: true
479    })
480
481    var $carousel_askerlik_sistemi = $(".faaliyetlerimiz-carousel.askerlik-sistemi").flickity({
482        cellAlign: 'left',
483        imagesLoaded: true,
484        lazyLoad: true,
485        contain: true,
486        wrapAround: true,
487        autoPlay: false,
488        prevNextButtons: false,
489        groupCells: true
490    })
491
492    //bilgi merkezi slider
493    var $bilgi_merkezi_carousel = $(".bilgi-merkezi-carousel").flickity({
494        cellAlign: 'center',
495        imagesLoaded: true,
496        lazyLoad: true,
497        contain: true,
498        wrapAround: true,
499        prevNextButtons: false,
500        watchCSS: true
501    });
502
503    const $dropdown = $(".dropdown-desktop");
504
505    //haber slider
506    var $haber_videolar_carousel = $(".haber-videolar-carousel").flickity({
507        cellAlign: 'left',
508        imagesLoaded: true,
509        lazyLoad: true,
510        contain: true,
511        wrapAround: true,
512        percentPosition: false,
513        prevNextButtons: false
514    });
515    $('.fotograf-galerisi-detay-body>div:first-child').lightGallery({
516        thumbnail: false,
517        animateThumb: false,
518        showThumbByDefault: false,
519        fullScreen: false
520    });
521
522    $('.yeni-askerlik-sistemi-galeri').lightGallery({
523        thumbnail: false,
524        animateThumb: false,
525        showThumbByDefault: false,
526        fullScreen: false
527    });
528
529    if ($(".haber-fotograflar-carousel>a").length > 3) {
530        var $haber_fotograflar_carousel = $(".haber-fotograflar-carousel").flickity({
531            cellAlign: 'center',
532            imagesLoaded: true,
533            lazyLoad: true,
534            contain: true,
535            pageDots: false,
536            fullscreen: true,
537            draggable: true, // default: draggable: false,
538            autoPlay: true
539        });
540
541
542        $('.haber-fotograflar-carousel .flickity-slider').lightGallery({
543            thumbnail: false,
544            animateThumb: false,
545            showThumbByDefault: false,
546            fullScreen: false
547        });
548
549        var $haber_carousel_status = $('.haber-fotograflar-carousel-status');
550
551        function updateStatus() {
552            var flkty = $haber_fotograflar_carousel.data('flickity');
553            var cellNumber = flkty.selectedIndex + 1;
554            $haber_carousel_status.text(cellNumber + '/' + flkty.slides.length);
555        }
556        updateStatus();
557        $haber_fotograflar_carousel.on('change.flickity', updateStatus);
558    }
559    else {
560        $(".haber-fotograflar-carousel").addClass("not-slider");
561
562        $('.haber-fotograflar-carousel').lightGallery({
563            thumbnail: false,
564            animateThumb: false,
565            showThumbByDefault: false,
566            fullScreen: false
567        });
568    }
569
570    $(".video-galerisi-modal").click(e => {
571        $(".video-galerisi-modal").removeClass("show");
572        $(".video-galerisi-modal iframe").attr("src", "");
573    });
574
575    $(".video-galerisi-modal-local").click(e => {
576
577        var mafamVideo = document.getElementById('embed-responsive-item');
578
579        if (mafamVideo != null) {
580            mafamVideo.pause();
581        }
582
583        $(".video-galerisi-modal-local").removeClass("show");
584        $(".video-galerisi-modal-local iframe").attr("src", "");
585    });
586
587    $(document).on('click', '.sehit-slide-inner', function (e) {
588        $(".sehitlerimiz .sehitlerimiz-modal").addClass("show");
589        bodyAdd();
590        var id = $(e.target).attr('id');
591        var href = this.href;
592
593        $('.sehitlerimiz-modal-content').load(href + '/' + id, function () { });
594
595        return false;
596    });
597
598    $(".vefatlarimiz table a").click(e => {
599
600        $(".vefatlarimiz .vefatlarimiz-modal").addClass("show");
601        var id = $(e.target).attr('id');
602        var href = e.target.href;
603
604        $('.vefatlarimiz-modal-content').load(href + '/' + id, function () {
605            $('.vefatlarimiz-modal').modal({
606                backdrop: true,
607                keyboard: true
608            }, 'show');
609            bindForm(this);
610
611        });
612
613        return false;
614    })
615    
616    $(".bakan-bakanlar-toggle").click(() => {
617        $(".bakan-bakanlar").toggleClass("show");
618    })
619
620    $(".tum-haberler-devami").click(() => {
621        $(".tum-haberler-item").css("display", "flex");
622    })
623
624    $("[data-toggle='modal']").click(e => {
625        $(".modal").addClass("show");
626        bodyAdd();
627        if (e.target.dataset.target == "#egitim-konulari") {
628            var id = $(e.target).attr('id');
629            var href = e.target.href;
630            $('#egitim-konulari .modal-content').load(href + '/' + id, function () {
631                $('#egitim-konulari').modal({
632                    backdrop: true,
633                    keyboard: true
634                }, 'show');
635                bindForm(this);
636
637            });
638
639            return false;
640        }
641    })
642    $("[data-dismiss='modal']").click(e => {
643        $(".modal").removeClass("show");
644        bodyRemove();
645    })
646
647    $(".side-nav-toggle").click(e => {
648        $(e.target).find(".icon").toggleClass("rotate");
649    })
650
651/*    for (const item of $(".side-nav>ul a")) {// side nav link active
652        if ($(item).attr("href").startsWith("/")) {
653            if (window.location.pathname + window.location.search == $(item).attr("href")) {
654                $(item).closest("ul").addClass("show");
655                $(item).addClass("active");
656            }
657        }
658        else {
659            if (window.location.pathname.slice(1) + window.location.search == $(item).attr("href")) {
660                $(item).closest("ul").addClass("show");
661                $(item).addClass("active");
662            }
663        }
664    }*/
665
666    const $tum_haberler_nav = $(".tum-haberler-filter-nav");
667    $tum_haberler_nav.find("a").click(e => {
668        e.preventDefault();
669        if (e.target === $(".tum-haberler-filter-nav>a.active")[0]) {//toggle clicked if it was active
670            $(e.target).toggleClass("active");
671            const attr = $(e.target).attr('href');
672            $(attr).toggleClass("show");
673        }
674        else {//hide all and show clicked
675            $(".tum-haberler-filter-nav>a").removeClass("active");
676            $(e.target).addClass("active");
677            $(".filter").removeClass("show");
678            $(".side-nav").removeClass("show");
679            const $nav_content = $(e.target.getAttribute('href'));
680            $nav_content.addClass("show");
681        }
682    });
683
684    const $foto_galeri_nav = $(".fotograf-galerisi-filter-nav");
685    $foto_galeri_nav.find("a").click(e => {
686        e.preventDefault();
687        if (e.target === $(".fotograf-galerisi-filter-nav>a.active")[0]) {//toggle clicked if it was active
688            $(e.target).toggleClass("active");
689            const attr = $(e.target).attr('href');
690            $(attr).toggleClass("show");
691        }
692        else {//hide all and show clicked
693            $(".fotograf-galerisi-filter-nav>a").removeClass("active");
694            $(e.target).addClass("active");
695            $(".filter").removeClass("show");
696            $(".side-nav").removeClass("show");
697            const $nav_content = $(e.target.getAttribute('href'));
698            $nav_content.addClass("show");
699        }
700    });
701    const $video_galeri_nav = $(".video-galerisi-filter-nav");
702    $video_galeri_nav.find("a").click(e => {
703        e.preventDefault();
704        if (e.target === $(".video-galerisi-filter-nav>a.active")[0]) {//toggle clicked if it was active
705            $(e.target).toggleClass("active");
706            const attr = $(e.target).attr('href');
707            $(attr).toggleClass("show");
708        }
709        else {//hide all and show clicked
710            $(".video-galerisi-filter-nav>a").removeClass("active");
711            $(e.target).addClass("active");
712            $(".filter").removeClass("show");
713            $(".side-nav").removeClass("show");
714            const $nav_content = $(e.target.getAttribute('href'));
715            $nav_content.addClass("show");
716        }
717    })
718    const $askeri_yargi_kararlari = $(".askeri-yargi-kararlari-filter-nav");
719    $askeri_yargi_kararlari.find("a").click(e => {
720        e.preventDefault();
721        if (e.target === $(".askeri-yargi-kararlari-filter-nav>a.active")[0]) {//toggle clicked if it was active
722            $(e.target).toggleClass("active");
723            const attr = $(e.target).attr('href');
724            $(attr).toggleClass("show");
725        }
726        else {//hide all and show clicked
727            $(".askeri-yargi-kararlari-filter-nav>a").removeClass("active");
728            $(e.target).addClass("active");
729            $(".filter").removeClass("show");
730            $(".side-nav").removeClass("show");
731            const $nav_content = $(e.target.getAttribute('href'));
732            $nav_content.addClass("show");
733        }
734    })
735
736    $(".accordion-2 .drop-btn>span").click(e => {
737        e.preventDefault();
738        $(e.target).parent().toggleClass("active");
739        $(e.target).parent().next().toggleClass("show");
740    })
741
742    $(".side-nav .drop-btn").click(e => {
743        e.preventDefault();
744        $(e.target).toggleClass("active");
745        $(e.target).next().toggleClass("show");
746    })
747
748    $(".accordion .drop-btn").click(e => {
749        e.preventDefault();
750        $(e.target).toggleClass("active");
751        $(e.target).next().toggleClass("show");
752    })
753    $(".accordion .accordion-card-header").click(e => {
754        e.preventDefault();
755        $(e.target).toggleClass("active");
756        $(e.target).next().toggleClass("show");
757    })
758
759    if ($(".baskan-bilgi").length > 0) {
760        $(".baskan-bilgi")[0].style.setProperty("--list-size", `${$(".baskan-bilgi-list>ul").length}`);
761        if ($(".baskan-bilgi-list>ul").length == 1) {
762            $(".baskan-bilgi")[0].style.setProperty("--list-width", "auto");
763            const length = $(".baskan-bilgi-list>ul>li>ul>li").length;
764            if (length > 3) {
765                $(".baskan-bilgi-list>ul>li").addClass("multi-columns");
766            }
767        }
768
769        if ($(".baskan-bilgi-list>ul>li>div").length == 0) {
770            $(".baskan-bilgi-list>ul").addClass("border-top");
771        }
772    }
773
774    $(".carousel-nav-btn").click(e => {
775        const target = e.target.dataset.carousel;
776        if (target == "prev") {
777            var scrollY = "-=" + ($(".carousel-nav .carousel-cell").height() + 5);
778            $carouselNav.animate({
779                scrollTop: scrollY
780            });
781        }
782        if (target == "next") {
783            var scrollY = "+=" + ($(".carousel-nav .carousel-cell").height() + 5);
784            $carouselNav.animate({
785                scrollTop: scrollY
786            });
787        }
788    })
789
790    $(".yalan-haberler-main-carousel").flickity({
791        cellAlign: 'center',
792        contain: true,
793        pageDots: false,
794        imagesLoaded: true
795    });
796    $(".yalan-haberler-nav-carousel").flickity({
797        asNavFor: '.yalan-haberler-main-carousel',
798        contain: true,
799        pageDots: false,
800        prevNextButtons: false,
801        imagesLoaded: true
802    });
803
804    $(function () {
805        'use strict';
806
807        var $date = $('.docs-date');
808        var $container = $('.docs-datepicker-container');
809        var $trigger = $('.docs-datepicker-trigger');
810        var options = {
811            show: function (e) {
812                //console.log(e.type, e.namespace);
813            },
814            hide: function (e) {
815                //console.log(e.type, e.namespace);
816            },
817            pick: function (e) {
818                //console.log(e.type, e.namespace, e.view);
819            },
820            language: "tr-TR",
821            autoHide: true
822        };
823
824        
825        //$date.datepicker(options);
826
827        $('.docs-options, .docs-toggles').on('change', function (e) {
828            var target = e.target;
829            var $target = $(target);
830            var name = $target.attr('name');
831            var value = target.type === 'checkbox' ? target.checked : $target.val();
832            var $optionContainer;
833
834            switch (name) {
835                case 'container':
836                    if (value) {
837                        value = $container;
838                        $container.show();
839                    } else {
840                        $container.hide();
841                    }
842
843                    break;
844
845                case 'trigger':
846                    if (value) {
847                        value = $trigger;
848                        $trigger.prop('disabled', false);
849                    } else {
850                        $trigger.prop('disabled', true);
851                    }
852
853                    break;
854
855                case 'inline':
856                    $optionContainer = $('input[name="container"]');
857
858                    if (!$optionContainer.prop('checked')) {
859                        $optionContainer.click();
860                    }
861
862                    break;
863
864                case 'language':
865                    $('input[name="format"]').val($.fn.datepicker.languages[value].format);
866                    break;
867            }
868
869            options[name] = value;
870            $date.datepicker('reset').datepicker('destroy').datepicker(options);
871        });
872
873        $('.docs-actions').on('click', 'button', function (e) {
874            var data = $(this).data();
875            var args = data.arguments || [];
876            var result;
877
878            e.stopPropagation();
879
880            if (data.method) {
881                if (data.source) {
882                    $date.datepicker(data.method, $(data.source).val());
883                } else {
884                    result = $date.datepicker(data.method, args[0], args[1], args[2]);
885
886                    if (result && data.target) {
887                        $(data.target).val(result);
888                    }
889                }
890            }
891        });
892
893       // $('[data-toggle="datepicker"]').datepicker();
894    });
895
896    var counterTerorLeftButton = document.createElement("IMG");
897    counterTerorLeftButton.setAttribute("src", "/Content/images/sag-yon-icon-siyah.png");
898    counterTerorLeftButton.setAttribute("class", "flickity-button-icon-left");
899    var a = document.querySelectorAll(".counter-terorrism-carousel > .flickity-button");
900    if (a[0] != undefined) {
901        a[0].appendChild(counterTerorLeftButton);
902    }
903
904
905    var counterTerorRightButton = document.createElement("IMG");
906    counterTerorRightButton.setAttribute("src", "/Content/images/sol-yon-icon-siyah.png");
907    counterTerorRightButton.setAttribute("class", "flickity-button-icon-right");
908    var a = document.querySelectorAll(".counter-terorrism-carousel > .flickity-button");
909    if (a[1] != undefined) {
910        a[1].appendChild(counterTerorRightButton);
911    }
912});
913
914var pathURL = window.location.pathname;
915var minister = pathURL.split("/");
916if (minister[1] == "BaskanBilgi") {
917    $(".baskan-bilgi-body").css('boxShadow', 'unset');
918}
919else if (minister[1] == "SlaytHaber") {
920
921    var imageLinkTag = document.querySelectorAll('.haber-fotograflar-carou
921sel > a');
922    if (imageLinkTag.length == 1) {
923        $('.carousel-cell:nth-child(1)').css('marginRight', '0px');
924    } else if (imageLinkTag.length == 2) {
925        $('.carousel-cell:nth-child(2)').css('marginRight', '0px');
926    } else if (imageLinkTag.length == 3) {
927        $('.carousel-cell:nth-child(3)').css('marginRight', '0px');
928    }
929}
930
931/* Mobil Logo Story */
932var pathURL = window.location.pathname;
933var minister = pathURL.split("/");
934var ministerCount = minister.length;
935// var videoContent;
936// videoContent = document.getElementById("video-content-inner-back");
937// videoContent.pause();
938
939
940    $('.header-menu-logo-msb').click(donus);
941    function screenWidth() {
942        return screen.width;
943    }
944
945    function donus() {
946         document.getElementById("cubuk-stil").style.animation = "donus-tiklama 1s";
947         document.getElementById("logo-kapsam").style.animation = "donus 1s ,donus-tiklama 1s";
948        setTimeout(function () {
949            openNav();
950            $('.main-sticky').css('z-index', '7');
951        }, 1000)
952    }
953
954    $('.videoDurum-cotent-close-wrap-inner-btn').on("click", function (e) {
955        story_close();
956        $('.main-sticky').css('z-index', '10');
957    });
958
959    var videoIOSCotent = document.getElementsByClassName("video-ios-content");
960    var videoCloseContent = document.getElementsByClassName("videoDurum-content-wrap-close");
961    $("#video-ios-content").on("click", function (e) {
962        videoContent.muted = !videoContent.muted;
963        if (!videoContent.muted) {
964            $("#ios-play-buton-open").css("display", "flex");
965            $("#ios-play-buton-close").css("display", "none");
966        } else {
967            $("#ios-play-buton-open").css("display", "none");
968            $("#ios-play-buton-close").css("display", "flex");
969        }
970    });
971    $(".videoDurum-content-video-body-inq").on("click", function (e) {
972        videoContent.muted = !videoContent.muted;
973        if (!videoContent.muted) {
974            $("#ios-play-buton-open").css("display", "flex");
975            $("#ios-play-buton-close").css("display", "none");
976        } else {
977            $("#ios-play-buton-open").css("display", "none");
978            $("#ios-play-buton-close").css("display", "flex");
979        }
980    });
981    function openNav() {
982        $('body').css('overflow', 'hidden');
983        var isPaused = false;
984        document.getElementById("videoDurum").style.width = "100%";
985        document.getElementById("videoDurum").style.height = "100%";
986        document.getElementById("videoDurum").style.display = "inline-flex";
987        document.getElementById("videoDurum").style.zIndex = "7";
988        document.getElementById("videoDurum").style.visibility = "unset";
989        document.getElementById("videoDurum").style.opacity = "unset";
990        document.getElementById("videoDurum").style.animation = "1s ease-in 0s 1 alternate none running crescendo";
991        var progressBar = document.querySelector('.videoDurum-content-barLine-load');
992
993        var percentTime,
994            step,
995            tick,
996            interval = 10,
997            duration = 4;
998        function startProgressbar() {
999            resetProgressbar();
1000            percentTime = 0;
1001            isPaused = false;
1002            tick = window.setInterval(increase, interval);
1003        };
1004        function increase() {
1005            if (!isPaused) {
1006                step = (duration * 1000) / interval;
1007                percentTime = Math.round(
1008                    (videoContent.currentTime / videoContent.duration) * 100);
1009                progressBar.style.width = percentTime + "%";
1010                if (percentTime >= 100) {
1011                    story_close();
1012                    resetProgressbar();
1013                }
1014            }
1015        }
1016        function resetProgressbar() {
1017            progressBar.style.width = 0 + '%';
1018            clearTimeout(tick);
1019        }
1020        startProgressbar();
1021        videoContent.play();
1022        window.addEventListener('resize', function () {
1023            screenControl();
1024        });
1025
1026    }
1027    function screenControl() {
1028        if (screenWidth() > 767) {
1029            story_close();
1030        }
1031    }
1032    function story_close() {
1033        $('body').css('overflow', 'unset');
1034        document.getElementById("videoDurum").style.width = "0%";
1035        document.getElementById("videoDurum").style.height = "0%";
1036        document.getElementById("videoDurum").style.opacity = "0";
1037        document.getElementById("videoDurum").style.visibility = "hidden";
1038        document.getElementById("videoDurum").style.zIndex = "unset";
1039        document.getElementById("videoDurum").style.display = "none";
1040        document.getElementById("videoDurum").style.animation = "unset";
1041        document.getElementById("cubuk-stil").style.animation = "cubuk-spin 6s linear infinite";
1042        document.getElementById("logo-kapsam").style.animation = "donusY 9s infinite";
1043       
1044        videoContent = document.getElementById("video-content-inner-back");
1045        videoContent.pause();
1046        videoContent.currentTime = 0;
1047
1048        var innerBack = document.querySelector('.header-menu-logo-msb-inner-back');
1049        innerBack.style.display = "flex";
1050
1051    }
1052
1053function ext_story() {
1054    var innerBack = document.querySelector('.header-menu-logo-msb-inner-back');
1055    innerBack.style.display = "none";
1056    var divList = document.querySelectorAll(".alan1 > div");
1057    if (divList != null) {
1058        if (isMobileApple()) {
1059            for (var i = 0; i < divList.length; i++) {
1060                divList[i].style.backfaceVisibility = "unset";
1061                divList[i].style.webkitBackfaceVisibility = "unset";
1062            }
1063        }
1064    }
1065    
1066}
1067
1068
1069// var vid2 = document.getElementById("video-content-inner-back");
1070// vid2.controls = false;
1071
1072var vid = document.getElementById("nato-video");
1073if (vid != null) {
1074    vid.controls = true;
1075    
1076}
1077var vidHarekat = document.getElementById("harekat-video");
1078if (vidHarekat != null) {
1079    vidHarekat.controls = true;
1080
1081}
1082var vidHarekat2 = document.getElementById("harekat-video2");
1083if (vidHarekat2 != null) {
1084    vidHarekat2.controls = true;
1085
1086}
1087
1088$(".main-sticky-wrap-in-one").on("click", function (e) {
1089    $(".main-sticky-wrap").css("width", "189px");
1090    $(".main-sticky-wrap").css("height", "auto");
1091    $(".main-sticky-asal").css("margin-left", "0px");
1092    $(".main-sticky-pertem").css("margin-left", "0px");
1093    $("#main-sticky-wrap-in-img").css("display", "none");
1094    $(".main-sticky-wrap-in-two").css("display", "flex");
1095});
1096$(".main-sticky-wrap-in-two").on("click", function (e) {
1097    mainSticyClose();
1098});
1099$(window).scroll(function () {
1100    mainSticyClose();
1101});
1102
1103function mainSticyClose() {
1104    $(".main-sticky-wrap").css("width", "10px");
1105    $(".main-sticky-wrap").css("height", "auto");
1106    $(".main-sticky-asal").css("margin-left", "-220px");
1107    $(".main-sticky-pertem").css("margin-left", "-220px");
1108    $("#main-sticky-wrap-in-img").css("display", "block");
1109    $(".main-sticky-wrap-in-two").css("display", "none");
1110}
1111$("twitter-widget-0").remove();
1112if ($(window).width() < 575) {
1113    $("twitter-horizontal-swiper").remove();
1114} else {
1115    $("twitter-vertical-swiper ").remove();
1116}
1117

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.