$(function () {
  $(window).on('scroll', function(){

    var scrolling = $(this).scrollTop();
    if(scrolling > 1400){
      $('#footer_course').removeClass('footer_course_show');
      $('.uppish').fadeIn(500)
      $('.footer_course_add').fadeIn(500)
    }
    else{
        $('.uppish').fadeOut(500)
        $('.footer_course_add').fadeOut(500)
    }
    });

  $('.uppish').click(function(){
    $('html').animate({scrollTop:500},500)
  });
$('.tabs_slider').slick({
  dots: false,
  infinite: true,
  speed: 700,
  centerMode: false,
  slidesToShow: 5,
  slidesToScroll: 1,
  arrows: true,
  prevArrow:'.left_arrow',
  nextArrow:'.right_arrow',
  responsive: [
    {
      breakpoint: 1199,
      settings: {
        slidesToShow: 4,
        slidesToScroll: 3,
        dots: false
      }
    },
    {
      breakpoint: 991,
      settings: {
        slidesToShow: 3,
        slidesToScroll: 3,
        dots: false
      }
    },
    {
      breakpoint: 767,
      settings: {
        slidesToShow: 2,
        slidesToScroll: 2
      }
    },
    {
      breakpoint: 575,
      settings: {
        slidesToShow: 1,
        slidesToScroll: 1
      }
    }
  ]
});
$('.tab_department').slick({
  dots: false,
  infinite: true,
  speed: 700,
  slidesToShow: 3,
  slidesToScroll: 1,
    arrows: true,
   prevArrow:'.depart_left',
    nextArrow:'.depart_right',
  responsive: [
    {
      breakpoint: 1199,
      settings: {
        slidesToShow: 3,
        slidesToScroll: 1,
        dots: false
      }
    },
    {
      breakpoint: 991,
      settings: {
        slidesToShow: 2,
        slidesToScroll: 1,
        dots: false
      }
    },
    {
      breakpoint: 767,
      settings: {
        slidesToShow: 2,
        slidesToScroll: 1
      }
    },
    {
      breakpoint: 575,
      settings: {
        slidesToShow: 1,
        slidesToScroll: 1
      }
    }
  ]
});
$('.brightskills_point_slide').slick({
  dots: false,
  infinite: true,
  speed: 700,
  slidesToShow: 3,
  autoplay:true,
  slidesToScroll: 1,
    arrows: true,
   prevArrow:'.balance_left_arrow',
    nextArrow:'.balance_right_arrow',
  responsive: [
    {
      breakpoint: 991,
      settings: {
        slidesToShow: 2,
        slidesToScroll: 3,
        dots: false
      }
    },
    {
      breakpoint: 767,
      settings: {
        slidesToShow: 2,
        slidesToScroll: 2
      }
    },
    {
      breakpoint: 575,
      settings: {
        slidesToShow: 1,
        slidesToScroll: 1
      }
    }
  ]
  });
  $('.course_wrapper_department').slick({
  dots: false,
  infinite: true,
  speed: 700,
  slidesToShow: 3,
  autoplay:true,
  slidesToScroll: 1,
    arrows: true,
   prevArrow:'.design_left_arrow',
    nextArrow:'.design_right_arrow',
  responsive: [
    {
      breakpoint: 991,
      settings: {
        slidesToShow: 2,
        slidesToScroll: 3,
        dots: false
      }
    },
    {
      breakpoint: 767,
      settings: {
        slidesToShow: 2,
        slidesToScroll: 2
      }
    },
    {
      breakpoint: 575,
      settings: {
        slidesToShow: 1,
        slidesToScroll: 1
      }
    }
  ]
  });
  $('.dmcourse_wrapper_department').slick({
  dots: false,
  infinite: true,
  speed: 700,
  slidesToShow: 3,
  autoplay:true,
  slidesToScroll: 1,
    arrows: true,
   prevArrow:'.dm_left_arrow',
    nextArrow:'.dm_right_arrow',
    responsive: [
      {
        breakpoint: 991,
        settings: {
          slidesToShow: 2,
          slidesToScroll: 3,
          dots: false
        }
      },
      {
        breakpoint: 767,
        settings: {
          slidesToShow: 2,
          slidesToScroll: 2
        }
      },
      {
        breakpoint: 575,
        settings: {
          slidesToShow: 1,
          slidesToScroll: 1
        }
      }
    ]
  });
  $('.mscourse_wrapper_department').slick({
  dots: false,
  infinite: true,
  speed: 700,
  slidesToShow: 3,
  autoplay:true,
  slidesToScroll: 1,
    arrows: true,
   prevArrow:'.ms_left_arrow',
    nextArrow:'.ms_right_arrow',
    responsive: [
      {
        breakpoint: 991,
        settings: {
          slidesToShow: 2,
          slidesToScroll: 3,
          dots: false
        }
      },
      {
        breakpoint: 767,
        settings: {
          slidesToShow: 2,
          slidesToScroll: 2
        }
      },
      {
        breakpoint: 575,
        settings: {
          slidesToShow: 1,
          slidesToScroll: 1
        }
      }
    ]
  });
  $('.webcourse_wrapper_department').slick({
  dots: false,
  infinite: true,
  speed: 700,
  slidesToShow: 3,
  autoplay:true,
  slidesToScroll: 1,
    arrows: true,
   prevArrow:'.web_left_arrow',
    nextArrow:'.web_right_arrow',
    responsive: [
      {
        breakpoint: 991,
        settings: {
          slidesToShow: 2,
          slidesToScroll: 3,
          dots: false
        }
      },
      {
        breakpoint: 767,
        settings: {
          slidesToShow: 2,
          slidesToScroll: 2
        }
      },
      {
        breakpoint: 575,
        settings: {
          slidesToShow: 1,
          slidesToScroll: 1
        }
      }
    ]
  });
  $('.tdcourse_wrapper_department').slick({
  dots: false,
  infinite: true,
  speed: 700,
  slidesToShow: 3,
  autoplay:true,
  slidesToScroll: 1,
  arrows: true,
  prevArrow:'.td_left_arrow',
  nextArrow:'.td_right_arrow',
  responsive: [
    {
      breakpoint: 991,
      settings: {
        slidesToShow: 2,
        slidesToScroll: 3,
        dots: false
      }
    },
    {
      breakpoint: 767,
      settings: {
        slidesToShow: 2,
        slidesToScroll: 2
      }
    },
    {
      breakpoint: 575,
      settings: {
        slidesToShow: 1,
        slidesToScroll: 1
      }
    }
  ]
  });
  $('.olympiadcourse_wrapper_department').slick({
  dots: false,
  infinite: true,
  speed: 700,
  slidesToShow: 3,
  autoplay:true,
  slidesToScroll: 1,
    arrows: true,
   prevArrow:'.olympiad_left_arrow',
    nextArrow:'.olympiad_right_arrow',
    responsive: [
      {
        breakpoint: 991,
        settings: {
          slidesToShow: 2,
          slidesToScroll: 3,
          dots: false
        }
      },
      {
        breakpoint: 767,
        settings: {
          slidesToShow: 2,
          slidesToScroll: 2
        }
      },
      {
        breakpoint: 575,
        settings: {
          slidesToShow: 1,
          slidesToScroll: 1
        }
      }
    ]
  });
  $('.languagecourse_wrapper_department').slick({
  dots: false,
  infinite: true,
  speed: 700,
  slidesToShow: 3,
  autoplay:true,
  slidesToScroll: 1,
    arrows: true,
   prevArrow:'.language_left_arrow',
    nextArrow:'.language_right_arrow',
    responsive: [
      {
        breakpoint: 991,
        settings: {
          slidesToShow: 2,
          slidesToScroll: 3,
          dots: false
        }
      },
      {
        breakpoint: 767,
        settings: {
          slidesToShow: 2,
          slidesToScroll: 2
        }
      },
      {
        breakpoint: 575,
        settings: {
          slidesToShow: 1,
          slidesToScroll: 1
        }
      }
    ]
  });
  $('.robotcourse_wrapper_department').slick({
  dots: false,
  infinite: true,
  speed: 700,
  slidesToShow: 3,
  autoplay:true,
  slidesToScroll: 1,
  arrows: true,
  prevArrow:'.robot_left_arrow',
  nextArrow:'.robot_right_arrow',
  responsive: [
    {
      breakpoint: 991,
      settings: {
        slidesToShow: 2,
        slidesToScroll: 3,
        dots: false
      }
    },
    {
      breakpoint: 767,
      settings: {
        slidesToShow: 2,
        slidesToScroll: 2
      }
    },
    {
      breakpoint: 575,
      settings: {
        slidesToShow: 1,
        slidesToScroll: 1
      }
    }
  ]
  });
  $('.softcourse_wrapper_department').slick({
  dots: false,
  infinite: true,
  speed: 700,
  slidesToShow: 3,
  autoplay:true,
  slidesToScroll: 1,
    arrows: true,
   prevArrow:'.soft_left_arrow',
    nextArrow:'.soft_right_arrow',
  responsive: [
      {
        breakpoint: 991,
        settings: {
          slidesToShow: 2,
          slidesToScroll: 3,
          dots: false
        }
      },
      {
        breakpoint: 767,
        settings: {
          slidesToShow: 2,
          slidesToScroll: 2
        }
      },
      {
        breakpoint: 575,
        settings: {
          slidesToShow: 1,
          slidesToScroll: 1
        }
      }
    ]
  });
  $('.testimonial_main_slider').slick({
  dots: false,
  infinite: true,
  speed: 700,
  slidesToShow: 2,
  autoplay: true,
  arrows: true,
  slidesToScroll: 1,
  prevArrow:'.testimonial_left',
  nextArrow:'.testimonial_right',

  responsive: [
    {
      breakpoint: 1199,
      settings: {
        slidesToShow: 2,
        slidesToScroll: 1,
        dots: false
      }
    },
    {
      breakpoint: 991,
      settings: {
        slidesToShow: 2,
        slidesToScroll: 1,
        dots: false
      }
    },
    {
      breakpoint: 767,
      settings: {
        slidesToShow: 1,
        slidesToScroll: 2
      }
    },
    {
      breakpoint: 575,
      settings: {
        slidesToShow: 1,
        slidesToScroll: 1
      }
    }
  ]
});
$('.slider_checkout').slick({
  dots: false,
  infinite: true,
  speed: 500,
  slidesToShow: 1,
  autoplay: true,
  arrows: false,
  slidesToScroll: 1,
  responsive: [
    {
      breakpoint: 991,
      settings: {
        slidesToShow: 1,
        slidesToScroll: 1,
        dots: false
      }
    },
    {
      breakpoint: 767,
      settings: {
        slidesToShow: 1,
        slidesToScroll: 2
      }
    },
    {
      breakpoint: 575,
      settings: {
        slidesToShow: 1,
        slidesToScroll: 1
      }
    }
  ]
});

$('.slide_card').slick({
  dots: false,
  infinite: true,
  speed: 500,
  slidesToShow: 2,
  autoplay: true,
  arrows: false,
  slidesToScroll: 1,
  responsive: [
    {
      breakpoint: 991,
      settings: {
        slidesToShow: 1,
        slidesToScroll: 1,
        dots: false
      }
    },
    {
      breakpoint: 767,
      settings: {
        slidesToShow: 1,
        slidesToScroll: 2
      }
    },
    {
      breakpoint: 575,
      settings: {
        slidesToShow: 1,
        slidesToScroll: 1
      }
    }
  ]
});

})
