Fix indentation
This commit is contained in:
@@ -31,9 +31,9 @@
|
|||||||
|
|
||||||
// Enable keyboard steering for the navigation menu
|
// Enable keyboard steering for the navigation menu
|
||||||
document.getElementById("menu-icon").addEventListener("keydown", (evt) => {
|
document.getElementById("menu-icon").addEventListener("keydown", (evt) => {
|
||||||
if (evt.key == "Enter" || evt.key == " ") {
|
if (evt.key == "Enter" || evt.key == " ") {
|
||||||
cbox.checked = !cbox.checked;
|
cbox.checked = !cbox.checked;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
if (crTypes) {
|
if (crTypes) {
|
||||||
@@ -53,16 +53,16 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function loadCodersrank(types) {
|
function loadCodersrank(types) {
|
||||||
const scriptElems = [];
|
const scriptElems = [];
|
||||||
for (type of types) {
|
for (type of types) {
|
||||||
const script = document.createElement("script");
|
const script = document.createElement("script");
|
||||||
script.src = "https://unpkg.com/@codersrank/activity/codersrank-" + type + ".min.js";
|
script.src = "https://unpkg.com/@codersrank/activity/codersrank-" + type + ".min.js";
|
||||||
scriptElems.push(script);
|
scriptElems.push(script);
|
||||||
}
|
}
|
||||||
for (ph of document.getElementsByClassName("cr-placeholder")) {
|
for (ph of document.getElementsByClassName("cr-placeholder")) {
|
||||||
ph.parentElement.innerHTML = ph.childNodes[0].data;
|
ph.parentElement.innerHTML = ph.childNodes[0].data;
|
||||||
}
|
}
|
||||||
document.head.append(...scriptElems);
|
document.head.append(...scriptElems);
|
||||||
}
|
}
|
||||||
})();
|
})();
|
||||||
|
|||||||
Reference in New Issue
Block a user