mirror of
https://github.com/2009scape/2009scape.github.io.git
synced 2024-11-09 20:42:35 +01:00
37 lines
757 B
JavaScript
37 lines
757 B
JavaScript
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);
|
|
});
|
|
});
|
|
} |