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>
|
<strong>Upload Your Answers</strong>
|
||||||
<button id="info-upload-btn" class='info-btn'><i class="fa fa-info"></i></button>
|
<button id="info-upload-btn" class='info-btn'><i class="fa fa-info"></i></button>
|
||||||
</legend>
|
</legend>
|
||||||
<label for="answer-cype">Type:</label>
|
<label for="answer-type">Type:</label>
|
||||||
<select id="answer-cype">
|
<select id="answer-type">
|
||||||
<option value="comment">Comment Generation</option>
|
<option value="comment">Comment Generation</option>
|
||||||
<option value="refinement">Code Refinement</option>
|
<option value="refinement">Code Refinement</option>
|
||||||
</select>
|
</select>
|
||||||
<br /><br />
|
<br /><br />
|
||||||
<input type="file" id="file-cnput" accept="application/json" />
|
<input type="file" id="file-input" accept="application/json" />
|
||||||
<br /><br />
|
<br /><br />
|
||||||
<div style="display: flex; align-items: center; gap: 0.5em">
|
<div style="display: flex; align-items: center; gap: 0.5em">
|
||||||
<button id="upload-btn">Upload JSON</button>
|
<button id="upload-btn">Upload JSON</button>
|
||||||
|
@ -75,8 +75,8 @@ document.getElementById("upload-btn").onclick = async () => {
|
|||||||
uploadStatusEl.classList.add("hidden");
|
uploadStatusEl.classList.add("hidden");
|
||||||
progressContainer.classList.add("hidden");
|
progressContainer.classList.add("hidden");
|
||||||
|
|
||||||
const type = document.getElementById("answer-cype").value;
|
const type = document.getElementById("answer-type").value;
|
||||||
const fileInput = document.getElementById("file-cnput");
|
const fileInput = document.getElementById("file-input");
|
||||||
if (!fileInput.files.length) {
|
if (!fileInput.files.length) {
|
||||||
return alert("Please choose a JSON file first.");
|
return alert("Please choose a JSON file first.");
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user