Added docs for js

This commit is contained in:
2023-03-15 13:58:53 +01:00
parent 09409dc698
commit 293411d679
2 changed files with 120 additions and 5 deletions

View File

@@ -1,3 +1,14 @@
/**
* Function that updates list of tools depending on chosen category
*
* @function
* @name changeActiveTools
* @kind function
* @param {any} activeClass class of elements that have to be shown
* @param {any} activeCategoryButton class of category button that has to be active
*/
function changeActiveTools(activeClass, activeCategoryButton) {
let tools = document.getElementById("toolList").children