{"version":3,"file":"assets/js/pages/landing-page-v1.js","mappings":";;;;;AAAA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,U","sources":["webpack://cryptolly/./src/assets/js/pages/landing-page-v1.js"],"sourcesContent":["//landing page header menu\n$('.js-navbar-toggler').on('click', function(e) {\n e.preventDefault()\n e.stopPropagation();\n $('.header-navbar.header-navbar--v1').toggleClass(\"header-navbar--open\"); \n});\n\nfunction setSlideVisibility() {\n //Find the visible slides i.e. where aria-hidden=\"false\"\n var visibleSlides = $('.slick-slide[aria-hidden=\"false\"]');\n //Make sure all of the visible slides have an opacity of 1\n $(visibleSlides).each(function() {\n $(this).css('opacity', 1);\n });\n //Set the opacity of the first and last partial slides.\n $(visibleSlides).first().prev().css('opacity', 0);\n $(visibleSlides).last().next().css('opacity', 0);\n}\n\n$(setSlideVisibility());\n\n$('.testimony__carousel').on('init afterChange', function(e, slick){\n let currentSlick = $('.slick-current.slick-active', slick.$slideTrack)\n let prevName = currentSlick.prev().data('slide-name')\n let nextName = currentSlick.next().data('slide-name')\n let prevContentCarousel = $('.testimony-carousel__prev-next .testimony-carousel-prev__title');\n let nextContentCarousel = $('.testimony-carousel__prev-next .testimony-carousel-next__title');\n prevContentCarousel.text(prevName)\n nextContentCarousel.text(nextName)\n setSlideVisibility();\n});\n\n$('.testimony__carousel').slick({\n centerMode: true,\n centerPadding: '32px',\n dots: false,\n arrows: true,\n infinite: true,\n slidesToShow: 1,\n slidesToScroll: 1,\n prevArrow: $('.testimony-carousel__prev'),\n nextArrow: $('.testimony-carousel__next'),\n appendDots: $('.testimony-carousel__slick-slider-dots'),\n adaptiveHeight: true,\n responsive: [\n {\n breakpoint: 768,\n settings: {\n centerMode: true,\n centerPadding: '0px',\n arrows:false,\n dots: true,\n slidesToShow: 1\n }\n }\n ]\n});\n "],"names":[],"sourceRoot":""}