{"size": 327, "ext": "js", "max_stars_repo_path": "views/layout/frontend/js/btn-up.js", "max_stars_repo_name": "cyb3r14V1rtu4L/viker.mx", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "views/layout/frontend/js/btn-up.js", "max_issues_repo_name": "cyb3r14V1rtu4L/viker.mx", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "views/layout/frontend/js/btn-up.js", "max_forks_repo_name": "cyb3r14V1rtu4L/viker.mx", "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": 19.2352941176, "max_line_length": 50, "alphanum_fraction": 0.4801223242}
$(document).ready(function() {

  $(window).scroll(function() {

    if ($(window).scrollTop() > 500) {
      $('#btn-up').fadeIn(500);
    }
    if ($(window).scrollTop() < 500) {
      $('#btn-up').fadeOut(500);
    }
  });
});

$("#btn-up").click(function () {
    
    $("html, body").animate({scrollTop: 0}, 1000);
    });