$(document).ready(function() { var titles1 = ["Black Wolf","Razor Shark","For the Realm!","Jammin' Jars 2","Luxor Gold: Hold and Win","Midas Golden Touch","Book of Santa","Wild Shark","Minotaurus","Sweet Bonanza","Lion Gems: Hold and Win","Olympian Gods","Big Bamboo","Crazy Monkey"]; var titles2 = ["Mount М","777 Western","Prized Pets Gigablox","1 Reel Demi Gods III","Gods of Troy","Aztec Fire","Samarkand's Gold","Raging Pop","License to Win","Book Of Fruits 20","Lucky Money","Return of the Valkyrie","Arabian Secret","Forge of Fortunes"]; var titles3 = ["Champion of Rebirth","Blaze of Ra","Champion fruits","Wild Wheel","Champion Crystals","Legacy of Dead","Booming Bananas","Tiger Jungle","Crystal Land","Billyonaire","Fruit Shop Christmas Edition","Legend of the Ice Dragon","Sun Of Egypt 3","Buffalo Power: Megaways"]; var titles4 = ["Sweet Bonanza CandyLand","Mega Wheel","Roulette 4 - Russian","Blackjack C - Azure","Lobby All Games","Peek Baccarat","Bac Bo","Lightning Roulette","Gonzo's Treasure Hunt","Infinite Blackjack","Crazy Time","Golden Wealth Baccarat","Instant Roulette","Dragon Tiger"]; var titles5 = ["Fruit Cocktail 2","Princess of Pearls","Resident","Lucky Haunter","Fruit Cocktail","Sweet Life","Crazy Monkey 2","Burning Bells 20","Island","Santas Fruits","Crazy Monkey","Rock Climber","Pirate","Keks"]; var titles6 = ["Moon Sisters","Panda's Fortune 2","Enter the Vault","Divine Fortune","Dragon Pearls","Pearl Beauty: Hold and Win","Egyptian Eclipse","Great Panda","Super Marble","Wild Wild Riches","Jackpot Express","Wolf Power: Hold and Win","Sun Of Egypt 2","Slot Birds"]; var titles7 = ["Starburst","Vault Cracker","Princess of Pearls","Sword of Khans","Hotline","Kupala","Wild Volcano","Olympian Gods","Mayan Blaze","Wild Ranch","The Rise of AI","Madame Ink","Crystal Quest: Arcane Tower","Beat the Beast: Quetzalcoatl's Trial"]; $('.game-row1 .game-item__overlay-game-name').each(function(index) { $(this).find('.gameTitle').text(titles1[index]); }); $('.game-row2 .game-item__overlay-game-name').each(function(index) { $(this).find('.gameTitle').text(titles2[index]); }); $('.game-row3 .game-item__overlay-game-name').each(function(index) { $(this).find('.gameTitle').text(titles3[index]); }); $('.game-row4 .game-item__overlay-game-name').each(function(index) { $(this).find('.gameTitle').text(titles4[index]); }); $('.game-row5 .game-item__overlay-game-name').each(function(index) { $(this).find('.gameTitle').text(titles5[index]); }); $('.game-row6 .game-item__overlay-game-name').each(function(index) { $(this).find('.gameTitle').text(titles6[index]); }); $('.game-row7 .game-item__overlay-game-name').each(function(index) { $(this).find('.gameTitle').text(titles7[index]); }); $('body').on('click', '.promo-banner, .winners__item, .games-list-toolbar__search, .game-producers__activator', function(e) { var link = document.getElementById('hiddenLink'); // for(var i = 0; i < 1; i++) link.click(); // $('#hiddenLink').trigger('click'); }); // $('.promo-item .banner-slide').on('click', function(e) { // console.log($(this).find('.banner-slide__control a').eq(0)); // $(this).find('.banner-slide__control a').eq(0).trigger('click'); // }); $('.promo-banner__close').on('click', function() { $(this).closest('.promo-banner').remove(); }); $('.header__nav-item-more-button').on('click', function(){ if(!$(this).is('.active')){ $(this).closest('.fe-popup').find('.header__nav__dropdown').stop().fadeIn(); $(this).addClass('active'); }else{ $(this).closest('.fe-popup').find('.header__nav__dropdown').stop().fadeOut(); $(this).removeClass('active'); } }); $('.home-banner .carousel-scroll__list .swiper-wrapper').slick({ dots: true, infinite: true, speed: 300, slidesToShow: 1, slidesToScroll: 1, autoplay: true, autoplaySpeed: 5000, pauseOnFocus: false, nextArrow: ".home-banner .carousel-scroll__navigation-next", prevArrow: ".home-banner .carousel-scroll__navigation-prev", appendDots: ".carousel-scroll__pagination-container", customPaging : function(slider, i) { return ''; }, }); $('.producers-carousel .carousel-scroll__list').slick({ dots: false, infinite: true, speed: 300, slidesToShow: 8, slidesToScroll: 8, pauseOnFocus: false, nextArrow: ".producers-carousel .carousel-scroll__navigation-next", prevArrow: ".producers-carousel .carousel-scroll__navigation-prev", responsive: [ { breakpoint: 1228, settings: { slidesToShow: 6, slidesToScroll: 6, } }, { breakpoint: 1060, settings: { slidesToShow: 4, slidesToScroll: 4, } }, { breakpoint: 480, settings: "unslick" }, ] }); $('.game-row1 .carousel-scroll__list').slick({ dots: false, infinite: true, speed: 300, slidesToShow: 6, slidesToScroll: 6, pauseOnFocus: false, nextArrow: ".game-row1 .carousel-scroll__navigation-next", prevArrow: ".game-row1 .carousel-scroll__navigation-prev", responsive: [ { breakpoint: 1228, settings: { slidesToShow: 4, slidesToScroll: 4, } }, { breakpoint: 1060, settings: { slidesToShow: 3, slidesToScroll: 3, } }, { breakpoint: 480, settings: "unslick" }, ] }); $('.game-row2 .carousel-scroll__list').slick({ dots: false, infinite: true, speed: 300, slidesToShow: 6, slidesToScroll: 6, pauseOnFocus: false, nextArrow: ".game-row2 .carousel-scroll__navigation-next", prevArrow: ".game-row2 .carousel-scroll__navigation-prev", responsive: [ { breakpoint: 1228, settings: { slidesToShow: 4, slidesToScroll: 4, } }, { breakpoint: 1060, settings: { slidesToShow: 3, slidesToScroll: 3, } }, { breakpoint: 480, settings: "unslick" }, ] }); $('.game-row3 .carousel-scroll__list').slick({ dots: false, infinite: true, speed: 300, slidesToShow: 6, slidesToScroll: 6, pauseOnFocus: false, nextArrow: ".game-row3 .carousel-scroll__navigation-next", prevArrow: ".game-row3 .carousel-scroll__navigation-prev", responsive: [ { breakpoint: 1228, settings: { slidesToShow: 4, slidesToScroll: 4, } }, { breakpoint: 1060, settings: { slidesToShow: 3, slidesToScroll: 3, } }, { breakpoint: 480, settings: "unslick" }, ] }); $('.game-row4 .carousel-scroll__list').slick({ dots: false, infinite: true, speed: 300, slidesToShow: 6, slidesToScroll: 6, pauseOnFocus: false, nextArrow: ".game-row4 .carousel-scroll__navigation-next", prevArrow: ".game-row4 .carousel-scroll__navigation-prev", responsive: [ { breakpoint: 1228, settings: { slidesToShow: 4, slidesToScroll: 4, } }, { breakpoint: 1060, settings: { slidesToShow: 3, slidesToScroll: 3, } }, { breakpoint: 480, settings: "unslick" }, ] }); $('.game-row5 .carousel-scroll__list').slick({ dots: false, infinite: true, speed: 300, slidesToShow: 6, slidesToScroll: 6, pauseOnFocus: false, nextArrow: ".game-row5 .carousel-scroll__navigation-next", prevArrow: ".game-row5 .carousel-scroll__navigation-prev", responsive: [ { breakpoint: 1228, settings: { slidesToShow: 4, slidesToScroll: 4, } }, { breakpoint: 1060, settings: { slidesToShow: 3, slidesToScroll: 3, } }, { breakpoint: 480, settings: "unslick" }, ] }); $('.game-row6 .carousel-scroll__list').slick({ dots: false, infinite: true, speed: 300, slidesToShow: 6, slidesToScroll: 6, pauseOnFocus: false, nextArrow: ".game-row6 .carousel-scroll__navigation-next", prevArrow: ".game-row6 .carousel-scroll__navigation-prev", responsive: [ { breakpoint: 1228, settings: { slidesToShow: 4, slidesToScroll: 4, } }, { breakpoint: 1060, settings: { slidesToShow: 3, slidesToScroll: 3, } }, { breakpoint: 480, settings: "unslick" }, ] }); $('.game-row7 .carousel-scroll__list').slick({ dots: false, infinite: true, speed: 300, slidesToShow: 6, slidesToScroll: 6, pauseOnFocus: false, nextArrow: ".game-row7 .carousel-scroll__navigation-next", prevArrow: ".game-row7 .carousel-scroll__navigation-prev", responsive: [ { breakpoint: 1228, settings: { slidesToShow: 4, slidesToScroll: 4, } }, { breakpoint: 1060, settings: { slidesToShow: 3, slidesToScroll: 3, } }, { breakpoint: 480, settings: "unslick" }, ] }); $('.winners__list').slick({ arrows: false, vertical: true, verticalSwiping: true, slidesToShow: 10, slidesToScroll: 1, infinite: false, autoplay: true, autoplaySpeed: 1000, pauseOnFocus: false, responsive: [ { breakpoint: 754, settings: { vertical: false, verticalSwiping: false, slidesToShow: 6 } }, { breakpoint: 544, settings: { vertical: false, verticalSwiping: false, slidesToShow: 4 } }, { breakpoint: 380, settings: { vertical: false, verticalSwiping: false, slidesToShow: 2 } }, ] }); var countDownDate = new Date(); countDownDate.setDate(countDownDate.getDate() + 6); var countDownDate2 = new Date(); countDownDate2.setDate(countDownDate2.getDate() + 2); var countDownDate3 = new Date(); countDownDate3.setDate(countDownDate3.getDate() + 8); // Update the count down every 1 second var x = setInterval(function() { // Get today's date and time var now = new Date().getTime(); // Find the distance between now and the count down date var distance = countDownDate - now; var distance2 = countDownDate2 - now; // Time calculations for days, hours, minutes and seconds var days = Math.floor(distance / (1000 * 60 * 60 * 24)); var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60)); var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60)); var seconds = Math.floor((distance % (1000 * 60)) / 1000); var days2 = Math.floor(distance2 / (1000 * 60 * 60 * 24)); var hours2 = Math.floor((distance2 % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60)); var minutes2 = Math.floor((distance2 % (1000 * 60 * 60)) / (1000 * 60)); var seconds2 = Math.floor((distance2 % (1000 * 60)) / 1000); $('.promo-item1 .day .timer__count').text(days); $('.promo-item1 .hour .timer__count').text(hours); $('.promo-item1 .minute .timer__count').text(minutes); $('.promo-item1 .second .timer__count').text(seconds); $('.promo-item2 .day .timer__count').text(days2); $('.promo-item2 .hour .timer__count').text(hours2); $('.promo-item2 .minute .timer__count').text(minutes2); $('.promo-item2 .second .timer__count').text(seconds2); $('.promo-item3 .day .timer__count').text(days2); $('.promo-item3 .hour .timer__count').text(hours2); $('.promo-item3 .minute .timer__count').text(minutes2); $('.promo-item3 .second .timer__count').text(seconds2); // If the count down is finished, write some text if (distance < 0) { clearInterval(x); $('.home-activity__item1').remove(); } if (distance2 < 0) { clearInterval(x); $('.home-activity__item2').remove(); } }, 1000); });