PageSourceSearch

https://www.gumushane.gen.tr/frontend/diamond/assets/js/sliders.js?v=1790302463

js gumushane.gen.tr collected 2026-09-25 02:46:37 UTC 50,366 bytes, 1,548 lines download raw bytes

1$(function(){
2
3    $(".slider-items-wrapper").removeClass("slider-items-wrapper");
4
5    $(".galleriesv8-slider").slick({
6        dots: false,
7        arrows: true,
8        slidesToShow: 6,
9        swipeToSlide: true,
10        speed: 400,
11        autoplay: true,
12        autoplaySpeed: 2500,
13        infinite: true,
14        waitForAnimate: false,
15        touchThreshold: 30,
16        responsive: [{
17            breakpoint: 1025,
18            settings: {
19                slidesToShow: 5
20            }
21        },
22        {
23            breakpoint: 768,
24            settings: {
25                slidesToShow: 4
26            }
27        },
28        {
29            breakpoint: 500,
30            settings: {
31                slidesToShow: 2
32            }
33        }]
34    }).on('afterChange', function(event, slick, currentSlide){
35        slick.$slides.each(function(i, el){
36            let $el = $(el);
37            if($el.hasClass("slick-current")){
38                $el.closest(".news-galleriesv8").find(".galleriesv8-img-box .galleriesv8-img").attr("src", $el.find("img").data('img-url'));
39                $el.closest(".news-galleriesv8").find(".galleriesv8-category").text($el.find("img").data('img-category'));
40                $el.closest(".news-galleriesv8").find(".galleriesv8-news-title").text($el.find("img").data('img-title')).data("post-id", $el.find("img").data("post-id")).css({fontSize:"",lineHeight:""});
41                $el.closest(".news-galleriesv8").find("a").attr("href", $el.find("img").data('img-href'));
42            }
43        });
44    });
45
46    $(".galleriesv8-slider .slider-item").on("click", function(){
47        let $this = $(this);
48        $(".galleriesv8-slider .slider-item").removeClass("slick-current");
49        $this.addClass("slick-current");
50
51        $this.closest(".news-galleriesv8").find(".galleriesv8-img-box .galleriesv8-img").attr("src", $this.find("img").data('img-url'));
52        $this.closest(".news-galleriesv8").find(".galleriesv8-category").text($this.find("img").data('img-category'));
53        $this.closest(".news-galleriesv8").find(".galleriesv8-news-title").text($this.find("img").data('img-title')).data("post-id", $this.find("img").data("post-id")).css({fontSize:"",lineHeight:""});
54        $this.closest(".news-galleriesv8").find("a").attr("href", $this.find("img").data('img-href'));
55
56        $this.closest(".news-galleriesv8").find(".galleriesv8-slider").slick('slickGoTo', $this.data("slick-index"));
57    });
58
59    $(".header-news-list").slick({
60        dots: false,
61        arrows: false,
62        slidesToShow: 4,
63        swipeToSlide: true,
64        speed: 400,
65        autoplay: true,
66        autoplaySpeed: 1500,
67        infinite: true,
68        waitForAnimate: false,
69        touchThreshold: 30,
70        responsive: [{
71            breakpoint: 1025,
72            settings: {
73                slidesToShow: 3
74            }
75        },
76        {
77            breakpoint: 768,
78            settings: {
79                slidesToShow: 2
80            }
81        },
82        {
83            breakpoint: 500,
84            settings: {
85                slidesToShow: 1
86            }
87        }]
88    });
89    $(".header-news-list").removeClass("d-none");
90    $(".header-news-list").slick("refresh");
91    $(".ana-manset-slider, .ana-manset-slider-2").slick({
92        dots: true,
93        arrows: false,
94        slidesToShow:1,
95        swipeToSlide: true,
96        speed: 400,
97        autoplay: true,
98        autoplaySpeed: 6000,
99        infinite: true,
100        waitForAnimate: false
101    });
102    $(".currency-sidebar-slider").slick({
103        dots: true,
104        arrows: true,
105        slidesToShow:1,
106        swipeToSlide: true,
107        speed: 400,
108        autoplay: true,
109        autoplaySpeed: 3000,
110        infinite: true,
111        waitForAnimate: false,
112        touchThreshold: 30
113    });
114    $(".currency-sidebar-slider").removeClass("d-none");
115    $(".currency-sidebar-slider").slick("refresh");
116    $(".nobetci-eczaneler-dates").slick({
117        dots: false,
118        arrows: true,
119        slidesToShow: 4,
120        swipeToSlide: true,
121        speed: 400,
122        autoplay: false,
123        infinite: false,
124        waitForAnimate: false,
125        touchThreshold: 30,
126        responsive: [{
127            breakpoint: 1025,
128            settings: {
129                slidesToShow: 3
130            }
131        },
132        {
133            breakpoint: 768,
134            settings: {
135                slidesToShow: 2
136            }
137        },
138        {
139            breakpoint: 500,
140            settings: {
141                slidesToShow: 1
142            }
143        }]
144    });
145    $(".nobetci-eczane-date-item").click(function(){
146        $(".nobetci-eczane-date-item").removeClass("active");
147        $(this).toggleClass("active");
148    });
149    $(".fixture-weeks-slider").slick({
150        dots: false,
151        arrows: true,
152        slidesToShow: 4,
153        swipeToSlide: true,
154        speed: 400,
155        autoplay: false,
156        infinite: false,
157        waitForAnimate: false,
158        touchThreshold: 30,
159        responsive: [{
160            breakpoint: 1025,
161            settings: {
162                slidesToShow: 3
163            }
164        },
165        {
166            breakpoint: 768,
167            settings: {
168                slidesToShow: 3
169            }
170        },
171        {
172            breakpoint: 500,
173            settings: {
174                slidesToShow: 3
175            }
176        }]
177    });
178    $(".fixture-week-item").click(function(){
179        $(".fixture-week-item").removeClass("text-danger");
180        $(this).toggleClass("text-danger");
181    })
182
183    $(".multipartial-category-slider").slick({
184        dots: false,
185        arrows: true,
186        slidesToShow: 1,
187        swipeToSlide: true,
188        speed: 400,
189        autoplay: false,
190        infinite: false,
191        waitForAnimate: false,
192        touchThreshold: 30
193    });
194
195    $(".category-slider-1").slick({
196        dots: false,
197        arrows: true,
198        slidesToShow: 4,
199        speed: 400,
200        autoplay: false,
201        infinite: false,
202        waitForAnimate: false,
203        touchThreshold: 30,
204        swipeToSlide: true,
205        responsive: [{
206            breakpoint: 1025,
207            settings: {
208                slidesToShow: 3
209            }
210        },
211        {
212            breakpoint: 768,
213            settings: {
214                slidesToShow: 2
215            }
216        },
217        {
218            breakpoint: 500,
219            settings: {
220                slidesToShow: 1
221            }
222        }]
223    });
224
225    $(".video-page-horizontal-sidelist").slick({
226        dots: false,
227        arrows: true,
228        slidesToShow: 2,
229        swipeToSlide: true,
230        speed: 400,
231        autoplay: false,
232        infinite: false,
233        waitForAnimate: false,
234        touchThreshold: 30,
235        responsive: [{
236            breakpoint: 1025,
237            settings: {
238                slidesToShow: 2
239            }
240        },
241        {
242            breakpoint: 800,
243            settings: {
244                slidesToShow: 4
245            }
246        },
247        {
248            breakpoint: 550,
249            settings: {
250                slidesToShow: 2
251            }
252        }]
253    });
254    $(".video-page-horizontal-sidelist").removeClass("d-none");
255    $(".video-page-horizontal-sidelist").slick("refresh");
256
257
258    $(".dev-manset-slider").slick({
259        dots: true,
260        arrows: false,
261        slidesToShow:1,
262        swipeToSlide: true,
263        speed: 400,
264        autoplay: true,
265        infinite: true,
266        waitForAnimate: false
267    });
268    $(".egazete-slider").slick({
269        dots: false,
270        arrows: false,
271        slidesToShow:4,
272        swipeToSlide: true,
273        speed: 400,
274        autoplay: true,
275        infinite: true,
276        waitForAnimate: false,
277        responsive: [{
278            breakpoint:1025,
279            settings:{
280                slidesToShow: 3
281            }
282          },
283          {
284            breakpoint:800,
285            settings:{
286                slidesToShow: 2
287            }
288          },
289          {
290              breakpoint:500,
291              settings:{
292                  slidesToShow: 1
293              }
294          }
295      ]
296    });
297    $(".seri-ilan-slider").slick({
298        dots: false,
299        arrows: false,
300        slidesToShow:5,
301        swipeToSlide: true,
302        speed: 400,
303        autoplay: false,
304        infinite: false,
305        waitForAnimate: false,
306        responsive: [{
307            breakpoint:768,
308            settings:{
309                slidesToShow: 3
310            }
311        }]
312    });
313    $(".exchange-slider:not(.big-horizontal-exchange)").slick({
314        dots: false,
315        arrows: true,
316        slidesToShow:5,
317        swipeToSlide: true,
318        speed: 400,
319        touchThreshold: 30,
320        autoplay: false,
321        infinite: true,
322        waitForAnimate: false,
323        responsive: [{
324            breakpoint:1300,
325            settings:{
326                slidesToShow: 3
327            }
328        },
329        {
330            breakpoint:1200,
331            settings:{
332                slidesToShow: 4
333            }
334        },
335        {
336            breakpoint:768,
337            settings:{
338                slidesToShow: 2
339            }
340        },
341        {
342            breakpoint:500,
343            settings:{
344                slidesToShow: 1
345            }
346        }
347    ]
348    });
349
350    $(".currency-topside-slider").slick({
351        dots: false,
352        arrows: false,
353        slidesToShow:3,
354        swipeToSlide: true,
355        speed: 400,
356        autoplay: true,
357        autoplaySpeed: 1500,
358        infinite: true,
359        waitForAnimate: false,
360        touchThreshold: 30,
361        responsive: [{
362            breakpoint: 1025,
363            settings: {
364                slidesToShow: 3
365            }
366        },
367        {
368            breakpoint: 800,
369            settings: {
370                slidesToShow: 2
371            }
372        },
373        {
374            breakpoint: 500,
375            settings: {
376                slidesToShow: 1
377            }
378        }]
379      });
380      $(".currency-topside-slider").slick("refresh");
381
382    //   {"col-lg-12":{
383    //     "extraOptions": [
384    //         {"dots":"false"},
385    //         {"arrows":"true"},
386    //         {"swipeToSlide":"true"},
387    //         {"speed":"400"},
388    //         {"touchThreshold":"30"},
389    //         {"autoplay":"true"},
390    //         {"infinite":"true"},
391    //         {"slidesToShow":"6"}
392    //         {"waitForAnimate":"false"}
393    //     ],
394    //     "responsiveOptions": [
395    //         {
396    //             "bPoint":"1300",
397    //             "settings":{"slidesToShow":"6"}
398    //         },
399    //         {
400    //             "bPoint":"800",
401    //             "settings":{"slidesToShow":"6"}
402    //         },
403    //         {
404    //             "bPoint":"500",
405    //             "settings":{"slidesToShow":"2"}
406    //         }
407    //     ]
408    // }}
409
410    $("[data-slider-options]").each((index, item) => {
411        let sliderOptions = $(item).data("slider-options");
412        let sliderID = $(item).attr("id");
413    
414        sliderOptions.forEach((oItem, oIndex) => {
415            let sliderCol = Object.keys(sliderOptions[oIndex])[0];
416            let colData = oItem[sliderCol];
417            let extraOptions = colData.extraOptions.reduce((acc, option) => {
418                return { ...acc, ...option };
419            }, {});
420            let responsiveOptions = colData.responsiveOptions.map(option => {
421
422                let settingsCopy = { ...option.settings }; // settings objesini kopyalayın
423
424                // Dize değerlerini boolean ve integer değerlerine dönüştür
425                for (let key in settingsCopy) {
426                    if (settingsCopy[key] === "true") {
427                        settingsCopy[key] = true;
428                    } else if (settingsCopy[key] === "false") {
429                        settingsCopy[key] = false;
430                    } else if (!isNaN(settingsCopy[key])) {
431                        settingsCopy[key] = parseInt(settingsCopy[key]);
432                    }
433                }
434
435                return {
436                    breakpoint: parseInt(option.bPoint),
437                    settings: settingsCopy
438                };
439            });
440    
441            // 'slick' yapılandırma nesnesini oluşturun ve 'extraOptions' ve 'responsive' ekleyin
442            let slickOptions = {
443                ...extraOptions,
444                responsive: responsiveOptions
445            };
446    
447            // Dize değerlerini boolean ve integer değerlerine dönüştür
448            for (let key in slickOptions) {
449                if (slickOptions[key] === "true") {
450                    slickOptions[key] = true;
451                } else if (slickOptions[key] === "false") {
452                    slickOptions[key] = false;
453                } else if (!isNaN(slickOptions[key])) {
454                    slickOptions[key] = parseInt(slickOptions[key]);
455                }
456            }
457    
458            try {
459                $(`.${sliderCol} #${sliderID}`).slick(slickOptions);
460            } catch (error) {
461                console.log(error);
462                console.log(sliderID);
463            }
464        });
465    });
466    
467    
468
469      const exchangeModalColsSettings = [
470        {'col-lg-12':[9,7,6,2]},
471        {'col-lg-9':[7,7,6,2]},
472        {'col-lg-8':[6,6,6,2]},
473        {'col-lg-6':[4,4,6,2]},
474        {'col-lg-4':[3,3,6,2]},
475        {'col-lg-3':[2,2,6,2]},
476        {'col-lg-2':[1,1,6,2]},
477      ];
478
479      exchangeModalColsSettings.forEach(item=>{
480        let sliderCol = Object.keys(item)[0];
481        let colDataArray = item[Object.keys(item)[0]];
482        $(`.${sliderCol} .exchange-slider.big-horizontal-exchange`).slick({
483            dots: false,
484            arrows: true,
485            slidesToShow:colDataArray[0],
486            swipeToSlide: true,
487            speed: 400,
488            touchThreshold: 30,
489            autoplay: true,
490            infinite: true,
491            waitForAnimate: false,
492            responsive: [{
493                breakpoint:1300,
494                settings:{
495                    slidesToShow: colDataArray[1]
496                }
497            },
498            {
499                breakpoint:800,
500                settings:{
501                    slidesToShow: colDataArray[2]
502                }
503            },
504            {
505                breakpoint:500,
506                settings:{
507                    slidesToShow: colDataArray[3]
508                }
509            }
510            ]
511        });
512
513
514      });
515
516      $(".horizontal-currencys-topside-content .exchange-slider.big-horizontal-exchange").slick({
517        dots: false,
518        arrows: true,
519        slidesToShow:9,
520        swipeToSlide: true,
521        speed: 400,
522        touchThreshold: 30,
523        autoplay: true,
524        infinite: true,
525        waitForAnimate: false,
526        responsive: [{
527            breakpoint:1300,
528            settings:{
529                slidesToShow: 7
530            }
531        },
532        {
533            breakpoint:800,
534            settings:{
535                slidesToShow: 6
536            }
537        },
538        {
539            breakpoint:500,
540            settings:{
541                slidesToShow: 2
542            }
543        }
544        ]
545    });
546
547    $(".story1-slider").slick({
548        dots: false,
549        arrows: false,
550        variableWidth: true,
551        swipeToSlide: true,
552        speed: 400,
553        autoplaySpeed: 1400,
554        touchThreshold: 30,
555        autoplay: false,
556        infinite: false,
557        waitForAnimate: false,
558        responsive: [{
559                breakpoint:500,
560                settings:{
561                    slidesToShow: 4
562                }
563            }
564        ]
565    });
566
567    $(".minimize-exchange-slider").slick({
568        dots: false,
569        arrows: false,
570        // slidesToShow:6,
571        variableWidth: true,
572        swipeToSlide: true,
573        speed: 400,
574        autoplaySpeed: 1400,
575        touchThreshold: 30,
576        autoplay: true,
577        infinite: true,
578        waitForAnimate: false,
579        // responsive: [{
580        //     breakpoint:1300,
581        //     settings:{
582        //         slidesToShow: 5
583        //     }
584        // },
585        // {
586        //     breakpoint:800,
587        //     settings:{
588        //         slidesToShow: 4
589        //     }
590        // },
591        // {
592        //     breakpoint:500,
593        //     settings:{
594        //         slidesToShow: 2
595        //     }
596        // }
597        // ]
598    });
599
600    $(".adaylar-slider").slick({
601        dots: false,
602        arrows: false,
603        slidesToShow:6,
604        swipeToSlide: true,
605        speed: 400,
606        touchThreshold: 30,
607        autoplay: true,
608        infinite: true,
609        waitForAnimate: false,
610        responsive: [{
611            breakpoint:1300,
612            settings:{
613                slidesToShow: 5
614            }
615        },
616        {
617            breakpoint:800,
618            settings:{
619                slidesToShow: 4
620            }
621        },
622        {
623            breakpoint:500,
624            settings:{
625                slidesToShow: 2
626            }
627        }
628        ]
629    });
630
631
632    $(".photo-gallery-slider").slick({
633        dots: true,
634        arrows: false,
635        slidesToShow:1,
636        swipeToSlide: true,
637        speed: 400,
638        autoplay: true,
639        infinite: true,
640        waitForAnimate: false
641    });
642
643    $(".galleryV2-vertical-slider").each(function() {
644        let $this = $(this);
645        let $children = $this.children();
646    
647        if ($children.length <= 4) {
648            $children.clone().appendTo($this);
649        }
650    
651        $this.slick({
652            dots: false,
653            arrows: false,
654            slidesToShow: 4,
655            speed: 400,
656            autoplay: true,
657            infinite: true,
658            touchThreshold: 0,
659            waitForAnimate: false,
660            vertical: true,
661            verticalSwiping: true,
662            swipeToSlide: true,
663            responsive: [{
664                breakpoint: 800,
665                settings: {
666                    slidesToShow: 3
667                }
668            },
669            {
670                breakpoint: 500,
671                settings: {
672                    slidesToShow: 2
673                }
674            }]
675        }).on('afterChange', function(event, slick, currentSlide) {
676            slick.$slides.each(function(i, el) {
677                let $el = $(el);
678                if ($el.hasClass("slick-current")) {
679                    $el.closest(".photo-galleryV2").find(".vertical-slider-mainIMG").attr("src", $el.find("img").data('img-url'));
680                    $el.closest(".photo-galleryV2").find(".photo-category .category-title").text($el.find("img").data('img-category'));
681                    $el.closest(".photo-galleryV2").find(".photo-title").text($el.find("img").data('img-title')).data("post-id", $el.find("img").data('post-id'));
682                    $el.closest(".photo-galleryV2").find(".photo-galleryv2-fade").attr("href", $el.find("img").data('img-href'));
683                    $el.closest(".photo-galleryV2").find(".link-gallery").attr("href", $el.find("img").data('img-href'));
684                }
685            });
686        });
687    });
688
689    $(".galleryV2-vertical-slider .slider-item").on("click", function(){$(".galleryV2-vertical-slider").slick('slickGoTo', $(this).data("slick-index"));});
690
691    $(".fullgalleryV2-vertical-slider").slick({
692        dots: false,
693        arrows: false,
694        slidesToShow: 5,
695        speed: 400,
696        autoplay: true,
697        infinite: true,
698        waitForAnimate: false,
699        vertical: true,
700        verticalSwiping: true,
701        swipeToSlide: true,
702        responsive: [{
703            breakpoint: 500,
704            settings: {
705                slidesToShow: 2
706            }
707        }]
708    }).on('afterChange', function(event, slick, currentSlide){
709        slick.$slides.each(function(i, el){
710            let $el = $(el);
711            if($el.hasClass("slick-current")){
712                $el.closest(".photo-galleryV2").find(".vertical-slider-mainIMG").attr("src", $el.find("img").data('img-url'));
713                $el.closest(".photo-galleryV2").find(".photo-category .category-title").text($el.find("img").data('img-category'));
714                $el.closest(".photo-galleryV2").find(".photo-title").text($el.find("img").data('img-title')).data("post-id", $el.find("img").data('post-id'));
715                $el.closest(".photo-galleryV2").find(".photo-galleryv2-fade").attr("href", $el.find("img").data('img-href'));
716                $el.closest(".photo-galleryV2").find(".link-gallery").attr("href", $el.find("img").data('img-href'));
717            }
718        });
719    });
720
721    $(".fullgalleryV2-vertical-slider .slider-item").on("click", function(){$(".fullgalleryV2-vertical-slider").slick('slickGoTo', $(this).data("slick-index"));});
722
723    $(".one-cikanlar-slider").slick({
724        dots: false,
725        arrows: true,
726        slidesToShow:1,
727        swipeToSlide: true,
728        speed: 400,
729        autoplay: true,
730        autoplaySpeed: 4000,
731        infinite: true,
732        waitForAnimate: false
733    });
734    if($(".one-cikanlar-slider").length){
735        $(".one-cikanlar-slider .slick-next img").attr("src","/frontend/diamond/assets/img/SVG/arrow_right_white.svg");
736        $(".one-cikanlar-slider .slick-prev img").attr("src","/frontend/diamond/assets/img/SVG/arrow_left_white.svg");
737    }
738    $('.anamanset-other-slider').slick({
739        dots: true,
740        arrows: false,
741        slidesToShow:1,
742        swipeToSlide: true,
743        speed: 400,
744        autoplay: true,
745        autoplaySpeed: 3000,
746        infinite: true,
747        waitForAnimate: false
748    });
749    
750    $(".anamanset-other-slider").removeClass("overflow-hidden");
751    $(".side-long-news").slick({
752        dots: true,
753        arrows: true,
754        slidesToShow:1,
755        swipeToSlide: true,
756        speed: 400,
757        autoplay: true,
758        infinite: true,
759        waitForAnimate: false,
760        prevArrow: '<button type="button" class="slick-prev"><i style="width:30px;display:flex;justify-content:center;align-items:center;" class="icofont-thin-left"></i></button>',
761        nextArrow: '<button type="button" class="slick-next"><i style="width:30px;display:flex;justify-content:center;align-items:center;" class="icofont-thin-right"></i></button>',
762        touchThreshold: 30,
763        responsive: [{
764            breakpoint:768,
765            settings:{
766                slidesToShow: 2
767            }
768        },
769        {
770            breakpoint:500,
771            settings:{
772                slidesToShow: 1
773            }
774        }
775    ]
776    });
777    $(".newsSlider-l9").slick({
778        dots: true,
779        arrows: false,
780        slidesToShow:1,
781        swipeToSlide: true,
782        speed: 400,
783        autoplay: true,
784        infinite: true,
785        waitForAnimate: false
786    });
787    $(".yatay-haber-slider").slick({
788        dots: false,
789        arrows: false,
790        slidesToShow:3,
791        swipeToSlide: true,
792        touchThreshold: 30,
793        speed: 400,
794        autoplay: true,
795        infinite: true,
796        waitForAnimate: false,
797        responsive: [{
798            breakpoint:1200,
799            settings:{
800                slidesToShow: 3
801            }
802            },
803            {
804                breakpoint:500,
805                settings:{
806                    slidesToShow: 1
807                }
808            }
809        ]
810    });
811    
812    $(".horizontal-authors:not(.vertical-side)").slick({
813        dots: false,
814        arrows: false,
815        slidesToShow:3,
816        swipeToSlide: true,
817        touchThreshold: 30,
818        speed: 400,
819        autoplay: true,
820        infinite: true,
821        waitForAnimate: false,
822        responsive: [{
823            breakpoint:1200,
824            settings:{
825                slidesToShow: 3
826            }
827            },
828            {
829                breakpoint:500,
830                settings:{
831                    slidesToShow: 1
832                }
833            }
834        ]
835    });
836
837    $(".yatay-seritli-slider").slick({
838        dots: false,
839        arrows: true,
840        slidesToShow:4,
841        swipeToSlide: true,
842        touchThreshold: 30,
843        speed: 400,
844        autoplay: true,
845        infinite: true,
846        waitForAnimate: false,
847        responsive: [{
848            breakpoint:1200,
849            settings:{
850                slidesToShow: 3
851            }
852            },
853            {
854            breakpoint:768,
855            settings:{
856                slidesToShow: 2
857            }
858            },
859            {
860                breakpoint:500,
861                settings:{
862                    slidesToShow: 1
863                }
864            }
865        ]
866    });
867    $(".yatay-seritli-slider").removeClass("d-none");
868    $(".yatay-seritli-slider").slick("refresh");
869
870    // $(".full_manset_slider").slick({
871    //     dots: true,
872    //     arrows: true,
873    //     slidesToShow:1,
874    //     swipeToSlide: true,
875    //     speed: 400,
876    //     autoplay: true,
877    //     infinite: true,
878    //     waitForAnimate: false,
879    //     prevArrow: '<button type="button" class="slick-prev"><i style="width:30px;display:flex;justify-content:center;align-items:center;" class="icofont-thin-left"></i></button>',
880    //     nextArrow: '<button type="button" class="slick-next"><i style="width:30px;display:flex;justify-content:center;align-items:center;" class="icofont-thin-right"></i></button>'
881    // });
882    $(".block2-slider").slick({
883        dots: true,
884        arrows: false,
885        slidesToShow:1,
886        swipeToSlide: true,
887        speed: 400,
888        autoplay: true,
889        infinite: true,
890        waitForAnimate: false
891    });
892    $(".block4-slider").slick({
893        dots: true,
894        arrows: false,
895        slidesToShow:1,
896        swipeToSlide: true,
897        speed: 400,
898        autoplay: true,
899        infinite: true,
900        waitForAnimate: false
901    });
902    $(".daily-news-slider").slick({
903        dots: false,
904        arrows: true,
905        slidesToShow:1,
906        swipeToSlide: true,
907        speed: 400,
908        autoplay: true,
909        infinite: true,
910        waitForAnimate: false,
911        responsive: [
912            {
913                breakpoint: 800,
914                settings: {
915                    slidesToShow: 4
916                }
917            },
918            {
919                breakpoint: 500,
920                settings: {
921                    slidesToShow: 1
922                }
923            }
924        ]
925    });
926    $(".daily-newsFull-slider").slick({
927        dots: false,
928        arrows: true,
929        slidesToShow:4,
930        swipeToSlide: true,
931        speed: 400,
932        autoplay: true,
933        infinite: true,
934        waitForAnimate: false,
935        responsive: [
936            {
937                breakpoint: 800,
938                settings: {
939                    slidesToShow: 4
940                }
941            },
942            {
943                breakpoint: 500,
944                settings: {
945                    slidesToShow: 2
946                }
947            }
948        ]
949    });
950
951    $(".aday-yatay-slider").slick({
952        dots: false,
953        arrows: false,
954        slidesToShow:2,
955        swipeToSlide: true,
956        speed: 400,
957        autoplay: true,
958        waitForAnimate: false,
959        infinite: true,
960        responsive: [{
961            breakpoint:800,
962            settings:{
963                slidesToShow: 4
964            }
965        },{
966            breakpoint:500,
967            settings:{
968                slidesToShow: 2
969            }
970        },{
971            breakpoint:350,
972            settings:{
973                slidesToShow: 1
974            }
975        }
976    ]
977    });
978
979    $(".flash-haber-slider").slick({
980        dots: false,
981        arrows: true,
982        slidesToShow:1,
983        swipeToSlide: true,
984        speed: 400,
985        autoplay: true,
986        waitForAnimate: false,
987        infinite: true
988    });
989
990    $(".flashnews2-newslist").slick({
991        dots: false,
992        arrows: false,
993        slidesToShow:1,
994        swipeToSlide: true,
995        speed: 400,
996        autoplay: true,
997        waitForAnimate: false,
998        infinite: true,
999        touchThreshold:20
1000    });
1001
1002
1003
1004    $(".botheader6-slider").slick({
1005        dots: false,
1006        arrows: true,
1007        slidesToShow: 1,
1008        swipeToSlide: true,
1009        speed: 2000,
1010        autoplay: true,
1011        waitForAnimate: false,
1012        infinite: true,
1013        touchThreshold: 30
1014    });
1015
1016    // FOTO GALERİ SLİDER AYARLARI
1017    $(".photo-gallery-mini-slider").slick({
1018        dots: false,
1019        arrows: false,
1020        slidesToShow:3,
1021        swipeToSlide: true,
1022        speed: 400,
1023        autoplay: true,
1024        infinite: true,
1025        touchThreshold: 30,
1026        waitForAnimate: false,
1027        responsive: [{
1028            breakpoint:1200,
1029            settings:{
1030                slidesToShow: 2
1031            }
1032        },
1033        {
1034            breakpoint:768,
1035            settings:{
1036                slidesToShow: 1
1037            }
1038        }]
1039    }).on('afterChange', function(event, slick, currentSlide){
1040        slick.$slides.each(function(i, el){
1041            let $el = $(el);
1042            if($el.hasClass("slick-current")){
1043                $el.closest(".photo-galley-main-cont").find(".photo-gallery-slider-main-datas .photo-gallery-main-img").attr("src", $el.closest(".photo-galley-main-cont").find(".photo-gallery-mini-slider .slick-active img")[0].src);
1044                $el.closest(".photo-galley-main-cont").find(".photo-gallery-mini-link-container").removeClass("active");
1045                $el.closest(".photo-galley-main-cont").find(".photo-gallery-main-href").attr("href", $($el.closest(".photo-galley-main-cont").find(".photo-gallery-mini-slider .slick-active")[0]).find(".photo-gallery-mini-links").attr("data-photo-
1045href"));
1046                $el.closest(".photo-galley-main-cont").find($el.closest(".photo-galley-main-cont").find(".photo-gallery-mini-slider .slick-active")[0]).closest(".photo-gallery-mini-link-container").addClass("active");
1047                $el.closest(".photo-galley-main-cont").find(".photo-gallery-head-text").text($el.closest(".photo-galley-main-cont").find($el.closest(".photo-galley-main-cont").find(".photo-gallery-mini-slider .slick-active")[0]).find(".photo-gallery-mini-links-text").text()).data("post-id", $($el.closest(".photo-galley-main-cont").find(".photo-gallery-mini-slider .slick-active")[0]).find(".photo-gallery-mini-links-text").data("post-id"));
1048                $el.closest(".photo-galley-main-cont").find(".photo-gallery-banner-text").text($el.closest(".photo-galley-main-cont").find($el.closest(".photo-galley-main-cont").find(".photo-gallery-mini-slider .slick-active")[0]).find(".photo-gallery-mini-links").attr("data-photo-banner"));
1049                $el.closest(".photo-galley-main-cont").find(".photo-gallery-category-text").text($el.closest(".photo-galley-main-cont").find($el.closest(".photo-galley-main-cont").find(".photo-gallery-mini-slider .slick-active")[0]).find(".photo-gallery-mini-links").attr("data-photo-category"));
1050                $el.closest(".photo-galley-main-cont").find(".photo-gallery-time").text($el.closest(".photo-galley-main-cont").find($el.closest(".photo-galley-main-cont").find(".photo-gallery-mini-slider .slick-active")[0]).find(".photo-gallery-mini-links").attr("data-photo-time"));
1051            }
1052        });
1053
1054    })
1055
1056    let $photoGalleryMiniSlider = $(".photo-gallery-mini-slider");
1057
1058    $photoGalleryMiniSlider.removeClass("d-flex flex-row overflow-hidden");
1059
1060    $photoGalleryMiniSlider.on('click', function(){
1061        let $parentThis = $(this);
1062        // Tıklama olduğunda autoplay durduruluyor.
1063        $parentThis.slick('slickPause');
1064
1065        $(".photo-gallery-mini-slider .photo-gallery-mini-link-container").click(function(){
1066            $parentThis.slick('slickGoTo', $(this).data("slick-index"));
1067        });
1068
1069        // 10 saniye (10000 milisaniye) sonra autoplay tekrar başlatılıyor.
1070        setTimeout(function(){
1071            $parentThis.slick('slickPlay');
1072        }, 10000);
1073    });
1074
1075    (function(){
1076        $photoGalleryMiniSlider.each(function(i, el){
1077            let $thisEl = $(el);
1078            let $thisParentEl = $thisEl.closest(".photo-galley-main-cont");
1079                if($thisEl.find(".slick-active img").length){
1080                    $thisParentEl.find(".photo-gallery-slider-main-datas .photo-gallery-main-img").attr("src", $thisParentEl.find(".photo-gallery-mini-slider .slick-active img")[0].src);
1081                    $thisParentEl.find(".photo-gallery-mini-link-container").removeClass("active");
1082                    $thisParentEl.find(".photo-gallery-main-href").attr("href",  $thisParentEl.find( $thisParentEl.find(".photo-gallery-mini-slider .slick-active")[0]).find(".photo-gallery-mini-links").attr("data-photo-href"));
1083                    $thisParentEl.find($thisParentEl.find(".photo-gallery-mini-slider .slick-active")[0]).closest(".photo-gallery-mini-link-container").addClass("active");
1084                    $thisParentEl.find(".photo-gallery-head-text").text($thisParentEl.find($thisParentEl.find(".photo-gallery-mini-slider .slick-active")[0]).find(".photo-gallery-mini-links-text").text()).data("post-id", $thisParentEl.find($thisParentEl.find(".photo-gallery-mini-slider .slick-active")[0]).find(".photo-gallery-mini-links-text").data("post-id"));
1085                    $thisParentEl.find(".photo-gallery-banner-text").text($thisParentEl.find($thisParentEl.find(".photo-gallery-mini-slider .slick-active")[0]).find(".photo-gallery-mini-links").attr("data-photo-banner"));
1086                    $thisParentEl.find(".photo-gallery-category-text").text($thisParentEl.find($thisParentEl.find(".photo-gallery-mini-slider .slick-active")[0]).find(".photo-gallery-mini-links").attr("data-photo-category"));
1087                    $thisParentEl.find(".photo-gallery-time").text($thisParentEl.find($thisParentEl.find(".photo-gallery-mini-slider .slick-active")[0]).find(".photo-gallery-mini-links").attr("data-photo-time"));
1088                }
1089            });
1090    })();
1091
1092    var photoGalleryisDrag = false;
1093
1094    let $photoGalleryMiniLinkContainer = $(".photo-gallery-mini-link-container");
1095
1096    $photoGalleryMiniLinkContainer.on("mousedown", function(){
1097        photoGalleryisDrag = false;
1098    });
1099
1100    $photoGalleryMiniLinkContainer.on("mousemove", function(){
1101        photoGalleryisDrag = true;
1102    });
1103
1104    $photoGalleryMiniLinkContainer.on("mouseup", function(){
1105        let $this = $(this);
1106        let $thisParent = $this.closest(".photo-galley-main-cont");
1107        if(!photoGalleryisDrag){
1108            $thisParent.find(".photo-gallery-mini-link-container").removeClass("active");
1109            $this.addClass("active");
1110            $thisParent.find(".photo-gallery-head-text").text($this.find(".photo-gallery-mini-links-text").text());
1111            $thisParent.find(".photo-gallery-main-href").attr("href", $thisParent.find($thisParent.find(".photo-gallery-mini-slider .slick-active")[0]).find(".photo-gallery-mini-links").attr("data-photo-href"));
1112            $thisParent.find(".photo-gallery-banner-text").text($this.find(".photo-gallery-mini-links").attr("data-photo-banner"));
1113            $thisParent.find(".photo-gallery-category-text").text($this.find(".photo-gallery-mini-links").attr("data-photo-category"));
1114            $thisParent.find(".photo-gallery-time").text($this.find(".photo-gallery-mini-links").attr("data-photo-time"));
1115            $this.closest('.photo-galley-main-cont').find(".photo-gallery-main-img").attr("src", $this.find("img").attr("src"));
1116        }
1117    });    
1118
1119    const photoMouseTrigger = function(){
1120        $(".photo-gallery-more-container").addClass("d-none");
1121    }
1122
1123    $(".photo-gallery-scroll-list").on("scroll", photoMouseTrigger);
1124
1125    $(".minibox-gallery-mini-slider").each(function() {
1126        let $this = $(this);
1127        let $children = $this.children();
1128
1129        if ($children.length <= 5) {
1130            $children.clone().appendTo($this);
1131        }
1132
1133        $this.slick({
1134            dots: false,
1135            arrows: false,
1136            slidesToShow: 5,
1137            swipeToSlide: true,
1138            speed: 400,
1139            autoplay: true,
1140            infinite: true,
1141            touchThreshold: 30,
1142            waitForAnimate: false,
1143            responsive: [{
1144                breakpoint: 1200,
1145                settings: {
1146                    slidesToShow: 4
1147                }
1148            }, {
1149                breakpoint: 768,
1150                settings: {
1151                    slidesToShow: 1
1152                }
1153            }]
1154        }).on('afterChange', function(event, slick, currentSlide) {
1155            let $currentSlide = $(slick.$slides[currentSlide]);
1156            let $row = $currentSlide.closest(".row");
1157
1158            let $activeSlide = $row.find(".minibox-gallery-mini-slider .slick-active").first();
1159            let $mainImg = $row.find(".minibox-gallery-main-img");
1160            let $mainHref = $row.find(".minibox-gallery-main-href");
1161            let $mainLinkContainer = $row.find(".minibox-gallery-mini-link-container");
1162            let $headText = $row.find(".minibox-gallery-head-text");
1163            let $bannerText = $row.find(".minibox-gallery-banner-text");
1164            let $categoryText = $row.find(".minibox-gallery-category-text");
1165            let $time = $row.find(".minibox-gallery-time");
1166
1167            $mainImg.attr("src", $activeSlide.find("img").attr("src"));
1168            $mainHref.attr("href", $activeSlide.find(".minibox-gallery-mini-links").data("photo-href"));
1169            $mainLinkContainer.removeClass("active");
1170            $activeSlide.closest(".minibox-gallery-mini-link-container").addClass("active");
1171
1172            let activeLink = $activeSlide.find(".minibox-gallery-mini-links");
1173            let activeText = $activeSlide.find(".minibox-gallery-mini-links-text");
1174
1175            $headText.text(activeText.text()).data("post-id", activeText.data("post-id"));
1176            $bannerText.text(activeLink.data("photo-banner"));
1177            $categoryText.text(activeLink.data("photo-category"));
1178            $time.text(activeLink.data("photo-time"));
1179        });
1180        
1181        $this.find(".minibox-gallery-mini-link-container").click(function() {
1182            $this.slick('slickPause');
1183            $this.slick('slickGoTo', $(this).data("slick-index"));
1184            setTimeout(function() {
1185                $this.slick('slickPlay');
1186            }, 10000);
1187        });
1188        
1189    });
1190
1191    const videosMouseTrigger = function(){
1192        $(".video-gallery-for-more").addClass("d-none");
1193    }
1194
1195    $(".video-gallery-scroll-list").on("scroll", videosMouseTrigger);
1196
1197    $(".video-galeri-slider").slick({
1198        dots: false,
1199        arrows: false,
1200        slidesToShow:6,
1201        swipeToSlide: true,
1202        speed: 400,
1203        autoplay: true,
1204        infinite: true,
1205        waitForAnimate: false
1206    });
1207    $(".kimdir-slider").slick({
1208        dots: false,
1209        arrows: true,
1210        slidesToShow:7,
1211        swipeToSlide: true,
1212        speed: 400,
1213        autoplay: true,
1214        infinite: true,
1215        waitForAnimate: false,
1216        touchThreshold: 30,
1217        responsive: [{
1218            breakpoint:1200,
1219            settings:{
1220                slidesToShow: 5,
1221                arrows: false,
1222            }
1223        },
1224        {
1225            breakpoint:800,
1226            settings:{
1227                slidesToShow: 4,
1228                arrows: false,
1229            }
1230        },
1231        {
1232            breakpoint:500,
1233            settings:{
1234                slidesToShow: 3,
1235                arrows: false,
1236            }
1237        },
1238        {
1239            breakpoint:460,
1240            settings:{
1241                slidesToShow: 2,
1242                arrows: false,
1243            }
1244        },
1245        {
1246            breakpoint:400,
1247            settings:{
1248                slidesToShow: 2,
1249                arrows: false,
1250            }
1251        }]
1252    });
1253    $(".kimdir-slider").slick("refresh");
1254
1255    $(".main-page-horoscope").slick({
1256        dots: false,
1257        arrows: true,
1258        slidesToShow:7,
1259        swipeToSlide: true,
1260        speed: 400,
1261        autoplay: true,
1262        infinite: true,
1263        waitForAnimate: false,
1264        touchThreshold: 30,
1265        responsive: [{
1266            breakpoint:1200,
1267            settings:{
1268                slidesToShow: 5,
1269                arrows: false,
1270            }
1271        },
1272        {
1273            breakpoint:800,
1274            settings:{
1275                slidesToShow: 4,
1276                arrows: false,
1277            }
1278        },
1279        {
1280            breakpoint:500,
1281            settings:{
1282                slidesToShow: 3,
1283                arrows: false,
1284            }
1285        },
1286        {
1287            breakpoint:450,
1288            settings:{
1289                slidesToShow: 2,
1290                arrows: false,
1291            }
1292        }]
1293    });
1294
1295    $(".author-category-slider").slick({
1296        dots: true,
1297        arrows: true,
1298        slidesToShow:1,
1299        swipeToSlide: true,
1300        speed: 400,
1301        autoplay: true,
1302        infinite: true,
1303        waitForAnimate: false
1304    });
1305
1306    $(".breaking-news-slider").slick({
1307        dots: false,
1308        arrows: true,
1309        slidesToShow:1,
1310        swipeToSlide: true,
1311        speed: 400,
1312        autoplay: true,
1313        infinite: true,
1314        waitForAnimate: false
1315    });
1316
1317    $(".sidebar-news-icon-list").slick({
1318        responsive: [
1319            {
1320                breakpoint: 1200,
1321                settings: {
1322                    slidesToShow: 4,
1323                    swipeToSlide: true,
1324                    arrows: false,
1325                    dots: false,
1326                    waitForAnimate: false,
1327                    speed: 400,
1328                    infinite: true,
1329                    touchThreshold: 30
1330                }
1331            },
1332            {
1333                breakpoint: 768,
1334                settings: {
1335                    slidesToShow: 3,
1336                    swipeToSlide: true,
1337                    arrows: false,
1338                    dots: false,
1339                    waitForAnimate: false,
1340                    speed: 400,
1341                    infinite: true,
1342                    touchThreshold: 30
1343                }
1344            },
1345            {
1346                breakpoint: 500,
1347                settings: {
1348                    slidesToShow: 2,
1349                    swipeToSlide: true,
1350                    arrows: false,
1351                    dots: false,
1352                    waitForAnimate: false,
1353                    speed: 400,
1354                    infinite: true,
1355                    touchThreshold: 30
1356                }
1357            },
1358            {
1359                breakpoint: 400,
1360                settings: {
1361                    slidesToShow: 1,
1362                    swipeToSlide: true,
1363                    arrows: false,
1364                    dots: false,
1365                    waitForAnimate: false,
1366                    speed: 400,
1367                    infinite: true,
1368                    touchThreshold: 30
1369                }
1370            },
1371            {
1372                breakpoint: 10000,
1373                settings: "unslick"
1374            }
1375        ]
1376    });
1377
1378    $(".namaz-vakti-timelist").slick({
1379        responsive:[
1380            {
1381                breakpoint: 768,
1382                settings: {
1383                    slidesToShow: 3,
1384                    swipeToSlide: true,
1385                    arrows: false,
1386                    dots: false,
1387                    waitForAnimate: false,
1388                    autoplay:true,
1389                    speed: 400,
1390                    infinite: false,
1391                    touchThreshold: 30
1392                }
1393            },
1394            {
1395                breakpoint: 500,
1396                settings: {
1397                    slidesToShow: 2,
1398                    swipeToSlide: true,
1399                    arrows: false,
1400                    dots: false,
1401                    waitForAnimate: false,
1402                    autoplay:true,
1403                    speed: 400,
1404                    infinite: false,
1405                    touchThreshold: 30
1406                }
1407            },
1408            {
1409                breakpoint: 10000,
1410                settings: "unslick"
1411            }
1412        ]
1413    });
1414
1415     // 1. Gerekli Elementleri Seç
1416    // ===================================
1417    const multiDragContainer = document.querySelector('.multi-drag');
1418    if (!multiDragContainer) {
1419        return;
1420    }
1421
1422    const slider = multiDragContainer.querySelector('.multi-drag-inner');
1423    const items = slider.querySelectorAll('.temp-cont');
1424    const originalItemCount = items.length;
1425
1426    if (originalItemCount <= 1) {
1427        return;
1428    }
1429
1430    // 2. Kusursuz Döngü İçin Kurulum
1431    // ===================================
1432    const firstItemClone = items[0].cloneNode(true);
1433    slider.appendChild(firstItemClone);
1434
1435    let currentIndex = 0;
1436    const itemHeight = items[0].offsetHeight;
1437    const slideInterval = 3000;
1438    const transitionDuration = 800;
1439    
1440    // --- YENİ EKLENEN KISIM BAŞLANGICI ---
1441    // setInterval'ı durdurup başlatabilmek için bir değişkende tutmalıyız.
1442    let slideIntervalId;
1443    // --- YENİ EKLENEN KISIM SONU ---
1444
1445    // 3. Animasyon Fonksiyonu
1446    // ===================================
1447    const startSliding = () => {
1448        // Zaten çalışan bir interval varsa tekrar başlatma (önlem amaçlı)
1449        clearInterval(slideIntervalId); 
1450
1451        slideIntervalId = setInterval(() => {
1452            currentIndex++;
1453
1454            slider.style.transition = `transform ${transitionDuration / 1000}s ease-in-out`;
1455            const offset = -currentIndex * itemHeight;
1456            slider.style.transform = `translateY(${offset}px)`;
1457
1458            if (currentIndex === originalItemCount) {
1459                setTimeout(() => {
1460                    slider.style.transition = 'none';
1461                    slider.style.transform = 'translateY(0px)';
1462                    currentIndex = 0;
1463                }, transitionDuration);
1464            }
1465        }, slideInterval);
1466    };
1467
1468    // 4. Fare Etkileşimi (Duraklat ve Devam Ettir) - YENİ EKLENDİ
1469    // ==============================================================
1470    
1471    // Fare slider alanına girdiğinde...
1472    multiDragContainer.addEventListener('mouseenter', () => {
1473        // ...çalışan animasyon döngüsünü durdur.
1474        clearInterval(slideIntervalId);
1475    });
1476
1477    // Fare slider alanından çıktığında...
1478    multiDragContainer.addEventListener('mouseleave', () => {
1479        // ...animasyonu tekrar başlat.
1480        startSliding();
1481    });
1482
1483    // 5. Animasyonu Başlat
1484    // ===================================
1485    startSliding();
1486
1487    $(".remove-margin, .remove-margin-2").removeClass("remove-margin remove-margin-2");
1488
1489    $(".slick-slider").removeClass("d-flex flex-row");
1490
1491    $(".slick-slider .slick-list .slick-track .slick-slide").removeClass("d-none");
1492
1493    $(".fullgalleryV2-vertical-slider").slick("refresh");
1494
1495    $(".add-w-100").removeClass("add-w-100").addClass("w-100");
1496
1497    $("[data-remove-class]").each(function () {
1498        var $this = $(this);
1499        var classesToRemove = $this.data("remove-class");
1500        
1501        var classArray = classesToRemove.split(" ");
1502        
1503        for (var i = 0; i < classArray.length; i++) {
1504          $this.removeClass(classArray[i]);
1505        }
1506    });
1507
1508    if ($(window).width() < 1200) {
1509        // jQuery özel etkinliklerini tanımla
1510        ['touchstart', 'touchmove'].forEach(function(eventType) {
1511            jQuery.event.special[eventType] = {
1512                setup: function(_, ns, handle) {
1513                    // 'slick-slider' sınıfı kontrolü ve 'noPreventDefault' isim alanını kontrol et
1514                    var isPassive = !ns.includes("noPreventDefault") && !$(this).closest('.slick-slider').length && !$(this).hasClass('makeSlideable');
1515                    this.addEventListener(eventType, handle, { passive: isPassive });
1516                }
1517            };
1518        });
1519    
1520        ['wheel', 'mousewheel'].forEach(function(eventType) {
1521            jQuery.event.special[eventType] = {
1522                setup: function(_, ns, handle) {
1523                    // 'slick-slider' sınıfı kontrolü
1524                    var isPassive = !$(this).closest('.slick-slider').length;
1525                    // wheel ve mousewheel olayları için, eğer 'slick-slider' altındaysa passive false olacak
1526                    this.addEventListener(eventType, handle, { passive: isPassive });
1527                }
1528            };
1529        });
1530    
1531        // Event listener options'ın desteklenip desteklenmediğini kontrol et
1532        var supportsPassive = false;
1533        try {
1534            var opts = Object.defineProperty({}, 'passive', {
1535                get: function() {
1536                    supportsPassive = true;
1537                }
1538            });
1539            window.addEventListener("testPassive", null, opts);
1540            window.removeEventListener("testPassive", null, opts);
1541        } catch (e) {}
1542    
1543        // Eğer passive destekleniyorsa, varsayılan seçenekleri belirle
1544        var defaultOptions = supportsPassive ? { passive: true, capture: false } : false;
1545    }
1546    
1547
1548});

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.