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 $(`.${sliderCol} #${sliderID}`).slick(slickOptions); 459 }); 460 }); 461 462 463 464 const exchangeModalColsSettings = [ 465 {'col-lg-12':[9,7,6,2]}, 466 {'col-lg-9':[7,7,6,2]}, 467 {'col-lg-8':[6,6,6,2]}, 468 {'col-lg-6':[4,4,6,2]}, 469 {'col-lg-4':[3,3,6,2]}, 470 {'col-lg-3':[2,2,6,2]}, 471 {'col-lg-2':[1,1,6,2]}, 472 ]; 473 474 exchangeModalColsSettings.forEach(item=>{ 475 let sliderCol = Object.keys(item)[0]; 476 let colDataArray = item[Object.keys(item)[0]]; 477 $(`.${sliderCol} .exchange-slider.big-horizontal-exchange`).slick({ 478 dots: false, 479 arrows: true, 480 slidesToShow:colDataArray[0], 481 swipeToSlide: true, 482 speed: 400, 483 touchThreshold: 30, 484 autoplay: true, 485 infinite: true, 486 waitForAnimate: false, 487 responsive: [{ 488 breakpoint:1300, 489 settings:{ 490 slidesToShow: colDataArray[1] 491 } 492 }, 493 { 494 breakpoint:800, 495 settings:{ 496 slidesToShow: colDataArray[2] 497 } 498 }, 499 { 500 breakpoint:500, 501 settings:{ 502 slidesToShow: colDataArray[3] 503 } 504 } 505 ] 506 }); 507 508 509 }); 510 511 $(".horizontal-currencys-topside-content .exchange-slider.big-horizontal-exchange").slick({ 512 dots: false, 513 arrows: true, 514 slidesToShow:9, 515 swipeToSlide: true, 516 speed: 400, 517 touchThreshold: 30, 518 autoplay: true, 519 infinite: true, 520 waitForAnimate: false, 521 responsive: [{ 522 breakpoint:1300, 523 settings:{ 524 slidesToShow: 7 525 } 526 }, 527 { 528 breakpoint:800, 529 settings:{ 530 slidesToShow: 6 531 } 532 }, 533 { 534 breakpoint:500, 535 settings:{ 536 slidesToShow: 2 537 } 538 } 539 ] 540 }); 541 542 $(".story1-slider").slick({ 543 dots: false,
544 arrows: false, 545 variableWidth: true, 546 swipeToSlide: true, 547 speed: 400, 548 autoplaySpeed: 1400, 549 touchThreshold: 30, 550 autoplay: false, 551 infinite: false, 552 waitForAnimate: false, 553 responsive: [{ 554 breakpoint:500, 555 settings:{ 556 slidesToShow: 4 557 } 558 } 559 ] 560 }); 561 562 $(".minimize-exchange-slider").slick({ 563 dots: false, 564 arrows: false, 565 // slidesToShow:6, 566 variableWidth: true, 567 swipeToSlide: true, 568 speed: 400, 569 autoplaySpeed: 1400, 570 touchThreshold: 30, 571 autoplay: true, 572 infinite: true, 573 waitForAnimate: false, 574 // responsive: [{ 575 // breakpoint:1300, 576 // settings:{ 577 // slidesToShow: 5 578 // } 579 // }, 580 // { 581 // breakpoint:800, 582 // settings:{ 583 // slidesToShow: 4 584 // } 585 // }, 586 // { 587 // breakpoint:500, 588 // settings:{ 589 // slidesToShow: 2 590 // } 591 // } 592 // ] 593 }); 594 595 $(".adaylar-slider").slick({ 596 dots: false, 597 arrows: false, 598 slidesToShow:6, 599 swipeToSlide: true, 600 speed: 400, 601 touchThreshold: 30, 602 autoplay: true, 603 infinite: true, 604 waitForAnimate: false, 605 responsive: [{ 606 breakpoint:1300, 607 settings:{ 608 slidesToShow: 5 609 } 610 }, 611 { 612 breakpoint:800, 613 settings:{ 614 slidesToShow: 4 615 } 616 }, 617 { 618 breakpoint:500, 619 settings:{ 620 slidesToShow: 2 621 } 622 } 623 ] 624 }); 625 626 627 $(".photo-gallery-slider").slick({ 628 dots: true, 629 arrows: false, 630 slidesToShow:1, 631 swipeToSlide: true, 632 speed: 400, 633 autoplay: true, 634 infinite: true, 635 waitForAnimate: false 636 }); 637 638 $(".galleryV2-vertical-slider").each(function() { 639 let $this = $(this); 640 let $children = $this.children(); 641 642 if ($children.length <= 4) { 643 $children.clone().appendTo($this); 644 } 645 646 $this.slick({ 647 dots: false, 648 arrows: false, 649 slidesToShow: 4, 650 speed: 400, 651 autoplay: true, 652 infinite: true, 653 touchThreshold: 0, 654 waitForAnimate: false, 655 vertical: true, 656 verticalSwiping: true, 657 swipeToSlide: true, 658 responsive: [{ 659 breakpoint: 800, 660 settings: { 661 slidesToShow: 3 662 } 663 }, 664 { 665 breakpoint: 500, 666 settings: { 667 slidesToShow: 2 668 } 669 }] 670 }).on('afterChange', function(event, slick, currentSlide) { 671 slick.$slides.each(function(i, el) { 672 let $el = $(el); 673 if ($el.hasClass("slick-current")) { 674 $el.closest(".photo-galleryV2").find(".vertical-slider-mainIMG").attr("src", $el.find("img").data('img-url')); 675 $el.closest(".photo-galleryV2").find(".photo-category .category-title").text($el.find("img").data('img-category')); 676 $el.closest(".photo-galleryV2").find(".photo-title").text($el.find("img").data('img-title')).data("post-id", $el.find("img").data('post-id')); 677 $el.closest(".photo-galleryV2").find(".photo-galleryv2-fade").attr("href", $el.find("img").data('img-href')); 678 $el.closest(".photo-galleryV2").find(".link-gallery").attr("href", $el.find("img").data('img-href')); 679 } 680 }); 681 }); 682 }); 683 684 $(".galleryV2-vertical-slider .slider-item").on("click", function(){$(".galleryV2-vertical-slider").slick('slickGoTo', $(this).data("slick-index"));}); 685 686 $(".fullgalleryV2-vertical-slider").slick({ 687 dots: false,
688 arrows: false, 689 slidesToShow: 5, 690 speed: 400, 691 autoplay: true, 692 infinite: true, 693 waitForAnimate: false, 694 vertical: true, 695 verticalSwiping: true, 696 swipeToSlide: true, 697 responsive: [{ 698 breakpoint: 500, 699 settings: { 700 slidesToShow: 2 701 } 702 }] 703 }).on('afterChange', function(event, slick, currentSlide){ 704 slick.$slides.each(function(i, el){ 705 let $el = $(el); 706 if($el.hasClass("slick-current")){ 707 $el.closest(".photo-galleryV2").find(".vertical-slider-mainIMG").attr("src", $el.find("img").data('img-url')); 708 $el.closest(".photo-galleryV2").find(".photo-category .category-title").text($el.find("img").data('img-category')); 709 $el.closest(".photo-galleryV2").find(".photo-title").text($el.find("img").data('img-title')).data("post-id", $el.find("img").data('post-id')); 710 $el.closest(".photo-galleryV2").find(".photo-galleryv2-fade").attr("href", $el.find("img").data('img-href')); 711 $el.closest(".photo-galleryV2").find(".link-gallery").attr("href", $el.find("img").data('img-href')); 712 } 713 }); 714 }); 715 716 $(".fullgalleryV2-vertical-slider .slider-item").on("click", function(){$(".fullgalleryV2-vertical-slider").slick('slickGoTo', $(this).data("slick-index"));}); 717 718 $(".one-cikanlar-slider").slick({ 719 dots: false, 720 arrows: true, 721 slidesToShow:1, 722 swipeToSlide: true, 723 speed: 400, 724 autoplay: true, 725 autoplaySpeed: 4000, 726 infinite: true, 727 waitForAnimate: false 728 }); 729 if($(".one-cikanlar-slider").length){ 730 $(".one-cikanlar-slider .slick-next img").attr("src","/frontend/diamond/assets/img/SVG/arrow_right_white.svg"); 731 $(".one-cikanlar-slider .slick-prev img").attr("src","/frontend/diamond/assets/img/SVG/arrow_left_white.svg"); 732 } 733 $('.anamanset-other-slider').slick({ 734 dots: true, 735 arrows: false, 736 slidesToShow:1, 737 swipeToSlide: true, 738 speed: 400, 739 autoplay: true, 740 autoplaySpeed: 3000, 741 infinite: true, 742 waitForAnimate: false 743 }); 744 745 $(".anamanset-other-slider").removeClass("overflow-hidden"); 746 $(".side-long-news").slick({ 747 dots: false, 748 arrows: false, 749 slidesToShow:1, 750 swipeToSlide: true, 751 speed: 400, 752 autoplay: true, 753 infinite: true, 754 waitForAnimate: false, 755 touchThreshold: 30, 756 responsive: [{ 757 breakpoint:768, 758 settings:{ 759 slidesToShow: 2 760 } 761 }, 762 { 763 breakpoint:500, 764 settings:{ 765 slidesToShow: 1 766 } 767 } 768 ] 769 }); 770 $(".newsSlider-l9").slick({ 771 dots: true, 772 arrows: false, 773 slidesToShow:1, 774 swipeToSlide: true, 775 speed: 400, 776 autoplay: true, 777 infinite: true, 778 waitForAnimate: false 779 }); 780 $(".yatay-haber-slider").slick({ 781 dots: false, 782 arrows: false, 783 slidesToShow:3, 784 swipeToSlide: true, 785 touchThreshold: 30, 786 speed: 400, 787 autoplay: true, 788 infinite: true, 789 waitForAnimate: false, 790 responsive: [{ 791 breakpoint:1200, 792 settings:{ 793 slidesToShow: 3 794 } 795 }, 796 { 797 breakpoint:500, 798 settings:{ 799 slidesToShow: 1 800 } 801 } 802 ] 803 }); 804 805 $(".horizontal-authors:not(.vertical-side)").slick({ 806 dots: false, 807 arrows: false, 808 slidesToShow:3, 809 swipeToSlide: true, 810 touchThreshold: 30, 811 speed: 400, 812 autoplay: true, 813 infinite: true, 814 waitForAnimate: false, 815 responsive: [{ 816 breakpoint:1200, 817 settings:{ 818 slidesToShow: 3 819 } 820 }, 821 { 822 breakpoint:500, 823 settings:{ 824 slidesToShow: 1 825 } 826 } 827 ] 828 }); 829 830 $(".yatay-seritli-slider").slick({ 831 dots: false, 832 arrows: true, 833 slidesToShow:4, 834 swipeToSlide: true, 835 touchThreshold: 30, 836 speed: 400, 837 autoplay: true, 838 infinite: true, 839 waitForAnimate: false, 840 responsive: [{ 841 breakpoint:1200, 842 settings:{ 843 slidesToShow: 3 844 } 845 }, 846 { 847 breakpoint:768, 848 settings:{ 849 slidesToShow: 2 850 } 851 }, 852 { 853 breakpoint:500, 854 settings:{ 855 slidesToShow: 1 856 } 857 } 858 ] 859 }); 860 $(".yatay-seritli-slider").removeClass("d-none"); 861 $(".yatay-seritli-slider").slick("refresh"); 862 863 $(".full_manset_slider").slick({ 864 dots: true,
865 arrows: false, 866 slidesToShow:1, 867 swipeToSlide: true, 868 speed: 400, 869 autoplay: true, 870 infinite: true, 871 waitForAnimate: false 872 }); 873 $(".block2-slider").slick({ 874 dots: true, 875 arrows: false, 876 slidesToShow:1, 877 swipeToSlide: true, 878 speed: 400, 879 autoplay: true, 880 infinite: true, 881 waitForAnimate: false 882 }); 883 $(".block4-slider").slick({ 884 dots: true, 885 arrows: false, 886 slidesToShow:1, 887 swipeToSlide: true, 888 speed: 400, 889 autoplay: true, 890 infinite: true, 891 waitForAnimate: false 892 }); 893 $(".daily-news-slider").slick({ 894 dots: false, 895 arrows: true, 896 slidesToShow:1, 897 swipeToSlide: true, 898 speed: 400, 899 autoplay: true, 900 infinite: true, 901 waitForAnimate: false, 902 responsive: [ 903 { 904 breakpoint: 800, 905 settings: { 906 slidesToShow: 4 907 } 908 }, 909 { 910 breakpoint: 500, 911 settings: { 912 slidesToShow: 1 913 } 914 } 915 ] 916 }); 917 $(".daily-newsFull-slider").slick({ 918 dots: false, 919 arrows: true, 920 slidesToShow:4, 921 swipeToSlide: true, 922 speed: 400, 923 autoplay: true, 924 infinite: true, 925 waitForAnimate: false, 926 responsive: [ 927 { 928 breakpoint: 800, 929 settings: { 930 slidesToShow: 4 931 } 932 }, 933 { 934 breakpoint: 500, 935 settings: { 936 slidesToShow: 2 937 } 938 } 939 ] 940 }); 941 942 $(".aday-yatay-slider").slick({ 943 dots: false, 944 arrows: false, 945 slidesToShow:2, 946 swipeToSlide: true, 947 speed: 400, 948 autoplay: true, 949 waitForAnimate: false, 950 infinite: true, 951 responsive: [{ 952 breakpoint:800, 953 settings:{ 954 slidesToShow: 4 955 } 956 },{ 957 breakpoint:500, 958 settings:{ 959 slidesToShow: 2 960 } 961 },{ 962 breakpoint:350, 963 settings:{ 964 slidesToShow: 1 965 } 966 } 967 ] 968 }); 969 970 $(".flash-haber-slider").slick({ 971 dots: false, 972 arrows: true, 973 slidesToShow:1, 974 swipeToSlide: true, 975 speed: 400, 976 autoplay: true, 977 waitForAnimate: false, 978 infinite: true 979 }); 980 981 $(".flashnews2-newslist").slick({ 982 dots: false, 983 arrows: false, 984 slidesToShow:1, 985 swipeToSlide: true, 986 speed: 400, 987 autoplay: true, 988 waitForAnimate: false, 989 infinite: true, 990 touchThreshold:20 991 }); 992 993 994 995 $(".botheader6-slider").slick({ 996 dots: false, 997 arrows: true, 998 slidesToShow: 1, 999 swipeToSlide: true, 1000 speed: 2000, 1001 autoplay: true, 1002 waitForAnimate: false, 1003 infinite: true, 1004 touchThreshold: 30 1005 }); 1006 1007 // FOTO GALERİ SLİDER AYARLARI 1008 $(".photo-gallery-mini-slider").slick({ 1009 dots: false, 1010 arrows: false, 1011 slidesToShow:3, 1012 swipeToSlide: true, 1013 speed: 400, 1014 autoplay: true, 1015 infinite: true, 1016 touchThreshold: 30, 1017 waitForAnimate: false, 1018 responsive: [{ 1019 breakpoint:1200, 1020 settings:{ 1021 slidesToShow: 2 1022 } 1023 }, 1024 { 1025 breakpoint:768, 1026 settings:{ 1027 slidesToShow: 1 1028 } 1029 }] 1030 }).on('afterChange', function(event, slick, currentSlide){ 1031 slick.$slides.each(function(i, el){ 1032 let $el = $(el); 1033 if($el.hasClass("slick-current")){ 1034 $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); 1035 $el.closest(".photo-galley-main-cont").find(".photo-gallery-mini-link-container").removeClass("active"); 1036 $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-
1036href")); 1037 $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"); 1038 $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")); 1039 $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")); 1040 $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")); 1041 $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")); 1042 } 1043 }); 1044 1045 }) 1046 1047 let $photoGalleryMiniSlider = $(".photo-gallery-mini-slider"); 1048 1049 $photoGalleryMiniSlider.removeClass("d-flex flex-row overflow-hidden"); 1050 1051 $photoGalleryMiniSlider.on('click', function(){ 1052 let $parentThis = $(this); 1053 // Tıklama olduÄunda autoplay durduruluyor. 1054 $parentThis.slick('slickPause'); 1055 1056 $(".photo-gallery-mini-slider .photo-gallery-mini-link-container").click(function(){ 1057 $parentThis.slick('slickGoTo', $(this).data("slick-index")); 1058 }); 1059 1060 // 10 saniye (10000 milisaniye) sonra autoplay tekrar baÅlatılıyor. 1061 setTimeout(function(){ 1062 $parentThis.slick('slickPlay'); 1063 }, 10000); 1064 }); 1065 1066 (function(){ 1067 $photoGalleryMiniSlider.each(function(i, el){ 1068 let $thisEl = $(el); 1069 let $thisParentEl = $thisEl.closest(".photo-galley-main-cont"); 1070 if($thisEl.find(".slick-active img").length){ 1071 $thisParentEl.find(".photo-gallery-slider-main-datas .photo-gallery-main-img").attr("src", $thisParentEl.find(".photo-gallery-mini-slider .slick-active img")[0].src); 1072 $thisParentEl.find(".photo-gallery-mini-link-container").removeClass("active"); 1073 $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")); 1074 $thisParentEl.find($thisParentEl.find(".photo-gallery-mini-slider .slick-active")[0]).closest(".photo-gallery-mini-link-container").addClass("active"); 1075 $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")); 1076 $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")); 1077 $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")); 1078 $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")); 1079 } 1080 }); 1081 })(); 1082 1083 var photoGalleryisDrag = false;
1084 1085 let $photoGalleryMiniLinkContainer = $(".photo-gallery-mini-link-container"); 1086 1087 $photoGalleryMiniLinkContainer.on("mousedown", function(){ 1088 photoGalleryisDrag = false; 1089 }); 1090 1091 $photoGalleryMiniLinkContainer.on("mousemove", function(){ 1092 photoGalleryisDrag = true; 1093 }); 1094 1095 $photoGalleryMiniLinkContainer.on("mouseup", function(){ 1096 let $this = $(this); 1097 let $thisParent = $this.closest(".photo-galley-main-cont"); 1098 if(!photoGalleryisDrag){ 1099 $thisParent.find(".photo-gallery-mini-link-container").removeClass("active"); 1100 $this.addClass("active"); 1101 $thisParent.find(".photo-gallery-head-text").text($this.find(".photo-gallery-mini-links-text").text()); 1102 $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")); 1103 $thisParent.find(".photo-gallery-banner-text").text($this.find(".photo-gallery-mini-links").attr("data-photo-banner")); 1104 $thisParent.find(".photo-gallery-category-text").text($this.find(".photo-gallery-mini-links").attr("data-photo-category")); 1105 $thisParent.find(".photo-gallery-time").text($this.find(".photo-gallery-mini-links").attr("data-photo-time")); 1106 $this.closest('.photo-galley-main-cont').find(".photo-gallery-main-img").attr("src", $this.find("img").attr("src")); 1107 } 1108 }); 1109 1110 const photoMouseTrigger = function(){ 1111 $(".photo-gallery-more-container").addClass("d-none"); 1112 } 1113 1114 $(".photo-gallery-scroll-list").on("scroll", photoMouseTrigger); 1115 1116 $(".minibox-gallery-mini-slider").each(function() { 1117 let $this = $(this); 1118 let $children = $this.children(); 1119 1120 if ($children.length <= 5) { 1121 $children.clone().appendTo($this); 1122 } 1123 1124 $this.slick({ 1125 dots: false, 1126 arrows: false, 1127 slidesToShow: 5, 1128 swipeToSlide: true, 1129 speed: 400, 1130 autoplay: true, 1131 infinite: true, 1132 touchThreshold: 30, 1133 waitForAnimate: false, 1134 responsive: [{ 1135 breakpoint: 1200, 1136 settings: { 1137 slidesToShow: 4 1138 } 1139 }, { 1140 breakpoint: 768, 1141 settings: { 1142 slidesToShow: 1 1143 } 1144 }] 1145 }).on('afterChange', function(event, slick, currentSlide) { 1146 let $currentSlide = $(slick.$slides[currentSlide]); 1147 let $row = $currentSlide.closest(".row"); 1148 1149 let $activeSlide = $row.find(".minibox-gallery-mini-slider .slick-active").first(); 1150 let $mainImg = $row.find(".minibox-gallery-main-img"); 1151 let $mainHref = $row.find(".minibox-gallery-main-href"); 1152 let $mainLinkContainer = $row.find(".minibox-gallery-mini-link-container"); 1153 let $headText = $row.find(".minibox-gallery-head-text"); 1154 let $bannerText = $row.find(".minibox-gallery-banner-text"); 1155 let $categoryText = $row.find(".minibox-gallery-category-text"); 1156 let $time = $row.find(".minibox-gallery-time"); 1157 let $authorName = $row.find(".author-name"); 1158 let $authorDate = $row.find(".author-date"); 1159 let $authorPhoto = $row.find(".extra-area-box img"); 1160 1161 $mainImg.attr("src", $activeSlide.find("img").attr("src")); 1162 $mainHref.attr("href", $activeSlide.find(".minibox-gallery-mini-links").data("photo-href")); 1163 $mainLinkContainer.removeClass("active"); 1164 $activeSlide.closest(".minibox-gallery-mini-link-container").addClass("active"); 1165 1166 let activeLink = $activeSlide.find(".minibox-gallery-mini-links"); 1167 let activeText = $activeSlide.find(".minibox-gallery-mini-links-text"); 1168 1169 $headText.text(activeText.text()).data("post-id", activeText.data("post-id")); 1170 $bannerText.text(activeLink.data("photo-banner")); 1171 $categoryText.text(activeLink.data("photo-category")); 1172 $time.text(activeLink.data("photo-time")); 1173 $authorName.text(activeLink.data("author-name")); 1174 $authorDate.text(activeLink.data("photo-time")); 1175 $authorPhoto.attr("src", activeLink.data("author-image")); 1176 }); 1177 1178 $this.find(".minibox-gallery-mini-link-container").click(function() { 1179 $this.slick('slickPause'); 1180 $this.slick('slickGoTo', $(this).data("slick-index")); 1181 setTimeout(function() { 1182 $this.slick('slickPlay'); 1183 }, 10000); 1184 }); 1185 1186 }); 1187 1188 const videosMouseTrigger = function(){ 1189 $(".video-gallery-for-more").addClass("d-none"); 1190 } 1191 1192 $(".video-gallery-scroll-list").on("scroll", videosMouseTrigger); 1193 1194 $(".video-galeri-slider").slick({ 1195 dots: false,
1196 arrows: false, 1197 slidesToShow:6, 1198 swipeToSlide: true, 1199 speed: 400, 1200 autoplay: true, 1201 infinite: true, 1202 waitForAnimate: false 1203 }); 1204 $(".kimdir-slider").slick({ 1205 dots: false, 1206 arrows: true, 1207 slidesToShow:7, 1208 swipeToSlide: true, 1209 speed: 400, 1210 autoplay: true, 1211 infinite: true, 1212 waitForAnimate: false, 1213 touchThreshold: 30, 1214 responsive: [{ 1215 breakpoint:1200, 1216 settings:{ 1217 slidesToShow: 5, 1218 arrows: false, 1219 } 1220 }, 1221 { 1222 breakpoint:800, 1223 settings:{ 1224 slidesToShow: 4, 1225 arrows: false, 1226 } 1227 }, 1228 { 1229 breakpoint:500, 1230 settings:{ 1231 slidesToShow: 3, 1232 arrows: false, 1233 } 1234 }, 1235 { 1236 breakpoint:460, 1237 settings:{ 1238 slidesToShow: 2, 1239 arrows: false, 1240 } 1241 }, 1242 { 1243 breakpoint:400, 1244 settings:{ 1245 slidesToShow: 2, 1246 arrows: false, 1247 } 1248 }] 1249 }); 1250 $(".kimdir-slider").slick("refresh"); 1251 1252 $(".main-page-horoscope").slick({ 1253 dots: false, 1254 arrows: true, 1255 slidesToShow:7, 1256 swipeToSlide: true, 1257 speed: 400, 1258 autoplay: true, 1259 infinite: true, 1260 waitForAnimate: false, 1261 touchThreshold: 30, 1262 responsive: [{ 1263 breakpoint:1200, 1264 settings:{ 1265 slidesToShow: 5, 1266 arrows: false, 1267 } 1268 }, 1269 { 1270 breakpoint:800, 1271 settings:{ 1272 slidesToShow: 4, 1273 arrows: false, 1274 } 1275 }, 1276 { 1277 breakpoint:500, 1278 settings:{ 1279 slidesToShow: 3, 1280 arrows: false, 1281 } 1282 }, 1283 { 1284 breakpoint:450, 1285 settings:{ 1286 slidesToShow: 2, 1287 arrows: false, 1288 } 1289 }] 1290 }); 1291 1292 $(".author-category-slider").slick({ 1293 dots: true, 1294 arrows: true, 1295 slidesToShow:1, 1296 swipeToSlide: true, 1297 speed: 400, 1298 autoplay: true, 1299 infinite: true, 1300 waitForAnimate: false 1301 }); 1302 1303 $(".sidebar-news-icon-list").slick({ 1304 responsive: [ 1305 { 1306 breakpoint: 1200, 1307 settings: { 1308 slidesToShow: 4, 1309 swipeToSlide: true, 1310 arrows: false, 1311 dots: false, 1312 waitForAnimate: false, 1313 speed: 400, 1314 infinite: true, 1315 touchThreshold: 30 1316 } 1317 }, 1318 { 1319 breakpoint: 768, 1320 settings: { 1321 slidesToShow: 3, 1322 swipeToSlide: true, 1323 arrows: false, 1324 dots: false, 1325 waitForAnimate: false, 1326 speed: 400, 1327 infinite: true, 1328 touchThreshold: 30 1329 } 1330 }, 1331 { 1332 breakpoint: 500, 1333 settings: { 1334 slidesToShow: 2, 1335 swipeToSlide: true, 1336 arrows: false, 1337 dots: false, 1338 waitForAnimate: false, 1339 speed: 400, 1340 infinite: true, 1341 touchThreshold: 30 1342 } 1343 }, 1344 { 1345 breakpoint: 400, 1346 settings: { 1347 slidesToShow: 1, 1348 swipeToSlide: true, 1349 arrows: false, 1350 dots: false, 1351 waitForAnimate: false, 1352 speed: 400, 1353 infinite: true, 1354 touchThreshold: 30 1355 } 1356 }, 1357 { 1358 breakpoint: 10000, 1359 settings: "unslick" 1360 } 1361 ] 1362 }); 1363 1364 $(".namaz-vakti-timelist").slick({ 1365 responsive:[ 1366 { 1367 breakpoint: 768, 1368 settings: { 1369 slidesToShow: 3, 1370 swipeToSlide: true,
1371 arrows: false, 1372 dots: false, 1373 waitForAnimate: false, 1374 autoplay:true, 1375 speed: 400, 1376 infinite: false, 1377 touchThreshold: 30 1378 } 1379 }, 1380 { 1381 breakpoint: 500, 1382 settings: { 1383 slidesToShow: 2, 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: 10000, 1396 settings: "unslick" 1397 } 1398 ] 1399 }); 1400 1401 $(".remove-margin, .remove-margin-2").removeClass("remove-margin remove-margin-2"); 1402 1403 $(".slick-slider").removeClass("d-flex flex-row"); 1404 1405 $(".slick-slider .slick-list .slick-track .slick-slide").removeClass("d-none"); 1406 1407 $(".fullgalleryV2-vertical-slider").slick("refresh"); 1408 1409 $(".add-w-100").removeClass("add-w-100").addClass("w-100"); 1410 1411 $("[data-remove-class]").each(function () { 1412 var $this = $(this); 1413 var classesToRemove = $this.data("remove-class"); 1414 1415 var classArray = classesToRemove.split(" "); 1416 1417 for (var i = 0; i < classArray.length; i++) { 1418 $this.removeClass(classArray[i]); 1419 } 1420 }); 1421 1422 if ($(window).width() < 1200) { 1423 // jQuery özel etkinliklerini tanımla 1424 ['touchstart', 'touchmove'].forEach(function(eventType) { 1425 jQuery.event.special[eventType] = { 1426 setup: function(_, ns, handle) { 1427 // 'slick-slider' sınıfı kontrolü ve 'noPreventDefault' isim alanını kontrol et 1428 var isPassive = !ns.includes("noPreventDefault") && !$(this).closest('.slick-slider').length && !$(this).hasClass('makeSlideable'); 1429 this.addEventListener(eventType, handle, { passive: isPassive }); 1430 } 1431 }; 1432 }); 1433 1434 ['wheel', 'mousewheel'].forEach(function(eventType) { 1435 jQuery.event.special[eventType] = { 1436 setup: function(_, ns, handle) { 1437 // 'slick-slider' sınıfı kontrolü 1438 var isPassive = !$(this).closest('.slick-slider').length; 1439 // wheel ve mousewheel olayları için, eÄer 'slick-slider' altındaysa passive false olacak 1440 this.addEventListener(eventType, handle, { passive: isPassive }); 1441 } 1442 }; 1443 }); 1444 1445 // Event listener options'ın desteklenip desteklenmediÄini kontrol et 1446 var supportsPassive = false; 1447 try { 1448 var opts = Object.defineProperty({}, 'passive', { 1449 get: function() { 1450 supportsPassive = true; 1451 } 1452 }); 1453 window.addEventListener("testPassive", null, opts); 1454 window.removeEventListener("testPassive", null, opts); 1455 } catch (e) {} 1456 1457 // EÄer passive destekleniyorsa, varsayılan seçenekleri belirle 1458 var defaultOptions = supportsPassive ? { passive: true, capture: false } : false; 1459 } 1460 1461 1462 1463});
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.