Skip to content

Commit

Permalink
Merge pull request #33 from CLOSER-Cohorts/issue-21-fix-wcag-issues
Browse files Browse the repository at this point in the history
issue-21-fix-wcag-issues
  • Loading branch information
ollylucl authored Aug 2, 2024
2 parents fd96684 + efdc551 commit e545543
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ <h1>Generate text mappings files</h1>
</div>
<div class="paddedDiv" style="display:flex;flex-direction:row">
<input id="inputFileSelector" type="file" />
<div style="margin-left:20px" id="submitButton"></div>
<div style="margin-left:20px" id="createMappingsButton"></div>
</div>

</div>
Expand Down Expand Up @@ -106,21 +106,23 @@ <h1>Generate text mappings files</h1>

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)

}

Expand Down

0 comments on commit e545543

Please sign in to comment.