mirror of
https://github.com/karma-riuk/crab-webapp.git
synced 2025-07-04 22:08:12 +02:00
fixed typo
This commit is contained in:
@ -48,13 +48,13 @@
|
||||
<strong>Upload Your Answers</strong>
|
||||
<button id="info-upload-btn" class='info-btn'><i class="fa fa-info"></i></button>
|
||||
</legend>
|
||||
<label for="answer-cype">Type:</label>
|
||||
<select id="answer-cype">
|
||||
<label for="answer-type">Type:</label>
|
||||
<select id="answer-type">
|
||||
<option value="comment">Comment Generation</option>
|
||||
<option value="refinement">Code Refinement</option>
|
||||
</select>
|
||||
<br /><br />
|
||||
<input type="file" id="file-cnput" accept="application/json" />
|
||||
<input type="file" id="file-input" accept="application/json" />
|
||||
<br /><br />
|
||||
<div style="display: flex; align-items: center; gap: 0.5em">
|
||||
<button id="upload-btn">Upload JSON</button>
|
||||
|
@ -75,8 +75,8 @@ document.getElementById("upload-btn").onclick = async () => {
|
||||
uploadStatusEl.classList.add("hidden");
|
||||
progressContainer.classList.add("hidden");
|
||||
|
||||
const type = document.getElementById("answer-cype").value;
|
||||
const fileInput = document.getElementById("file-cnput");
|
||||
const type = document.getElementById("answer-type").value;
|
||||
const fileInput = document.getElementById("file-input");
|
||||
if (!fileInput.files.length) {
|
||||
return alert("Please choose a JSON file first.");
|
||||
}
|
||||
|
Reference in New Issue
Block a user