mirror of
https://github.com/cupcakearmy/canihazusername.git
synced 2024-11-16 10:00:56 +01:00
fixed mobile issues
This commit is contained in:
parent
c9e0afd308
commit
67fc16f0c6
@ -7,7 +7,7 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"generate": "git -C ./generate/wordlist pull && node ./generate/wordlist.js",
|
"generate": "git -C ./generate/wordlist pull && node ./generate/wordlist.js",
|
||||||
"docs": "parcel build --no-source-maps --out-dir ./docs --public-url ./ ./website/index.html",
|
"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"
|
"prepublishOnly": "rm -rf ./lib && tsc"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
@ -31,5 +31,8 @@
|
|||||||
"tachyons": "^4.11.1",
|
"tachyons": "^4.11.1",
|
||||||
"ts-node-dev": "^1.0.0-pre.44",
|
"ts-node-dev": "^1.0.0-pre.44",
|
||||||
"typescript": "3.7"
|
"typescript": "3.7"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"bulma": "^0.8.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -19,6 +19,7 @@ body {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#main > div {
|
#main > div {
|
||||||
|
width: 100%;
|
||||||
max-width: 35em;
|
max-width: 35em;
|
||||||
margin: auto;
|
margin: auto;
|
||||||
}
|
}
|
||||||
|
@ -6,12 +6,11 @@ const output = window.document.getElementById('username') as HTMLInputElement
|
|||||||
const list = window.document.getElementById('lists')
|
const list = window.document.getElementById('lists')
|
||||||
const button = window.document.getElementById('button')
|
const button = window.document.getElementById('button')
|
||||||
|
|
||||||
const gen = () => {
|
const calculate = () => {
|
||||||
output.value = generate(input.value)
|
output.value = generate(input.value)
|
||||||
}
|
}
|
||||||
|
|
||||||
button.addEventListener('click', gen)
|
// Init
|
||||||
button.addEventListener('touchstart', gen)
|
button.addEventListener('click', calculate)
|
||||||
|
calculate()
|
||||||
gen()
|
|
||||||
list.innerHTML = showAvailableLists().join(', ')
|
list.innerHTML = showAvailableLists().join(', ')
|
||||||
|
Loading…
Reference in New Issue
Block a user