From efdc55151d4887448c68b98419b77a05c81eb296 Mon Sep 17 00:00:00 2001 From: "o.lyttleton@ucl.ac.uk" Date: Fri, 2 Aug 2024 16:42:58 +0100 Subject: [PATCH] rename button element, add aria label --- index.html | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/index.html b/index.html index 5730955..24bef86 100644 --- a/index.html +++ b/index.html @@ -18,7 +18,7 @@

Generate text mappings files

-
+
@@ -106,21 +106,23 @@

Generate text mappings files

const fileList = this.files; - const submitButtonDiv = document.getElementById("submitButton"); + const createMappingsButtonDiv = document.getElementById("createMappingsButton"); - const submitButtonObject = document.createElement("button"); + const createMappingsButtonObject = document.createElement("button"); + + const createMappingsButtonAriaLabel = document.createElement("label"); - submitButtonObject.textContent = "Convert file" + createMappingsButtonAriaLabel.innerHTML = "Create mapping files" - submitButtonObject.addEventListener("click", () => handleFiles(fileList), false); + createMappingsButtonObject.addEventListener("click", () => handleFiles(fileList), false); - submitButtonDiv.innerHTML = "" + createMappingsButtonDiv.innerHTML = "" document.getElementById("fileLinks").innerHTML = "" document.getElementById("statusMessage").textContent = "" - submitButtonDiv.appendChild(submitButtonObject) + createMappingsButtonDiv.appendChild(createMappingsButtonObject) }