{"size": 650, "ext": "js", "max_stars_repo_path": "public/js/back-top.js", "max_stars_repo_name": "ArgonStudioSNC/argonstudio.ch", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "public/js/back-top.js", "max_issues_repo_name": "ArgonStudioSNC/argonstudio.ch", "max_issues_repo_issues_event_min_datetime": "2021-09-01T01:54:27.000Z", "max_issues_repo_issues_event_max_datetime": "2022-02-26T10:06:21.000Z", "max_forks_repo_path": "public/js/back-top.js", "max_forks_repo_name": "ArgonStudioSNC/argonstudio.ch", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 4, "max_forks_count": null, "avg_line_length": 26.0, "max_line_length": 55, "alphanum_fraction": 0.58}
var active = false;

$(document).ready(function(){
  window.addEventListener('scroll', function() {
    var height = window.innerHeight
    || document.documentElement.clientHeight
    || document.body.clientHeight;
    var scrollTop = document.documentElement.scrollTop;

    if (scrollTop > height/1.5 && !active) {
      $("#back-top").fadeTo('fast', 0.5);
      active = true;
    } else if (scrollTop <= height/1.5 && active){
      $("#back-top").fadeOut('fast', 0);
      active = false;
    }

    $("#back-top").hover(function(){
      $(this).css("opacity", 1);
    },function(){
      $(this).css("opacity", 0.5);
    });
  }, false);
});
