$(document).on('ready', function() { $("#new-releases-video").slick({ dots: false, infinite: true, centerMode:false, slidesToShow: 5, slidesToScroll: 1, prevArrow: $('.nrv-prev'), nextArrow: $('.nrv-next'), autoplay : true, responsive: [ { breakpoint: 1367, settings: { slidesToShow: 4, slidesToScroll:1, infinite: true, dots: false } }, { breakpoint: 1025, settings: { slidesToShow: 3, slidesToScroll: 1, } }, { breakpoint: 991, settings: { slidesToShow: 2, slidesToScroll: 1, } }, { breakpoint: 640, settings: { slidesToShow: 1, slidesToScroll: 1, } } ] }); $("#new-releases-video2").slick({ dots: false, infinite: false, centerMode:false, slidesToShow: 5, slidesToScroll: 1, prevArrow: $('.nrv-prev'), nextArrow: $('.nrv-next'), autoplay : false, responsive: [ { breakpoint: 1367, settings: { slidesToShow: 4, slidesToScroll:1, infinite: false, dots: false } }, { breakpoint: 1025, settings: { slidesToShow: 3, slidesToScroll: 1, } }, { breakpoint: 991, settings: { slidesToShow: 2, slidesToScroll: 1, } }, { breakpoint: 640, settings: { slidesToShow: 1, slidesToScroll: 1, } } ] }); $("#top-videos").slick({ dots: false, infinite: true, centerMode:false, slidesToShow: 5, slidesToScroll: 1, prevArrow: $('.tv-prev'), nextArrow: $('.tv-next'), autoplay : true, responsive: [ { breakpoint: 1367, settings: { slidesToShow: 4, slidesToScroll:1, infinite: true, dots: false } }, { breakpoint: 1025, settings: { slidesToShow: 3, slidesToScroll: 1, } }, { breakpoint: 991, settings: { slidesToShow: 2, slidesToScroll: 1, } }, { breakpoint: 640, settings: { slidesToShow: 1, slidesToScroll: 1, } } ] }); $("#playlist-video").slick({ dots: false, infinite: true, centerMode:false, slidesToShow: 5, slidesToScroll: 1, prevArrow: $('.pv-prev'), nextArrow: $('.pv-next'), autoplay : true, responsive: [ { breakpoint: 1367, settings: { slidesToShow: 4, slidesToScroll:1, infinite: true, dots: false } }, { breakpoint: 1025, settings: { slidesToShow: 3, slidesToScroll: 1, } }, { breakpoint: 991, settings: { slidesToShow: 2, slidesToScroll: 1, } }, { breakpoint: 640, settings: { slidesToShow: 1, slidesToScroll: 1, } } ] }); $("#genre-video").slick({ dots: false, infinite: true, centerMode:false, slidesToShow: 5, slidesToScroll: 1, prevArrow: $('.gv-prev'), nextArrow: $('.gv-next'), autoplay : true, responsive: [ { breakpoint: 1367, settings: { slidesToShow: 4, slidesToScroll:1, infinite: true, dots: false } }, { breakpoint: 1025, settings: { slidesToShow: 3, slidesToScroll: 1, } }, { breakpoint: 991, settings: { slidesToShow: 2, slidesToScroll: 1, } }, { breakpoint: 640, settings: { slidesToShow: 1, slidesToScroll: 1, } } ] }); $("#artists-block").slick({ dots: false, infinite: true, centerMode:false, slidesToShow: 7, slidesToScroll: 1, prevArrow: $('.abv-prev'), nextArrow: $('.abv-next'), autoplay : true, responsive: [ { breakpoint: 1367, settings: { slidesToShow: 6, slidesToScroll:1, infinite: true, dots: false } }, { breakpoint: 1281, settings: { slidesToShow: 5, slidesToScroll: 1, } }, { breakpoint: 1025, settings: { slidesToShow: 4, slidesToScroll: 1, } }, { breakpoint: 991, settings: { slidesToShow: 3, slidesToScroll: 1, } }, { breakpoint: 641, settings: { slidesToShow: 2, slidesToScroll: 1, } }, { breakpoint: 375, settings: { slidesToShow: 1, slidesToScroll: 1, } } ] }); $( ".carousel" ).carousel({ interval: false }); }); function removeClass(scroll) { var videoheight = $('.item').height(); if (scroll >= videoheight && $(window).width() > ''){ $(".video-categorie-tabing").addClass("sticky fadeInM animated1"); }else{ $(".video-categorie-tabing").removeClass("sticky fadeInM animated1"); } if (scroll >= 300 && $(window).width() > ''){ $(".page-top").addClass("active animated fadeInUp"); }else{ $(".page-top").removeClass("active animated fadeInUp"); } } $(window).resize(function(){ //window.location.reload(true); var scroll = $(window).scrollTop(); removeClass(scroll); }); $(window).scroll(function(){ var scroll = $(window).scrollTop(); removeClass(scroll) }); var siteUrl = "http://www.stage-preview.youwebinc.com/"; $(document).ready(function () { /*ScrollTop to Bottom */ $('.categorie-list ul li a[href^="#"]').on('click',function (e) { e.preventDefault(); var target = this.hash, $target = $(target); $('html, body').stop().animate({ 'scrollTop': $target.offset().top - 120 }, 500, 'swing', function () { window.location.hash = target; }); }); /*Bottom to ScrollTop*/ $('.page-top a[href^="#"]').on('click',function (e) { e.preventDefault(); var target = this.hash, $target = $(target); $('html, body').stop().animate({ 'scrollTop': '0px' }, 1500, 'swing', function () { window.location.hash = target; }); }); $("li.sign-in a").click(function(){ $(".loginleft").removeClass("add"); }); $("li.sign-up a").click(function(){ $(".loginleft").toggleClass("add"); }); $(".public-input").click(function(){ $('.cus-control').removeClass('active'); $(this).parent('label').addClass("active"); }); $(".private-input").click(function(){ $('.cus-control').removeClass('active'); $(this).parent('label').addClass("active"); }); $(".categorie-grid").click(function(){ $('.afroMbira-video-list').slideToggle("500"); }); $(".afroMbira-video-list li a").click(function(){ $('.afroMbira-video-list').slideToggle("500"); }); }); $(".modal-wide").on("show.bs.modal", function() { var height = $(window).height() - 200; $(this).find(".modal-body").css("max-height", height); });