.list:hover +.lvl2 {
display: block;
}
.lvl2:hover {
display: block;
}
.lvl1:hover +.home {
display: block;
}
.home:hover {
display: block;
}
const sendAnswers = () => {
const query = await fetch('/send-table', {
method: 'POST',
headers: 'application/json',
body: JSON.stringify({
g1: v1_global,
g2: v2_global,
g3: v3_global,
g4: v4_global,
g5: v5_global,
v1: v1,
v2: v2,
v3: v3,
v4: v4,
v5: v5,
v6: v6,
v7: v7,
v8: v8,
v9: v9,
v10: v10,
v11: v11,
v12: v12,
v13: v13,
v14: v14,
v15: v15,
v16: v16,
v17: v17,
v18: v18,
v19: v19,
v20: v20,
v21: v21,
v22: v22,
v23: v23,
v24: v24,
v25: v25,
job: job
})
})
}
document.getElementById('end').onclick = (e) => {
document.querySelector('.quests').style.display = 'none'
document.querySelector('.progress').style.display = 'none'
document.querySelector('.results').style.display = 'flex'
sendAnswers()
}