Remove second autofocus tag

Also update dependencies, as usual.
This commit is contained in:
Florine W. Dekker 2020-12-01 14:12:11 +01:00
parent 8e0426ce03
commit a78968710b
Signed by: FWDekker
GPG Key ID: B1B567AF58D6EE0F
4 changed files with 6 additions and 3 deletions

BIN
package-lock.json generated

Binary file not shown.

View File

@ -1,6 +1,6 @@
{
"name": "interlanguage-checker",
"version": "1.10.19",
"version": "1.10.20",
"description": "Check the consistency of MediaWiki interlanguage links in a simple overview.",
"author": "Felix W. Dekker",
"browser": "dist/bundle.js",
@ -34,7 +34,7 @@
"grunt-text-replace": "^0.4.0",
"grunt-webpack": "^4.0.2",
"style-loader": "^2.0.0",
"webpack": "^5.4.0",
"webpack": "^5.9.0",
"webpack-cli": "^4.2.0"
}
}

View File

@ -84,7 +84,7 @@
Article 
<i class="fa fa-question-circle-o" title="The title of the article to check"></i>
</label>
<input id="article" type="text" autofocus />
<input id="article" type="text" />
<br />
<button id="check" type="button">Check</button>
</form>

View File

@ -9,6 +9,7 @@ import {discoverNetwork, InterlangNetwork, MediaWiki, MediaWikiManager} from "./
window.ilc = {};
// Set up template
doAfterLoad(() => {
$("#nav").appendChild(nav("/Tools/Interlanguage Checker/"));
$("#header").appendChild(header({
@ -27,6 +28,7 @@ doAfterLoad(() => {
$("main").style.display = null;
});
// Handle "About" toggle
doAfterLoad(() => {
const about = $("#about");
const key = "/tools/interlanguage-checker//toggle-about";
@ -38,6 +40,7 @@ doAfterLoad(() => {
else about.open = storedState === "true";
});
// Handle input
doAfterLoad(async () => {
const urlInput = new ValidatableInput($("#url"), (value) => {
if (value.trim() === "")