fixed mobile issues

This commit is contained in:
cupcakearmy 2020-02-06 17:09:21 +01:00
parent c9e0afd308
commit 67fc16f0c6
No known key found for this signature in database
GPG Key ID: D28129AE5654D9D9
3 changed files with 9 additions and 6 deletions

View File

@ -7,7 +7,7 @@
"scripts": {
"generate": "git -C ./generate/wordlist pull && node ./generate/wordlist.js",
"docs": "parcel build --no-source-maps --out-dir ./docs --public-url ./ ./website/index.html",
"build": "tsc",
"docs:dev": "parcel ./website/index.html",
"prepublishOnly": "rm -rf ./lib && tsc"
},
"repository": {
@ -31,5 +31,8 @@
"tachyons": "^4.11.1",
"ts-node-dev": "^1.0.0-pre.44",
"typescript": "3.7"
},
"dependencies": {
"bulma": "^0.8.0"
}
}

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(', ')