{"size": 1285, "ext": "js", "max_stars_repo_path": "DKPlugins/DKOS/Scale.js", "max_stars_repo_name": "aquawicket/DigitalKnob", "max_stars_repo_stars_event_min_datetime": "2015-05-03T06:23:22.000Z", "max_stars_repo_stars_event_max_datetime": "2022-02-10T15:16:26.000Z", "max_issues_repo_path": "DKPlugins/DKOS/Scale.js", "max_issues_repo_name": "aquawicket/DigitalKnob", "max_issues_repo_issues_event_min_datetime": "2016-02-28T06:13:49.000Z", "max_issues_repo_issues_event_max_datetime": "2022-01-04T11:50:08.000Z", "max_forks_repo_path": "DKPlugins/DKOS/Scale.js", "max_forks_repo_name": "aquawicket/DigitalKnob", "max_forks_repo_forks_event_min_datetime": "2016-12-04T02:29:34.000Z", "max_forks_repo_forks_event_max_datetime": "2022-01-04T01:11:25.000Z"}
{"max_stars_count": 29, "max_issues_count": 125, "max_forks_count": 8, "avg_line_length": 30.5952380952, "max_line_length": 75, "alphanum_fraction": 0.6482490272}
Scale.init = function Scale_init() {
    dk.create("DKOS/Scale.html,DKOS/Taskbar.html", function() {
        byId("scale_minus").addEventListener("mousedown", Scale_onevent);
        byId("scale_plus").addEventListener("mousedown", Scale_onevent);
    });
}

Scale.end = function Scale_end() {
    byId("scale_minus").removeEventListener("mousedown", Scale_onevent);
    byId("scale_plus").removeEventListener("mousedown", Scale_onevent);
    dk.close("Scale.html");
}

Scale.onevent = function Scale_onevent(event) {
    if (event.currentTarget.id === "scale_minus") {
        Scale_minus();
    }
    if (event.currentTarget.id === "scale_plus") {
        Scale_plus();
    }
}

Scale.minus = function Scale_minus() {
    var scale = window.getComputedStyle(document.documentElement).fontSize;
    scale = parseFloat(scale.replace("px", ""));
    scale = scale - 0.1;
    if (scale < 1.0) {
        scale = 1.0;
    }
    document.documentElement.style.fontSize = scale + "px";
}

Scale.plus = function Scale_plus() {
    var scale = window.getComputedStyle(document.documentElement).fontSize;
    scale = parseFloat(scale.replace("px", ""));
    scale = scale + .1;
    if (scale > 100.0) {
        scale = 100.0;
    }
    document.documentElement.style.fontSize = scale + "px";
}
