{"size": 792, "ext": "js", "max_stars_repo_path": "12_5_2022/script.js", "max_stars_repo_name": "filiptronicek/informatik", "max_stars_repo_stars_event_min_datetime": "2022-03-10T20:28:16.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-10T20:28:16.000Z", "max_issues_repo_path": "12_5_2022/script.js", "max_issues_repo_name": "filiptronicek/informatik", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "12_5_2022/script.js", "max_forks_repo_name": "filiptronicek/informatik", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 31.68, "max_line_length": 80, "alphanum_fraction": 0.6464646465}
const buttons = {
    contact: document.getElementById('contact'),
    leadership: document.getElementById('leadership')
};

const dialog = document.getElementById('dialog');
const outputDial = document.getElementById('outputDial');

buttons.contact.onclick = () => {
    if (typeof dialog.showModal === "function") {
        outputDial.innerText = 'Adresa školy: Střížkovská 27/32 Praha 8 180 00';
        dialog.showModal();
    } else {
        alert("Sorry, the <dialog> API is not supported by this browser.");
    }
}

buttons.leadership.onclick = () => {
    if (typeof dialog.showModal === "function") {
        outputDial.innerText = 'Mgr. Lenka Vopařilová';
        dialog.showModal();
    } else {
        alert("Sorry, the <dialog> API is not supported by this browser.");
    }
}