From bd2cebd8bbb39cdf361b960df0e7d95548eb4e20 Mon Sep 17 00:00:00 2001 From: Siphalor Date: Tue, 22 Mar 2022 19:17:13 +0100 Subject: [PATCH] Fix indentation --- assets/js/main.js | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/assets/js/main.js b/assets/js/main.js index 92872c6..170c63b 100644 --- a/assets/js/main.js +++ b/assets/js/main.js @@ -31,9 +31,9 @@ // Enable keyboard steering for the navigation menu document.getElementById("menu-icon").addEventListener("keydown", (evt) => { - if (evt.key == "Enter" || evt.key == " ") { + if (evt.key == "Enter" || evt.key == " ") { cbox.checked = !cbox.checked; - } + } }); if (crTypes) { @@ -53,16 +53,16 @@ } } - function loadCodersrank(types) { - const scriptElems = []; - for (type of types) { - const script = document.createElement("script"); - script.src = "https://unpkg.com/@codersrank/activity/codersrank-" + type + ".min.js"; - scriptElems.push(script); - } - for (ph of document.getElementsByClassName("cr-placeholder")) { - ph.parentElement.innerHTML = ph.childNodes[0].data; - } - document.head.append(...scriptElems); - } + function loadCodersrank(types) { + const scriptElems = []; + for (type of types) { + const script = document.createElement("script"); + script.src = "https://unpkg.com/@codersrank/activity/codersrank-" + type + ".min.js"; + scriptElems.push(script); + } + for (ph of document.getElementsByClassName("cr-placeholder")) { + ph.parentElement.innerHTML = ph.childNodes[0].data; + } + document.head.append(...scriptElems); + } })();