diff --git a/services/m=hiscore/helpers.js b/services/m=hiscore/helpers.js new file mode 100644 index 000000000..fb74a3c43 --- /dev/null +++ b/services/m=hiscore/helpers.js @@ -0,0 +1,37 @@ +var REQUIRE = REQUIRE || {}; +REQUIRE.sName = [ + "Attack", + "Defence", + "Strength", + "Constitution", + "Ranged", + "Prayer", + "Magic", + "Cooking", + "Woodcutting", + "Fletching", + "Fishing", + "Firemaking", + "Crafting", + "Smithing", + "Mining", + "Herblore", + "Agility", + "Thieving", + "Slayer", + "Farming", + "Runecrafting", + "Hunter", + "Construction", + "Summoning" +] + +REQUIRE.linkLeftTabSkillNames = () => { + REQUIRE.sName.forEach((skill, index) => { + row = document.getElementsByClassName(` ${skill} ico`)[0].addEventListener("click", function (e) { + e.preventDefault(); + console.log(skill, index); + loadSkillTable(index); + }); + }); +} \ No newline at end of file diff --git a/services/m=hiscore/hiscores.html b/services/m=hiscore/hiscores.html index 6730a0586..3c82b4ff3 100644 --- a/services/m=hiscore/hiscores.html +++ b/services/m=hiscore/hiscores.html @@ -622,7 +622,7 @@ English - +