{"size": 493, "ext": "js", "max_stars_repo_path": "SmartDormitory/SmartDormitory.App/wwwroot/js/scrollToTop.js", "max_stars_repo_name": "imkitukov/SmartDormitory", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "SmartDormitory/SmartDormitory.App/wwwroot/js/scrollToTop.js", "max_issues_repo_name": "imkitukov/SmartDormitory", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "SmartDormitory/SmartDormitory.App/wwwroot/js/scrollToTop.js", "max_forks_repo_name": "imkitukov/SmartDormitory", "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": 29.0, "max_line_length": 82, "alphanum_fraction": 0.6146044625}
﻿window.onscroll = function () { scrollFunction(); };

function scrollFunction() {
    if (document.body.scrollTop > 20 || document.documentElement.scrollTop > 20) {
        document.getElementById("scrollToTopBtn").style.display = "block";
    } else {
        document.getElementById("scrollToTopBtn").style.display = "none";
    }
}

$(function () {
    $("#scrollToTopBtn").click(function () {
        $("html, body").animate({ scrollTop: 0 }, "medium");
        return false;
    });
});
