Difference between revisions of "Widget:RuneDisp"
From Official Runecraft Wiki
Line 41: | Line 41: | ||
select.appendChild(option); | select.appendChild(option); | ||
− | |||
− | |||
var reversedRunes = runefiles.reverse(); | var reversedRunes = runefiles.reverse(); | ||
+ | var length = reversedRunes.length; | ||
for (const rne of reversedRunes) { | for (const rne of reversedRunes) { | ||
− | |||
const option = document.createElement('option'); | const option = document.createElement('option'); | ||
option.value = rne; | option.value = rne; | ||
Line 52: | Line 50: | ||
option.textContent = 'Activation Layer'; | option.textContent = 'Activation Layer'; | ||
} else { | } else { | ||
− | option.textContent = 'Layer '+ length); | + | option.textContent = 'Layer ' + length); |
} | } | ||
select.appendChild(option); | select.appendChild(option); |
Revision as of 18:26, 14 January 2022