function changeTabContent(tab) {
    if (tab == "DAILY") {
        $("." + tab).addClass("active");
        $(".WEEKLY").removeClass("active");
        $(".MONTHLY").removeClass("active");
    } else if (tab == "WEEKLY") {
        $("." + tab).addClass("active");
        $(".DAILY").removeClass("active");
        $(".MONTHLY").removeClass("active");
    } else if (tab == "MONTHLY") {
        $(".MONTHLY").addClass("active");
        $(".DAILY").removeClass("active");
        $(".WEEKLY").removeClass("active");
    }
}

$("#dailyevents").click();

$(document).ready(function($) {
    $('.card-slider').slick({
      dots: true,
      infinite: true,
      speed: 500,
      slidesToShow: 3,
      slidesToScroll: 1,
      autoplay: false,
      autoplaySpeed: 2000,
      arrows: true,
      responsive: [{
        breakpoint: 600,
        settings: {
          slidesToShow: 2,
          slidesToScroll: 1
        }
      },
      {
         breakpoint: 400,
         settings: {
            arrows: false,
            slidesToShow: 1,
            slidesToScroll: 1
         }
      }]
  });
});
