mirror of
https://github.com/cupcakearmy/canihazusername.git
synced 2025-09-07 15:50:39 +00:00
fixed mobile issues
This commit is contained in:
@@ -19,6 +19,7 @@ body {
|
||||
}
|
||||
|
||||
#main > div {
|
||||
width: 100%;
|
||||
max-width: 35em;
|
||||
margin: auto;
|
||||
}
|
||||
|
@@ -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(', ')
|
||||
|
Reference in New Issue
Block a user