This commit is contained in:
David Ralph
2019-05-13 17:36:37 +01:00
parent 8cfe23c43f
commit 4271e09e4f
16 changed files with 89 additions and 30 deletions

View File

@@ -22,11 +22,6 @@ module.exports = class Util {
return unit < 10 ? '0' + unit : unit;
}
// setHTMLContent is the kind of function that is referred to as a 'wrapper'
static setHTMLContent(selector, content) {
return document.querySelector(selector).innerHTML = content;
}
// Get random item
static getRandIndex(array) {
return Math.floor(Math.random() * (array.length - 1));