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

Use .innerText wherever applicable

parent c49b15bf
No related branches found
No related tags found
No related merge requests found
......@@ -2,10 +2,10 @@
// ./LICENSE for more details.
"use strict";
const version = "$Id: quiz.js,v 1.15 2024/01/20 10:00:26 oj14ozun Exp oj14ozun $";
const version = "$Id: quiz.js,v 1.16 2024/01/20 11:17:56 oj14ozun Exp oj14ozun $";
const js_version = document.getElementById("js-version");
js_version.innerHTML = version;
js_version.innerText = version;
const gitlab_base = "https://gitlab.cs.fau.de/oj14ozun/sp-quiz";
......@@ -56,8 +56,8 @@ function update_stats(q) {
const data = get_data(q);
// update stats
correct.innerHTML = data.right;
wrong.innerHTML = data.wrong;
correct.innerText = data.right;
wrong.innerText = data.wrong;
}
function remember(q, ok) {
......@@ -98,7 +98,7 @@ function next() {
// load question
text.innerHTML = q.question;
// load metadata
metadata.innerHTML = q.source;
metadata.innerText = q.source;
// load image, if specified
if (q.media) {
media.style.display = (media.src = q.media) ? "block" : "none";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment