diff --git a/package-lock.json b/package-lock.json index d1bc9ed..33bb8cf 100644 Binary files a/package-lock.json and b/package-lock.json differ diff --git a/package.json b/package.json index 888d49e..6906003 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@fwdekker/template", - "version": "2.5.4", + "version": "2.5.5", "description": "The base template for pages on fwdekker.com.", "author": "F.W. Dekker", "license": "MIT", @@ -34,8 +34,8 @@ "grunt-contrib-cssmin": "^4.0.0", "grunt-contrib-watch": "^1.1.0", "grunt-focus": "^1.0.0", - "grunt-webpack": "^4.0.3", - "webpack": "^5.52.1", - "webpack-cli": "^4.8.0" + "grunt-webpack": "^5.0.0", + "webpack": "^5.64.0", + "webpack-cli": "^4.9.1" } } diff --git a/src/main/js/main.js b/src/main/js/main.js index 4ff18b2..b3dd45a 100644 --- a/src/main/js/main.js +++ b/src/main/js/main.js @@ -17,6 +17,14 @@ const stringToHtml = function(string, query) { */ const $ = q => document.querySelector(q); +/** + * Alias for `document.querySelectorAll`. + * + * @param q {string} the query string + * @returns {NodeListOf} the elements identified by the query string + */ +const $a = q => document.querySelectorAll(q); + /** * Runs the given function once the page is loaded. *