fixed mobile issues

This commit is contained in:
2020-02-06 17:09:21 +01:00
parent c9e0afd308
commit 67fc16f0c6
3 changed files with 9 additions and 6 deletions

View File

@@ -19,6 +19,7 @@ body {
}
#main > div {
width: 100%;
max-width: 35em;
margin: auto;
}

View File

@@ -6,12 +6,11 @@ const output = window.document.getElementById('username') as HTMLInputElement
const list = window.document.getElementById('lists')
const button = window.document.getElementById('button')
const gen = () => {
const calculate = () => {
output.value = generate(input.value)
}
button.addEventListener('click', gen)
button.addEventListener('touchstart', gen)
gen()
// Init
button.addEventListener('click', calculate)
calculate()
list.innerHTML = showAvailableLists().join(', ')