2024-09-03 14:36:44 +00:00
|
|
|
<!doctype html>
|
|
|
|
<html lang="it">
|
|
|
|
<head>
|
|
|
|
<meta charset="UTF-8" />
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
|
|
<title>Orario scolastico</title>
|
|
|
|
<link
|
|
|
|
href="https://cdn.jsdelivr.net/npm/@picocss/pico@2/css/pico.min.css"
|
|
|
|
rel="stylesheet"
|
|
|
|
/>
|
|
|
|
<script src="https://cdn.jsdelivr.net/npm/js-cookie@3.0.5/dist/js.cookie.min.js"></script>
|
|
|
|
<script src="/static/index.js" defer></script>
|
2024-09-06 13:58:51 +00:00
|
|
|
<style>
|
|
|
|
@media (max-width: 1279px) {
|
|
|
|
table thead tr {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
table td {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
|
|
|
table tr {
|
|
|
|
counter-set: column;
|
|
|
|
}
|
|
|
|
|
|
|
|
table tr td {
|
|
|
|
counter-increment: column;
|
|
|
|
}
|
|
|
|
|
|
|
|
table td::before {
|
|
|
|
content: counter(column) " ora: ";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|
2024-09-03 14:36:44 +00:00
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<main class="container">
|
2024-09-05 13:53:54 +00:00
|
|
|
<noscript>
|
|
|
|
<h1>
|
|
|
|
Per utilizzare questa applicazione è necessario abilitare JavaScript.
|
|
|
|
</h1>
|
|
|
|
</noscript>
|
2024-09-03 14:36:44 +00:00
|
|
|
<div id="forms" hidden>
|
|
|
|
<form id="form-pdf">
|
|
|
|
<fieldset>
|
2024-09-04 12:48:55 +00:00
|
|
|
<label id="links-label" aria-busy="true"
|
|
|
|
>Quale orario vuoi usare?</label
|
|
|
|
>
|
2024-09-03 14:36:44 +00:00
|
|
|
<select id="links" onchange="select_pdf()" required>
|
|
|
|
<option selected disabled value="none">
|
|
|
|
Seleziona un orario
|
|
|
|
</option>
|
|
|
|
</select>
|
|
|
|
</fieldset>
|
|
|
|
</form>
|
|
|
|
<form id="form-type" hidden>
|
|
|
|
<formfield>
|
|
|
|
<label>Sei un professore o uno studente?</label>
|
|
|
|
<select id="type" onchange="select_type()">
|
|
|
|
<option selected disabled value="none">
|
|
|
|
Seleziona una categoria
|
|
|
|
</option>
|
|
|
|
<option value="teacher">Professore</option>
|
|
|
|
<option value="student">Studente</option>
|
|
|
|
</select>
|
|
|
|
</formfield>
|
|
|
|
</form>
|
|
|
|
<form id="form-teacher" onsubmit="return select_teacher()" hidden>
|
|
|
|
<formfield>
|
2024-09-04 12:48:55 +00:00
|
|
|
<label id="teacher-label" aria-busy="true"
|
|
|
|
>Seleziona il tuo cognome</label
|
|
|
|
>
|
2024-09-03 14:36:44 +00:00
|
|
|
<input id="teacher" type="text" list="teachers" />
|
|
|
|
<datalist id="teachers"></datalist>
|
|
|
|
</formfield>
|
|
|
|
<input type="submit" value="Continua" />
|
|
|
|
</form>
|
|
|
|
<form id="form-classes" hidden>
|
|
|
|
<formfield>
|
2024-09-04 12:48:55 +00:00
|
|
|
<label id="class-label" aria-busy="true"
|
|
|
|
>Seleziona la tua classe</label
|
|
|
|
>
|
2024-09-03 14:36:44 +00:00
|
|
|
<select id="year" onchange="load_section()">
|
|
|
|
<option selected disabled value="none">Seleziona l'anno</option>
|
|
|
|
</select>
|
|
|
|
<select id="section" onchange="load_major()">
|
|
|
|
<option selected disabled value="none">
|
|
|
|
Seleziona la sezione
|
|
|
|
</option>
|
|
|
|
</select>
|
|
|
|
<select id="major" onchange="select_class()">
|
|
|
|
<option selected disabled value="none">
|
|
|
|
Seleziona l'indirizzo
|
|
|
|
</option>
|
|
|
|
</select>
|
|
|
|
<input type="submit" value="Continua" />
|
|
|
|
</formfield>
|
|
|
|
</form>
|
|
|
|
</div>
|
2024-09-03 15:17:04 +00:00
|
|
|
<div id="dashboard" hidden>
|
2024-09-04 12:48:55 +00:00
|
|
|
<table id="table" class="striped" aria-busy="true"></table>
|
2024-09-03 15:17:04 +00:00
|
|
|
<form>
|
|
|
|
<input type="submit" onclick="delete_cookies()" value="Reimposta" />
|
|
|
|
</form>
|
|
|
|
</div>
|
2024-09-07 12:26:34 +00:00
|
|
|
<dialog id="error-dialog">
|
|
|
|
<p id="error">Errore: non è stato possibile caricare l'orario.</p>
|
|
|
|
</dialog>
|
2024-09-03 14:36:44 +00:00
|
|
|
</main>
|
2024-09-06 14:34:02 +00:00
|
|
|
<footer class="container">
|
|
|
|
<p>
|
|
|
|
Codice rilasciato sotto licenza
|
|
|
|
<a
|
|
|
|
href="https://git.riefolo.me/mariano/orario-scolastico-itet/src/branch/master/LICENSE"
|
|
|
|
target="_blank"
|
|
|
|
>MPL 2.0</a
|
|
|
|
>
|
|
|
|
</p>
|
|
|
|
</footer>
|
2024-09-03 14:36:44 +00:00
|
|
|
</body>
|
|
|
|
</html>
|