Spaces:
Sleeping
Sleeping
Update evaluation/eval_interfaces/graph_eval_interface.html
Browse files
evaluation/eval_interfaces/graph_eval_interface.html
CHANGED
|
@@ -187,8 +187,7 @@ document.getElementById('confirm-wrong').onclick=()=>{
|
|
| 187 |
};
|
| 188 |
function saveAnswer(ans,userInputWrongStep){
|
| 189 |
const elapsed=(Date.now()-startTime)/1000;
|
| 190 |
-
const
|
| 191 |
-
const actualWrongStep = parseInt(firstDiv?.textContent.trim() ?? '', 10);
|
| 192 |
samples.push({
|
| 193 |
file:files[idx],
|
| 194 |
id:files[idx].match(/([^/_]+_[^/_]+_\d+)\.html$/)[1],
|
|
|
|
| 187 |
};
|
| 188 |
function saveAnswer(ans,userInputWrongStep){
|
| 189 |
const elapsed=(Date.now()-startTime)/1000;
|
| 190 |
+
const ActualWrongStep = parseInt(frame.contentDocument.querySelector('.wrong-step')?.textContent.trim() ?? '', 10);
|
|
|
|
| 191 |
samples.push({
|
| 192 |
file:files[idx],
|
| 193 |
id:files[idx].match(/([^/_]+_[^/_]+_\d+)\.html$/)[1],
|