300 lines
10 KiB
HTML
300 lines
10 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="it">
|
|
<!-- ciao curiosone, come potrai ben capire questo codice è stato fatto in 10 minuti con gemini. questa cosa pessima è stata fatta da Renato, se vuoi scrivigli in privato che ha fatto una cosa pessima! -->
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>TURNI DEL TEST</title>
|
|
<style>
|
|
:root {
|
|
--bg-dark: #d6cf1a;
|
|
--stripe: #21c23e;
|
|
--card-bg: rgba(28, 28, 30, 0.9);
|
|
--card-in: #2c2c2e;
|
|
--txt: #f5f5f7;
|
|
--txt-mute: #a1a1a6;
|
|
--txt-lbl: #98989d;
|
|
--accent: #0a84ff;
|
|
--border: #38383a;
|
|
--danger: #ff453a;
|
|
}
|
|
|
|
body {
|
|
margin: 0;
|
|
padding: 25vh 5vw 5vh;
|
|
font-family: system-ui, -apple-system, sans-serif;
|
|
color: var(--txt);
|
|
display: flex;
|
|
justify-content: center;
|
|
min-height: 100vh;
|
|
box-sizing: border-box;
|
|
|
|
&::before {
|
|
content: "";
|
|
position: fixed;
|
|
inset: 0;
|
|
z-index: -1;
|
|
background: var(--bg-dark) repeating-linear-gradient(10deg, transparent, transparent 0.9rem, var(--stripe) 7.5rem, var(--stripe) 0.9rem);
|
|
filter: brightness(0.4);
|
|
}
|
|
}
|
|
|
|
main {
|
|
width: 100%;
|
|
max-width: 56rem;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 2rem;
|
|
|
|
> section:first-of-type {
|
|
background: var(--card-bg);
|
|
backdrop-filter: blur(12px);
|
|
max-width: 28rem;
|
|
margin: 0 auto;
|
|
padding: 1.5rem 2rem;
|
|
border-radius: 1.5rem;
|
|
box-shadow: 0 1.25rem 3rem rgba(0, 0, 0, 0.5);
|
|
text-align: center;
|
|
border: 1px solid rgba(255, 255, 255, 0.05);
|
|
|
|
h1 {
|
|
font-size: 1.75rem;
|
|
margin: 0 0 1.25rem;
|
|
}
|
|
|
|
input {
|
|
width: 80%;
|
|
padding: 0.75rem 1rem;
|
|
font-size: 1.35rem;
|
|
color: #fff;
|
|
border: 1px solid var(--border);
|
|
border-radius: 1rem;
|
|
outline: none;
|
|
transition: 0.3s ease;
|
|
text-align: center;
|
|
text-transform: uppercase;
|
|
background: rgba(0, 0, 0, 0.2);
|
|
|
|
&:focus {
|
|
border-color: var(--accent);
|
|
box-shadow: 0 0 0 0.25rem rgba(10, 132, 255, 0.2);
|
|
background: #1a1a1c;
|
|
}
|
|
}
|
|
|
|
output {
|
|
display: block;
|
|
max-height: 0;
|
|
opacity: 0;
|
|
transform: translateY(-0.6rem) scale(0.95);
|
|
overflow: hidden;
|
|
transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
|
|
|
|
&.show {
|
|
max-height: 31rem;
|
|
opacity: 1;
|
|
transform: translateY(0) scale(1);
|
|
margin-top: 1.5rem;
|
|
}
|
|
|
|
h2 {
|
|
font-size: 2rem;
|
|
margin: 0 0 1.25rem;
|
|
}
|
|
|
|
dl {
|
|
background: var(--card-in);
|
|
border-radius: 1.25rem;
|
|
width: max-content;
|
|
margin: 0 auto;
|
|
padding: 1rem 1.5rem;
|
|
border: 1px solid var(--border);
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1.5rem;
|
|
|
|
div {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
dt {
|
|
font-size: 0.75rem;
|
|
font-weight: 700;
|
|
color: var(--txt-lbl);
|
|
letter-spacing: 0.05em;
|
|
}
|
|
|
|
dd {
|
|
margin: 0;
|
|
background: var(--accent);
|
|
padding: 0.5rem 1.5rem;
|
|
border-radius: 1rem;
|
|
font-weight: 600;
|
|
|
|
&.green { background: #30d158; }
|
|
}
|
|
}
|
|
|
|
p {
|
|
color: var(--danger);
|
|
font-size: 1.1rem;
|
|
font-weight: 500;
|
|
}
|
|
}
|
|
}
|
|
|
|
> section:last-of-type {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, 1fr);
|
|
gap: 1.25rem;
|
|
|
|
article {
|
|
background: var(--card-bg);
|
|
backdrop-filter: blur(12px);
|
|
border-radius: 1.25rem;
|
|
padding: 1.5rem;
|
|
border: 1px solid rgba(255, 255, 255, 0.05);
|
|
box-shadow: 0 0.6rem 1.8rem rgba(0, 0, 0, 0.3);
|
|
|
|
h3 {
|
|
margin: 0 0 1rem;
|
|
font-size: 1.05rem;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
p {
|
|
margin: 0;
|
|
font-size: 0.875rem;
|
|
line-height: 1.6;
|
|
color: var(--txt-mute);
|
|
|
|
span { color: var(--danger); font-weight: 600; }
|
|
}
|
|
|
|
&.full {
|
|
grid-column: 1 / -1;
|
|
background: rgba(44, 44, 46, 0.95);
|
|
border-color: var(--accent);
|
|
|
|
ul {
|
|
list-style: none;
|
|
padding: 0;
|
|
margin: 0;
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
|
|
gap: 1rem;
|
|
|
|
li {
|
|
background: rgba(0,0,0,0.2);
|
|
padding: 1rem;
|
|
border-radius: 0.75rem;
|
|
font-size: 0.875rem;
|
|
border: 1px solid rgba(255,255,255,0.03);
|
|
|
|
strong {
|
|
display: block;
|
|
color: var(--txt-lbl);
|
|
font-size: 0.75rem;
|
|
text-transform: uppercase;
|
|
margin-bottom: 0.3rem;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
@media (max-width: 48em) {
|
|
main > section:last-of-type {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
|
|
<main>
|
|
<section>
|
|
<h1>Il tuo turno</h1>
|
|
<input type="text" id="srch" placeholder="Cognome" autocomplete="off" spellcheck="false">
|
|
<output></output>
|
|
</section>
|
|
|
|
<section>
|
|
<article>
|
|
<h3>Documenti e Accesso</h3>
|
|
<p>Si raccomanda di presentarsi muniti di un <strong>documento di riconoscimento</strong> in corso di validità e nel rispetto del proprio orario di convocazione.</p>
|
|
</article>
|
|
|
|
<article>
|
|
<h3>Durante la prova</h3>
|
|
<p><span>Non riavviare o chiudere la pagina</span> durante l'esame per nessun motivo. Mantenere la finestra sempre attiva.</p>
|
|
</article>
|
|
|
|
<article>
|
|
<h3>Al termine</h3>
|
|
<p>Una volta finito l'esame, <strong>avvisa il professore e aspetta che venga segnato il risultato</strong> prima di chiudere la pagina!</p>
|
|
</article>
|
|
|
|
<article class="full">
|
|
<h3>Regole e Valutazione</h3>
|
|
<ul>
|
|
<li><strong>Durata stimata</strong> 45 Minuti</li>
|
|
<li><strong>Punteggio Minimo</strong> 12 / 20</li>
|
|
<li><strong>Risposte</strong> 1 sola corretta per domanda</li>
|
|
<li><strong>Attribuzione Punti</strong> +1 (corretta)<br>0 (errata / non data)</li>
|
|
</ul>
|
|
</article>
|
|
</section>
|
|
</main>
|
|
|
|
<script>
|
|
const turni = [
|
|
{ t: "I TURNO", ora: "09:00 - 10:00", aula: "Aula 2 Palazzo delle Aule", da: "A", a: "CAR" },
|
|
{ t: "II TURNO", ora: "09:15 - 10:15", aula: "Aula 4 Palazzo delle Aule", da: "CAS", a: "DIA" },
|
|
{ t: "III TURNO", ora: "10:00 - 11:00", aula: "Aula 2 Palazzo delle Aule", da: "DIB", a: "LAR" },
|
|
{ t: "IV TURNO", ora: "10:15 - 11:15", aula: "Aula 4 Palazzo delle Aule", da: "LAS", a: "MUC" },
|
|
{ t: "V TURNO", ora: "11:00 - 12:00", aula: "Aula 2 Palazzo delle Aule", da: "MUD", a: "ROS" },
|
|
{ t: "VI TURNO", ora: "11:15 - 12:15", aula: "Aula 4 Palazzo delle Aule", da: "ROT", a: "Z" }
|
|
];
|
|
|
|
const inp = document.getElementById('srch');
|
|
const out = document.querySelector('output');
|
|
let delayTimer;
|
|
|
|
inp.addEventListener('input', e => {
|
|
clearTimeout(delayTimer);
|
|
|
|
delayTimer = setTimeout(() => {
|
|
const val = e.target.value.trim().toUpperCase();
|
|
|
|
if (!val) {
|
|
out.classList.remove('show');
|
|
setTimeout(() => out.innerHTML = "", 500);
|
|
return;
|
|
}
|
|
|
|
const res = turni.find(f => val >= f.da && val <= f.a + "ZZZ");
|
|
|
|
if (res) {
|
|
out.innerHTML = `
|
|
<h2>${res.t}</h2>
|
|
<dl>
|
|
<div><dt>ORARIO</dt><dd>${res.ora}</dd></div>
|
|
<div><dt>LUOGO</dt><dd class="green">${res.aula}</dd></div>
|
|
</dl>
|
|
`;
|
|
} else {
|
|
out.innerHTML = `<p>Nessun turno trovato.</p>`;
|
|
}
|
|
|
|
out.classList.add('show');
|
|
}, 200);
|
|
});
|
|
</script>
|
|
</body>
|
|
</html>
|