PageSourceSearch

https://21yyte.org/frontend/diamond/assets/js/main.js?v=1790942314

js 21yyte.org collected 2026-10-02 11:58:47 UTC 37,900 bytes, 966 lines download raw bytes

1$(function(){
2
3    $(".op-c").removeClass("op-c").addClass("op-a");
4
5    var $fixHeader = $(".fix-header");
6    var fixHeaderHeight = $fixHeader.height();
7    var botHeaderHeight = $(".botheader").height();
8
9    let $ads1 = $(".ads1");
10    let $ads2 = $(".ads2");
11    let $twoAds = $(".ads1, .ads2");
12    let $topheaderPartial = $(".topheader-partial");
13
14    const stickHeader = () => {
15        let totalOuterHeight = 0;
16        if($(window).scrollTop() >= 150){
17            $fixHeader.each(function(){totalOuterHeight += $(this).outerHeight();})
18            $fixHeader.removeClass("position-relative").addClass("position-fixed top-0 headerfix-active");
19            $(".fix-header.botheader").addClass("position-fixed top-0 start-0 end-0").css("margin-top",`${fixHeaderHeight}px`);
20            $twoAds.css("margin-top", totalOuterHeight + 20 + "px");
21            $("body").css("padding-top", `${totalOuterHeight}px`);
22            if($(window).scrollTop() + totalOuterHeight + $ads1.height() > $("footer").offset().top){
23                // $twoAds.css();
24            }
25        }
26        else{
27            $fixHeader.removeClass("position-fixed top-0 headerfix-active").addClass("position-relative");
28            $(".fix-header.botheader").removeClass("position-fixed top-0 start-0 end-0").css("margin-top",`0px`);
29            $twoAds.css({
30                marginTop: $("header").height()+ ($topheaderPartial.length ? $topheaderPartial.outerHeight() : 0) + ($(".botheader").length ? $(".botheader-partial").outerHeight() : 0) + 30 +"px"
31            })
32            $("body").css("padding-top", `0px`);
33        }
34        if($(window).scrollTop() + totalOuterHeight + $ads1.height() > $("footer").offset().top){
35            $twoAds.removeClass("position-fixed").addClass("position-absolute").css("margin-top", $("footer").offset().top - 622 + "px")
36        }
37        else{
38            $twoAds.removeClass("position-absolute").addClass("position-fixed");
39        }
40    }
41
42    const menus = () => {
43        let allMenus = $(".menu-cont-opener");
44        
45        allMenus.each((i, el) => {
46            let $this = $(el);
47            let menuTimeout;
48    
49            $this.on("mouseenter", function() {
50                clearTimeout(menuTimeout); // Zamanlayıcıyı temizle
51                $(this).addClass("active");
52            });
53    
54            $this.on("mouseleave", function() {
55                menuTimeout = setTimeout(() => {
56                    $(this).removeClass("active");
57                }, 150); // Yarım saniye gecikme
58            });
59    
60            let openMenuItems = $this.find(".open-menu-item");
61    
62            openMenuItems.each((i, el) => {
63                let itemTimeout;
64    
65                $(el).on("mouseenter", function() {
66                    clearTimeout(itemTimeout); // Zamanlayıcıyı temizle
67                    $(this).addClass("active");
68                });
69    
70                $(el).on("mouseleave", function() {
71                    itemTimeout = setTimeout(() => {
72                        $(this).removeClass("active");
73                    }, 150); // Yarım saniye gecikme
74                });
75            });
76        });
77    };
78    
79    menus();
80    
81
82    stickHeader();
83    $(window).scroll(function(){
84        stickHeader();
85    });
86
87    var setCookie = function (cname, cvalue, exminutes = 10) {
88        const d = new Date();
89        d.setTime(d.getTime() + (exminutes * 60 * 1000));
90        let expires = "expires=" + d.toUTCString();
91        document.cookie = cname + "=" + cvalue + ";" + expires + ";path=/";
92    }
93
94    var getCookie = function(cname) {
95        let name = cname + "=";
96        let ca = document.cookie.split(';');
97        for(let i = 0; i < ca.length; i++) {
98          let c = ca[i];
99          while (c.charAt(0) == ' ') {
100            c = c.substring(1);
101          }
102          if (c.indexOf(name) == 0) {
103            return c.substring(name.length, c.length);
104          }
105        }
106        return "";
107      }
108
109    if(getCookie("cookiePolicy") !== "false"){
110        $(".footer-end-bar").removeClass("d-none");
111    }else{
112        $(".footer-end-bar").remove();
113    }
114
115    $(".close-footer-endbar").click(function(){
116        $(this).closest(".footer-end-bar").remove();
117        setCookie("cookiePolicy", false,30);
118    });
119
120
121
122    const windowHrefChange = (link) => {
123        window.location.href = link;
124    }
125
126    
127
128    let $dataPills = $("[data-bs-toggle='pill']");
129
130    $dataPills.click(function(){
131        let $this = $(this);
132        setCookie("activePill", $this.data("bs-target"));
133    });
134
135    let controlPills = function(){
136        if(getCookie("activePill") && $(`${getCookie("activePill")}`).length){
137
138            $dataPills.removeClass("active");
139
140            $(`[data-bs-target='${getCookie("activePill")}']`).addClass("active");
141
142            $(".tab-content#v-pills-tabContent >.tab-pane").removeClass("active show");
143
144            $(`${getCookie("activePill")}`).addClass("active show");
145
146        }
147    }
148
149    controlPills();
150
151    $("#popupAdvertClose").click(function(){
152        setCookie('popupAdvertClose', true, 6);
153    });
154
155    if(getCookie('popupAdvertClose') === '' || getCookie('popupAdvertClose') === 'false'){
156        $("#popupAdvert").modal("show");
157    }
158    
159    if($(window).width() < 900){
160        $ads1.addClass("d-none");
161        $ads2.addClass("d-none");
162    }
163    else{
164        $ads1.addClass("d-none");
165        $ads2.addClass("d-none");
166    }
167
168    let $articlePostDetail = $("#article_post_detail");
169    
170    if ($articlePostDetail.length) {
171        $articlePostDetail.html($articlePostDetail.html().replaceAll("style=", ''));
172    }
173
174    let $articleInside = $(".article-inside");
175
176    if ($articleInside.length) {
177
178        $articleInside.html($articleInside.html().replaceAll("style=", ''));
179    }
180    
181    let $loginWarning = $(".login-warning");
182
183    if($loginWarning.length > 0){
184        $loginWarning.html($loginWarning.html().replace("üye girişi", `<span class="user-operations c-pointer text-red user-login">üye girişi</span>`))
185        $loginWarning.html($loginWarning.html().replace("üye olmalı", `<span class="user-operations c-pointer text-red user-register">üye olmalı</span>`))
186        $loginWarning.html($loginWarning.html().replace("giriş yapabilir", `<span class="user-operations c-pointer text-red user-login">giriş yapabilir</span>`))
187        $loginWarning.html($loginWarning.html().replace("kayıt olabilirsiniz", `<span class="user-operations c-pointer text-red user-register">kayıt olabilirsiniz</span>`))
188    }
189
190    const controlAds = () => {
191        let $containerXL = $(".container-xl");
192        $twoAds.css({
193            marginTop: $("header").height()+ ($topheaderPartial.length ? $topheaderPartial.outerHeight() : 0) + ($(".botheader").length ? $(".botheader-partial").outerHeight() : 0) + 30 +"px"
194        }).removeClass("d-none");
195        if($(window).width() < 1020){
196            $twoAds.addClass("d-none");
197        }
198        else{
199            $twoAds.removeClass("d-none");
200        }
201        $ads1.css({
202            marginLeft: ($containerXL.outerWidth(true) - $containerXL.outerWidth()) / 2 - $(".ads1 >a").width() + "px"
203        })
204        $ads2.css({
205            marginRight: ($containerXL.outerWidth(true) - $containerXL.outerWidth()) / 2 - $(".ads2 >a").width() + "px"
206        })
207    }
208
209    $(window).on("load", function () {
210        controlAds();
211    });
212
213    let $makeSlideableMobile = $(".makeSlideable-mobile");
214
215    const sliderReplacementCode = function(){
216        if($(window).width() < 500){
217
218            $makeSlideableMobile.addClass("active");
219
220            let newsGalleriesCont = $(".news-galleriesv8");
221
222            // mobile-slider-replace-box
223
224            newsGalleriesCont.each(function(i, el){
225                let $this = $(el);
226                if($this.find(".mobile-slider-replace-box").length <= 1){
227                    let $sliderCont = $this.find(".mobile-slider-replace-box");
228                    $sliderCont.find('.galleriesv8-slider').removeClass("col-7").addClass("col-12 pt-1");
229                    if($sliderCont.find('.galleriesv8-slider').hasClass("slick-initialized")){
230                        $sliderCont.find('.galleriesv8-slider').slick("unslick");
231                    }
232                    $this.siblings(".mobile-slider-place").append($sliderCont.clone(true).removeClass("position-absolute").addClass("mobile-slider"));
233                    $this.find(".mobile-slider-replace-box.position-absolute").remove();
234
235                }
236            });
237        }else{
238            $makeSlideableMobile.removeClass("active");
239            let newsGalleriesCont = $(".news-galleriesv8");
240            
241            newsGalleriesCont.each(function(i, el){
242                let $this = $(el);
243                if($this.siblings(".mobile-slider-place").find(".mobile-slider-replace-box").length){
244                    let $sliderCont = $this.siblings(".mobile-slider-place").find(".mobile-slider-replace-box");
245                    $sliderCont.find('.galleriesv8-slider').addClass("col-7").removeClass("col-12 pt-1");
246                    if($sliderCont.find('.galleriesv8-slider').hasClass("slick-initialized")){
247                        $sliderCont.find('.galleriesv8-slider').slick("unslick");
248                    }
249                    $this.append($sliderCont.addClass('position-absolute').clone(true).removeClass("mobile-slider"));
250                    $this.siblings(".mobile-slider-place").find(".mobile-slider-replace-box.mobile-slider").remove();
251
252                }
253            });
254            
255        }
256
257        $(".galleriesv8-slider").each(function(i, el){
258            let $this = $(el);
259            $this.removeClass("slider-items-wrapper");
260            if(!$this.hasClass("slick-initialized")){
261                $(el).slick({
262                    dots: false,
263                    arrows: true,
264                    slidesToShow: 6,
265                    swipeToSlide: true,
266                    speed: 400,
267                    autoplay: true,
268                    autoplaySpeed: 2500,
269                    infinite: true,
270                    waitForAnimate: false,
271                    touchThreshold: 30,
272                    responsive: [{
273                        breakpoint: 1025,
274                        settings: {
275                            slidesToShow: 5
276                        }
277                    },
278                    {
279                        breakpoint: 768,
280                        settings: {
281                            slidesToShow: 4
282                        }
283                    },
284                    {
285                        breakpoint: 500,
286                        settings: {
287                            slidesToShow: 3
288                        }
289                    }]
290                }).on('afterChange', function(event, slick, currentSlide){
291                    slick.$slides.each(function(i, el){
292                        let $el = $(el);
293                        if($el.hasClass("slick-current") && $el.closest(".
293news-galleriesv8").length){
294                            $el.closest(".news-galleriesv8").find(".galleriesv8-img-box .galleriesv8-img").attr("src", $el.find("img").data('img-url'));
295                            $el.closest(".news-galleriesv8").find(".galleriesv8-category").text($el.find("img").data('img-category'));
296                            $el.closest(".news-galleriesv8").find(".galleriesv8-news-title").text($el.find("img").data('img-title'));
297                            $el.closest(".news-galleriesv8").find("a").attr("href", $el.find("img").data('img-href'));
298                        }else if($el.hasClass("slick-current") && $el.closest(".mobile-slider-place").length){
299                            $el.closest(".mobile-slider-place").siblings(".news-galleriesv8").find(".galleriesv8-img-box .galleriesv8-img").attr("src", $el.find("img").data('img-url'));
300                            $el.closest(".mobile-slider-place").siblings(".news-galleriesv8").find(".galleriesv8-category").text($el.find("img").data('img-category'));
301                            $el.closest(".mobile-slider-place").siblings(".news-galleriesv8").find(".galleriesv8-news-title").text($el.find("img").data('img-title'));
302                            $el.closest(".mobile-slider-place").siblings(".news-galleriesv8").find("a").attr("href", $el.find("img").data('img-href'));
303                        }
304                    });
305                });
306            }
307        });
308    
309        $(".galleriesv8-slider .slider-item").on("click", function(){
310            $(this).closest(".news-galleriesv8").find(".galleriesv8-slider").slick('slickGoTo', $(this).data("slick-index"));
311        });
312    }
313
314    sliderReplacementCode();
315
316    $(window).resize(function(){
317        // PENCERE BOYUTUNUN HER DEĞİŞİMİNDE KONTROL ETMESİ İÇİN
318        controlAds();
319        sliderReplacementCode();
320    });
321
322    $(document).on("click", ".getPageUrl", function(){
323        $("#copyPageLinkInput").val(window.location.href);
324    });
325
326    $(".copy-page-url").click(function(){
327        let url = $("#copyPageLinkInput");
328        url[0].select();
329        url[0].setSelectionRange(0, 99999); //mobile için
330
331        navigator.clipboard.writeText(url.val());
332    })
333
334    $(".user-operations, .sidemenu-user-login, .sidemenu-user-register").click(function(){
335        $(".user-operations-container").parent().fadeIn("fast");
336    });
337
338    $(".trigger-search-news").click(function(){
339        $(".header-search-bar").fadeIn("fast");
340        $(".header-search-bg").fadeIn("fast");
341    })
342    $(".header-search-bg").click(function(){
343        $(".header-search-bar").fadeOut("fast");
344        $(".header-search-bg").fadeOut("fast");
345    })
346
347    $(".user-operations").click(function(){
348        $(".user-operations-container").fadeIn("fast");
349    });
350
351    let $leftMenuContainer = $(".left-menu-container");
352
353    $(".close-left-menu").click(function(){
354        $leftMenuContainer.fadeOut("fast");
355    });
356
357    $(".open-left-menu, .side-menu-open").click(function(){
358        $leftMenuContainer.fadeIn("fast");
359    })
360
361    $(".user-operations-container").mousedown(function(e){
362        if(e.target.classList.value.indexOf("user-operations-container") > -1){
363            $(".user-operations-container").parent().fadeOut("fast");
364        }
365    })
366
367    $leftMenuContainer.click(function(e){
368        if(e.target.classList.value.indexOf("left-menu-container") > -1){
369            $leftMenuContainer.fadeOut("fast");
370        }
371    })
372
373     $(".user-login, .sidemenu-user-login").click(function(){
374        $(".user-register, .user-login").removeClass("text-danger");
375        $(".register-stick, .login-stick").removeClass("bg-red").addClass("bg-dark");
376        $(".register-box").addClass("d-none").removeClass("d-block");
377        $(".login-box").addClass("d-block").removeClass("d-none");
378        $(".login-stick").removeClass("bg-dark").addClass("bg-red");
379     });
380
381     $(".user-register, .sidemenu-user-register").click(function(){
382        $(".user-register, .user-login").removeClass("text-danger");
383        $(".register-stick, .login-stick").removeClass("bg-red").addClass("bg-dark");
384        $(".register-box").addClass("d-block").removeClass("d-none");
385        $(".login-box").addClass("d-none").removeClass("d-block");
386        $(".register-stick").removeClass("bg-dark").addClass("bg-red");
387    });
388
389    $(".slick-slider .slick-dots button").hover(function(){
390        $(this).closest(".slick-slider").slick('slickGoTo', $(this).text()-1);
391    });
392
393    $(".slick-dots").each(function() {
394        $(this).find("button").each(function(i) {
395            var href = $(this).closest(".slick-dots").parent().find(".slick-slide").eq(i+1).prop("href");
396            href = href ? href : $(this).closest(".slick-dots").parent().find(".slick-slide").eq(i+1).find("a").attr("href");
397            $(this).attr("href", href);
398            $(this).click(function() {
399                window.location.href = href;
400            });
401        });
402    });
403
404    $(".survey-answer").click(function(){
405        $(this).closest(".survey-answer-box").find("input[type='radio']").prop("checked", true);
406    });
407
408    $(".fast-access button").click(function(){
409        $(".tab-name").text($(this).text());
410    });
411    $(".api-newspaper").click(function(){
412        $("#full_screen_newspaper").attr("src",$(this).attr("src").replace("gazetelerimg","gazetelerimgkirpilmamis"))
413    });
414    $(".egazete-slider, .kimdir-slider, .yazarlar-slider").removeClass("preview_opacity");
415
416    $(".new-firm-like, .firm-star").click(function(){
417        $(this).toggleClass("active");
418    });
419
420    $(".hidden-cont-opener").click(function(){
421        let $footerCont = $(".footer-hidden-cont");
422        let $this = $(this);
423        $footerCont.toggleClass("active");
424        if($footerCont.hasClass("active")){
425            $this.removeClass("fa-caret-down py-0").addClass("fa-caret-up");
426        }else{
427            $this.addClass("fa-caret-down py-0").removeClass("fa-caret-up");
428        }
429    });
430
431    $(".firm-list-sss").click(function(){
432        $(this).toggleClass("opened");
433        $(this).find('.firm-list-sss-answer').css({"margin-top":$(this).outerHeight()});
434    });
435
436    $(".fikstur-table-button").click(function(){
437        $(".fikstur-table-button").removeClass("active");
438        $(this).toggleClass("active");
439    });
440
441    let $firmDetailCommentStar = $(".firm-detail-comment-star");
442
443    $firmDetailCommentStar.click(function(){
444        const activatedStar = `<svg xmlns="http://www.w3.org/2000/svg" width="28.133" height="27.1" viewBox="0 0 23.071 22.209"><g transform="translate(0 0)"><path d="M23.071,18.052,14.688,17.5,11.531,9.569,8.374,17.5,0,18.052l6.423,5.454L4.315,31.778l7.216-4.561,7.216,4.561L16.64,23.505Z" transform="translate(0 -9.569)" fill="#f0b440"/></g></svg>`;
445        const deactivatedStar = `<svg xmlns="http://www.w3.org/2000/svg" width="28.133" height="27.1" viewBox="0 0 28.133 27.1"><g transform="translate(2.529 2.704)"><g transform="translate(0 0)"><path d="M23.071,18.052,14.688,17.5,11.531,9.569,8.374,17.5,0,18.052l6.423,5.454L4.315,31.778l7.216-4.561,7.216,4.561L16.64,23.505Z" transform="translate(0 -9.569)" fill="none" stroke="#f0b440" stroke-width="2"/></g></g></svg>`;
446
447        $firmDetailCommentStar.html(deactivatedStar);
448
449        for(let i = 0; i <= $(this).index(); i++){
450            $firmDetailCommentStar.eq(i).html(activatedStar);
451        }
452    });
453
454    if($(window).width() <= 768){
455        setInterval(
456            function(){
457                if($(".admin-sort-item").hasClass("ui-sortable-handle")){
458                    $(".admin-sort-item").removeClass("ui-sortable-handle");
459                    clearInterval(this);
460                }
461            }, 1000);
462    }
463
464    $("#gazete-mansetleri-tablinks .nav-item .nav-link").on("click", function(){
465        if($(`${$(this).data('bs-target')} .sidebar-news-icon-list`).hasClass('slick-initialized')){
466            $(`${$(this).data('bs-target')} .sidebar-news-icon-list`).slick('refresh');
467        }
468    });
469
470    let newsDetailFontSize = 18;
471
472    $(document).on("click", ".news-operation-button", function(){
473        let articlePostSelector = $(`.article_post_detail p,.article_post_detail h2,.article_post_detail h3,.article_post_detail h4,.article_post_detail h5,.article_post_detail h6`);
474        let summaryPostSelector = $(`.post-summary p,.post-summary h2,.post-summary h3,.post-summary h4,.post-summary h5,.post-summary h6`);
475        if($(this).data("operation") == "increase"){
476            newsDetailFontSize += 1;
477            articlePostSelector.css({
478                "font-size": `${newsDetailFontSize}px`,
479                "line-height": `${newsDetailFontSize + 10}px`
480            });
481            summaryPostSelector.css({
482                "font-size": `${newsDetailFontSize}px`,
483                "line-height": `${newsDetailFontSize + 10}px`
484            });
485        }
486        else if($(this).data("operation") == "decrease"){
487            newsDetailFontSize -= 1;
488            articlePostSelector.css({
489                "font-size": `${newsDetailFontSize}px`,
490                "line-height": `${newsDetailFontSize + 10}px`
491            });
492            summaryPostSelector.css({
493                "font-size": `${newsDetailFontSize}px`,
494                "line-height": `${newsDetailFontSize + 10}px`
495            });
496        }
497        else{
498            newsDetailFontSize = 20;
499            articlePostSelector.css({
500                "font-size": `${newsDetailFontSize}px`,
501                "line-height": `${newsDetailFontSize + 10}px`
502            });
503            summaryPostSelector.css({
504                "font-size": `${newsDetailFontSize}px`,
505                "line-height": `${newsDetailFontSize + 10}px`
506            });
507        }
508    });
509
510    $(document).on("click", ".open-mobile-shares", function(){
511        $(this).closest(".socialmedias-and-share-container").find(".mobile-social-medias-container").toggleClass("d-none");
512    });
513
514    $(".col-three-ads-cont img").addClass("col-three-advert");
515
516    $(".header-side-weather-box").click(function(){
517        let $this = $(this);
518        $this.toggleClass("active");
519        $this.find('.weather-select-open-box').css({
520            top: $this.offset().top + $this.height() + 10
521        });
522    });
523
524    const makeSlideable = function(slidingElement){
525        let isDragging = false;
526        let startPositionX;
527        let startScrollLeft;
528        let dragElement = slidingElement;
529    
530        dragElement.mousedown(function(e) {
531            // Eğer tıklanan eleman veya üst elemanlarından biri bir select ise, işleyici çalışmaz
532            if ($(e.target).closest('select').length > 0) return;
533            isDragging = true;
534            startPositionX = e.clientX;
535            startScrollLeft = this.scrollLeft;
536            e.preventDefault();
537        });
538    
539        $(document).mouseup(function() {
540            isDragging = false;
541        });
542    
543        dragElement.mousemove(function(e) {
544            if (!isDragging) return;
545            let deltaX = startPositionX - e.clientX;
546            this.scrollLeft = startScrollLeft + deltaX;
547        });
548    
549        dragElement.mouseleave(function() {
550            if (isDragging) {
551                isDragging = false;
552            }
553        });
554    
555        dragElement.on("touchstart", function(e) {
556            // Eğer tıklanan eleman veya üst elemanlarından biri bir select ise, işleyici çalışmaz
557            if ($(e.target).closest('select').length > 0) return;
558            isDragging = true;
559            startPositionX = e.touches[0].clientX;
560            startScrollLeft = this.scrollLeft;
561        });
562    
563        dragElement.on("touchend", function() {
564            isDragging = false;
565        });
566    
567        dragElement.on("touchmove", function(e) {
568            if (!isDragging) return;
569            let deltaX = startPositionX - e.touches[0].clientX;
570            this.scrollLeft = startScrollLeft + deltaX;
571        });
572    }    
573
574    makeSlideable($(".makeSlideable"));
575
576    // if($(window).width() < 500){
577    //     makeSlideable($(".makeSlideable-mobile"));
578    // }
579
580    let totalFixedHeight = 0;
581    setTimeout(() => {
582        $fixHeader.each(function() {
583            totalFixedHeight += $(this).height();
584        });
585
586        $(".columnSticky").theiaStickySidebar({
587            additionalMarginTop: totalFixedHeight + 20,
588            updateSidebarHeight: false
589        });
590
591        // İşaretleyici tanımlayın
592        let isRefreshed = false;
593
594        const observer = new MutationObserver((mutations) => {
595            mutations.forEach((mutation) => {
596                if (!isRefreshed && mutation.addedNodes.length > 0) {
597                    isRefreshed = true;
598
599                    if (window.googletag) {
600                        // window.googletag.pubads().refresh();
601                    }
602
603                    // Yeniden bir süre sonra işaretleyiciyi sıfırlayın
604                    setTimeout(() => {
605                        isRefreshed = false;
606                    }, 1000);
607                }
608            });
609        });
610
611        const targetNode = document.querySelector('.columnSticky');
612        if (targetNode) {
613            observer.observe(targetNode, { childList: true, subtree: true });
614            // setTimeout(() => {
615            //     if (window.googletag) {
616            //         isRefreshed = true;
617            //         window.googletag.pubads().refresh();
618            //         setTimeout(() => {
619            //             isRefreshed = false;
620            //         }, 1000);
621            //     }
622            // }, 1000);
623        }
624
625    }, 2000);
626
627    setTimeout(()=>{
628        var iframeId = $(".sidebar-sort-item .gpt-ads-target-div iframe").attr("id");
629    
630        if (iframeId) {
631            // ID varsa, düzenli ifade ile istenilen kısmı alalım
632            var adUnitPath = iframeId.match(/\d+\/[A-Za-z]+/);
633        
634            if (adUnitPath) {
635                // Ad unit path bulunduysa, slotları al ve bu slotu yenile
636                adUnitPath = adUnitPath[0];
637                var allSlots = window.googletag.pubads().getSlots();
638        
639                allSlots.forEach(function(slot) {
640                    if (slot.getAdUnitPath().includes(adUnitPath)) {
641                        // Slot bulundu, şimdi bu slotu yenileyelim
642                        window.googletag.pubads().refresh([slot]);
643                        console.log("Slot " + adUnitPath + " yenilendi.");
644                    }
645                });
646            } else {
647                console.log("Ad unit path düzenli ifadeyle bulunamadı.");
648            }
649        }
650    },3000);
651
652    $(".have-search-table").addClass("position-relative").prepend(`
653        <div class="position-absolute top-0 end-0 rounded-bottom-1 rounded-start-1 bg-white py-1 px-2 z-1">
654            <div class="table-search-box d-flex flex-row align-items-center">
655                <input class="form-control search-currency-name d-none me-1" placeholder="Ara" type="text">
656                <button class="btn search-currency-name-btn border-0 outline-0 p-0">
657                    <i class="fa fa-search fs-22" aria-hidden="true"></i>
658                </button>
659            </div>
660        </div>
661    `);
662
663    $(document).on("click", ".search-currency-name-btn", function(){
664        $(this).closest(".table-search-box").find(".search-currency-name").val('');
665        $(document).find(".search-currency-name").trigger("input");
666        $(this).closest(".table-search-box").find(".search-currency-name").toggleClass("d-none");
667
668    });
669
670    $(document).on("input", ".search-currency-name", function(){
671        let value = $(this).val().toLocaleLowerCase(navigator.language || navigator.userLanguage);
672
673        let parent = $(this).closest(".have-search-table");
674
675        parent.find(`.${parent.data("search-class")}`).each(function(){
676            if($(this).text().toLocaleLowerCase(navigator.language || navigator.userLanguage).indexOf(value) > -1){
677                $(this).closest("tr").show();
678            }
679            else{
680                $(this).closest("tr").hide();
681            }
682        }
683        );
684
685        if($(this).val() == ""){
686            $(`.${parent.data("search-class")}`).closest("tr").show();
687        }
688    });
689
690    var refreshRelateNews = function (){
691        $(".related-news-box").each(function() {
692            var link = $(this).data("related-new-link");
693            if (link) {
694                $(this).wrap(`<a href="${link}"></a>`);
695            }
696            $(this).find(".related-news-box-bg").css("background", $(this).find("[data-related-color]").data("related-color"));
697            $(this).closest("td").addClass("border-0 p-0").closest("tr").addClass("border-0 p-0").closest("tbody").addClass("border-0 p-0").closest("figure").addClass("m-0");
698        });
699    }
700
701    refreshRelateNews();
702
703    $(".economic-calendar-filter-box .open-filter-box").click(function(){
704        $(this).closest(".economic-calendar-filter-box").toggleClass("active");
705    });
706    
707    $(document).on("click", ".load-more-comment", function(){
708        $(this).closest(".comments-box").find(".comment-item").removeClass("d-none");
709        $(this).remove();
710    });
711
712    $(".focus-clear").on("focus", function(){
713        $(this).val('');
714    });
715
716    $(".gazete-mansetleri-select-box select").on("change", function(){
717        windowHrefChange($(this).val());
718    });
719
720    $(".process-response-cont.just-info").fadeOut(3000);
721
722    $(".comment-delete").click(function(){
723        $(this).addClass("deleteInProgress");
724    });
725
726    // $(".duty-pharmacies-btn")
727
728$(".viewImageFullScreen").on("click", function() {
729
730    return '';
731
732    let imageCounts = $(".viewImageFullScreen").length;
733
734    $("body").append(`
735        <div class="fullScreenImgBg position-fixed top-0 start-0 bottom-0 end-0 z-3 d-flex align-items-center justify-content-center" style="background: #00000021;">
736            <img class="fullScreenIMG" style="max-width:100%;max-height:100%; width:calc(100% - 5vw); object-fit:contain" src="${$(this).attr("src")}" data-img-number="${$(this).data("img-sort")}" />
737
738            <div class="position-absolute top-0 w-100 d-flex">
739                <i class="close-gallery fa fa-times c-pointer fs-40 ms-auto me-lg-4 me-md-4 me-2 mt-3" aria-hidden="true"></i>
740            </div>
741
742            <div class="arrow-cont d-none position-absolute w-100 d-flex flex-row justify-content-between">
743                <div class="change-img-btn me-auto ms-lg-5 ms-md-4 ms-2" data-prop-val="-1">
744                    <i class="fa fa-chevron-left c-pointer fs-40" aria-hidden="true"></i>
745                </div>
746
747                <div class="change-img-btn ms-auto me-lg-5 ms-md-4 me-2" data-prop-val="1">
748                    <i class="fa fa-chevron-right c-pointer fs-40" aria-hidden="true"></i>
749                </div>
750            </div>
751        </div>
752    `);
753
754    if (imageCounts > 1) {
755        $(".fullScreenImgBg").find(".arrow-cont").removeClass("d-none");
756
757        $(".change-img-btn").click(function() {
758            let $arrow = $(this);
759            let imgSortNumber = parseInt($arrow.closest(".fullScreenImgBg").find("img").data("img-number"));
760            let newImgSortNumber = imgSortNumber + parseInt($arrow.data("prop-val"));
761
762            if (newImgSortNumber > 0 && newImgSortNumber <= imageCounts) {
763                $(".fullScreenIMG").attr("src", $(`[data-img-sort=${newImgSortNumber}]`).attr("src"))
764                    .data("img-number", newImgSortNumber);
765            }
766        });
767    }
768
769    $(".fullScreenImgBg").click(event => {
770        let $this = $(event.target);
771        if ($this.hasClass("fullScreenImgBg") || $this.hasClass("close-gallery")) {
772            $this.closest(".fullScreenImgBg").remove();
773        }
774    });
775
776});
777
778$(".gobackbtn").on("click", function(){
779    window.history.back();
780});
781
782let isStorySwiping = false;
783let holdTimeout;
784
785$(".story1-slider, .story2-slider").on('mousedown touchstart', function() {
786    const $slider = $(this);
787
788    holdTimeout = setTimeout(function() {
789        isStorySwiping = true;
790        $slider.find(".story-item").addClass("pe-none");
791    }, 150); // 150ms sonra kaydırma moduna geç
792});
793
794$(document).on('mouseup touchend', function() {
795    clearTimeout(holdTimeout);
796
797    if (isStorySwiping) {
798        setTimeout(function() {
799            $(".story1-slider, .story2-slider").find(".story-item").removeClass("pe-none");
800            isStorySwiping = false;
801        }, 100);
802    }
803});
804
805$(document).on('mouseup touchend', function() {
806    clearTimeout(holdTimeout);
807
808    if (isStorySwiping) {
809        setTimeout(function() {
810            $(".story1-slider, .story2-slider").find(".story-item").removeClass("pe-none");
811            isStorySwiping = false;
812        }, 100);
813    }
814});
815
816var storyTimeoutRef;
817var $focusedStoryItemIndex;
818
819const progressTimerFunc = () => {
820    $(".story-progress-bar-cont .story-progress-bar .bar-partial").css("animation","none");
821    let $targetProgressElement = $(".story-progress-bar-cont .story-progress-bar").eq($focusedStoryItemIndex);
822    let progressTimer = $targetProgressElement.data('progress-timer');
823
824    // Clear the existing timer before setting a new one
825    clearTimeout(storyTimeoutRef);
826
827    $targetProgressElement.find(".bar-partial").css({
828        animationName: "fillProgress",
829        animationDuration: `${progressTimer}s`,
830        animationTimingFunction: "linear"
831    });
832
833    // Set the new timer for progressing to the next story
834    storyTimeoutRef = setTimeout(() => {
835        $(".next-story").click();
836        progressTimerFunc();
837    }, progressTimer * 1000);
838};
839
840
841$(".story-el-cont .story-item").click(function(event){
842
843    if (isStorySwiping) {
844        event.preventDefault();
845        return;
846    }
847
848    let $this = $(this);
849
850    $(".story-el-cont .story-item").removeClass("focused-story").closest(".story-el-cont").removeClass("focused-stories-cont");
851
852    $this.addClass("focused-story").closest(".story-el-cont").addClass("focused-stories-cont");
853
854    const focusedStoryArray = [];
855
856    $(".story-el-cont.focused-stories-cont").find(".story-item").each(function(i, el){
857        let $storyItem = $(el);
858
859        if($storyItem.hasClass("focused-story")){
860            $focusedStoryItemIndex = i;
861        }
862
863        focusedStoryArray.push({
864            "story_title": $storyItem.data("story-title"),
865            "story_src": $storyItem.data("story-src"),
866            "story_src_type": $storyItem.data("story-src-type"),
867            "story_link": $storyItem.data("story-link") || "#",
868            "story_time": $storyItem.data("story-time") || 6
869        });
870
871    });
872
873    if(focusedStoryArray.length){
874        $("body").append(`
875            <div class="story-slide-cont d-flex align-items-center justify-content-center position-fixed top-0 start-0 bottom-0 end-0" style="background:#000;z-index:5;">
876                <div class="stories-box position-relative w-100 h-100 d-flex align-items-center justify-content-center">
877                
878                    <div class="story-progress-bar-cont position-absolute top-0 start-0 end-0 row gx-1 px-1 mt-1">
879                        
880                    </div>
881
882                    <div class="story-items w-100 h-100">
883                    </div>
884
885                    <div class="story-controls w-100 mw-100 position-absolute d-flex flex-column align-items-between justify-content-between top-0 bottom-0">
886                        <div class="d-flex align-items-center justify-content-between z-2">
887                            <div></div>
888                            <div class="px-3 pt-2">
889                                <i class="fa fa-times text-white fs-30 close-story" aria-hidden="true"></i>
890                            </div>
891                        </div>
892
893                        <div class="d-flex flex-row align-items-center justify-content-between">
894                            <div class="prev-story story-control-btn opacity-0 pe-none">
895                                <i class="fa fa-angle-left" aria-hidden="true"></i>
896                            </div>
897
898                            <div class="next-story story-control-btn opacity-0 pe-none">
899                                <i class="fa fa-angle-right" aria-hidden="true"></i>
900                            </div>
901                        </div>
902                        <div></div>
903                    </div>
904                </div>
905            </div>    
906        `);
907        focusedStoryArray.forEach((element, index) => {
908            if(element.story_src_type == 'image'){
909                $(".story-slide-cont .story-items").append(`
910                    <div class="story-item-box z-1 ${index == $focusedStoryItemIndex ? "story-active" : ""} position-relative w-100 h-100 justify-content-center align-items-center" data-progress-target="${index}">
911                        <img class="mw-100 mh-100" src="${element.story_src}">
912                        <div class="position-absolute bottom-0 start-0 end-0">
913                            <div class="oz-story-text">${element.story_title}</div>
914                            <div class="text-center mb-3">
915                                <a class="oz-story-link" href="${element.story_link}">Linke Git</a>
916                            </div>
917                        </div>
918                    </div>
919                `);
920                $(".story-progress-bar-cont").append(`
921                    <div class="story-progress-bar col" data-progress-target="${index}" data-progress-timer="${element.story_time}">
922                        <div class="story-progress pt-1 rounded-1">
923                            <div class="bar-partial"></div>
924                        </div>
925                    </div>
926                `);
927            }
928        });
929
930        function updateStoryButtons() {
931            $(".prev-story").toggleClass("opacity-0 pe-none", $focusedStoryItemIndex === 0);
932            $(".next-story").toggleClass("opacity-0 pe-none", $focusedStoryItemIndex === focusedStoryArray.length - 1);
933        }
934
935        updateStoryButtons();
936
937        $(".close-story").click(function(){
938            $(".story-slide-cont").remove();
939        });
940
941        progressTimerFunc();
942
943        $(".prev-story").click(function(){
944            if ($focusedStoryItemIndex > 0) {
945                $focusedStoryItemIndex--;
946                $(".story-item-box").removeClass("story-active").eq($focusedStoryItemIndex).addClass("story-active");
947                updateStoryButtons();
948                progressTimerFunc();
949            }
950        });
951
952        $(".next-story").click(function(){
953            if ($focusedStoryItemIndex < focusedStoryArray.length - 1) {
954                $focusedStoryItemIndex++;
955                $(".story-item-box").removeClass("story-active").eq($focusedStoryItemIndex).addClass("story-active");
956                updateStoryButtons();
957                progressTimerFunc();
958            }
959        });
960        
961
962    }
963});
964
965
966});

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.