Skip to content
Snippets Groups Projects
Commit 70f7b5a2 authored by Philip Kaluđerčić's avatar Philip Kaluđerčić :u7121:
Browse files

Prevent RET from interacting with info_toggle

parent b6698566
No related branches found
No related tags found
No related merge requests found
......@@ -2,7 +2,7 @@
// ./LICENSE for more details.
"use strict";
const version = "$Id: quiz.js,v 1.16 2024/01/20 11:17:56 oj14ozun Exp oj14ozun $";
const version = "$Id: quiz.js,v 1.17 2024/01/20 11:19:11 oj14ozun Exp oj14ozun $";
const js_version = document.getElementById("js-version");
js_version.innerText = version;
......@@ -25,6 +25,7 @@ const class_list = document.documentElement.classList;
// toggle information panel
info_toggle.onclick = _ => class_list.toggle("open");
info_toggle.onkeydown = ev => ev.keyCode != 13;
// state variables
var questions; // quiz data
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment