Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/glacials/splits-io. a speedrunning data store and analysis engine splits.io
Something went wrong. Try again.
123456789101112131415161718192021222324252627const surveyKey = 'survey2019'
document.addEventListener('turbolinks:load', () => { if (localStorage.getItem(surveyKey) === 'hide') { return }
document.getElementById('survey-container').style.display = 'block'})
document.addEventListener('click', event => { if (event.target.closest('#survey-button') === null) { return }
localStorage.setItem(surveyKey, 'hide')})
document.addEventListener('click', event => { if (event.target.closest('#hide-survey-button') === null) { return }
localStorage.setItem(surveyKey, 'hide') document.getElementById('survey-container').style.display = 'none'})