Add site name to title, fix autofocus

This commit is contained in:
Florine W. Dekker 2021-11-14 10:56:02 +01:00
parent b545db682a
commit 054a4dffa7
Signed by: FWDekker
GPG Key ID: D3DCFAA8A4560BE0
4 changed files with 6 additions and 5 deletions

BIN
package-lock.json generated

Binary file not shown.

View File

@ -1,6 +1,6 @@
{
"name": "codsworth-namegen",
"version": "1.1.6",
"version": "1.1.7",
"description": "Choose a fitting name for your Fallout 4 character that Codsworth can pronounce",
"author": "F.W. Dekker",
"browser": "dist/bundle.js",
@ -23,8 +23,8 @@
"grunt-contrib-watch": "^1.1.0",
"grunt-focus": "^1.0.0",
"grunt-text-replace": "^0.4.0",
"grunt-webpack": "^4.0.3",
"webpack": "^5.52.1",
"webpack-cli": "^4.8.0"
"grunt-webpack": "^5.0.0",
"webpack": "^5.64.0",
"webpack-cli": "^4.9.1"
}
}

View File

@ -9,7 +9,7 @@
content="Choose a fitting name for your Fallout 4 character that Codsworth can pronounce." />
<meta name="theme-color" content="#0033cc" />
<title>Codsworth name generator</title>
<title>Codsworth name generator | FWDekker</title>
<link rel="stylesheet" href="https://static.fwdekker.com/fonts/roboto/roboto.css" />
<link rel="stylesheet" href="https://static.fwdekker.com/lib/template/2.x.x/template.css" />

View File

@ -99,6 +99,7 @@ doAfterLoad(() => {
version: "v%%VERSION_NUMBER%%"
}));
$("main").classList.remove("hidden");
$("[autofocus]").focus();
});
// Event handlers