{"size": 813, "ext": "js", "max_stars_repo_path": "src/js/main.js", "max_stars_repo_name": "KateLukinova/orto", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/js/main.js", "max_issues_repo_name": "KateLukinova/orto", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/js/main.js", "max_forks_repo_name": "KateLukinova/orto", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 30.1111111111, "max_line_length": 86, "alphanum_fraction": 0.6174661747}
import $ from '../local_modules/jquery/dist/jquery.min'
// import '../local_modules/owl.carousel/dist/owl.carousel.min'
$(document).ready(() => {

  $('.menu-icon').click(function () {
    $(this).toggleClass('open').parent().siblings().toggleClass('open')
  });

  var isCollapseOpened = false;

  $('.collapse-menu__link').on('click', function() {
    if (isCollapseOpened) {
      $(this).removeClass('active').find('.collapse-menu__sub').slideUp()
    } else {
      $(this).addClass('active').find('.collapse-menu__sub').slideDown()
    }

    isCollapseOpened = !isCollapseOpened;

  });

  $(".tabs-wrap .tab").click(function() {
    $(".tabs-wrap .tab").removeClass("active").eq($(this).index()).addClass("active");
    $(".tab-item").hide().eq($(this).index()).fadeIn()
  }).eq(0).addClass("active");
})
