{"size": 1478, "ext": "js", "max_stars_repo_path": "public/js/main.js", "max_stars_repo_name": "nazaryuzhyn/laravel-task-1", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "public/js/main.js", "max_issues_repo_name": "nazaryuzhyn/laravel-task-1", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "public/js/main.js", "max_forks_repo_name": "nazaryuzhyn/laravel-task-1", "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": 25.4827586207, "max_line_length": 76, "alphanum_fraction": 0.5717185386}
$(document).ready(function() {
  var allText = $('.vacancy__resume--text'),
    textLeft = $('.vacancy__resume--text--left'),
    textRight = $('.vacancy__resume--text--right');
  $('.vacancy__resume--body input[type=checkbox]').on('change', function() {
    if ($(this).is(':checked')) {
      allText.removeClass('active');
      textRight.addClass('active');
    } else {
      allText.removeClass('active');
      textLeft.addClass('active');
    }
  })

  var mobileFilter = $('.filter__mobile');

  $('.vacancy__mobile-filter').on('click', function(e) {
    e.preventDefault();
    mobileFilter.addClass('opened');
  })

  $('.filter__back').on('click', function(e) {
    e.preventDefault();
    mobileFilter.removeClass('opened');
  })

  $('.vacancy__view button').on('click', function(e) {
    e.preventDefault();
    $('.vacancy__view button').removeClass('active');
    $(this).addClass('active');
  })


  var newsList = $('.offers-block__list');

  $('.firstView').on('click', function() {
    newsList.removeClass('offers-block__list--grid');
  })

  $('.secondView').on('click', function() {
    newsList.addClass('offers-block__list--grid');
  })


  $('.head__info p').each(function () {
      $(this).prop('Counter', 0).animate({
              Counter: $(this).data('value')
          }, {
          duration: 1500,
          easing: 'swing',
          step: function (now) {
              $(this).text(this.Counter.toFixed());
          }
      });
  });

})
