const socket = io('https://ecos-timer.fr') const connectionModal = document.querySelector('#connectionModal'), acceptButton = document.querySelector('#acceptButton'), selectionScreen = document.querySelector('#selectionScreen'), accountSelector = document.querySelector('#accountSelector'), accountValidation = document.querySelector('#accountValidation'), adminSelector = document.querySelector('#adminSelector'), clientSelector = document.querySelector('#clientSelector') acceptButton.addEventListener('click', e => { connectionModal.style.display = 'none' selectionScreen.style.display = 'flex' }) accountValidation.addEventListener('mousedown', e => { accountValue = accountSelector.value if (accountValue === "") { alert('Veuillez faire votre choix dans le menu déroulant.') } else if (accountValue === "1") { window.location = '/compte_test' } else if (accountValue === "2") { window.location = 'http://ufrsvs.ecos-timer.fr' //'http://localhost:3501/' } }) adminSelector.addEventListener('click', e => { window.location = '/admin' }) clientSelector.addEventListener('click', e => { window.location = '/client' })