update activity hiscores to match regular push todya

This commit is contained in:
dginovker 2021-03-06 18:05:14 -05:00
parent f3d41a46f2
commit c2bbf4667e
3 changed files with 8 additions and 7 deletions

View File

@ -488,11 +488,11 @@ English
<table class="center" style="margin: 0 auto;">
<tr>
<td>
<input class="nonBlueInputSlider" id="maxXP" type="range" min="1" max="10" value="10"
<input class="nonBlueInputSlider" id="maxXP" type="range" min="1" max="20" value="20"
step="0.5"
oninput="this.nextElementSibling.nextElementSibling.value = this.value % 1 != 0 ? this.value : this.value + '.0'">
<br>
Max XP Rate: <output id="maxXPoutput">10</output>
Max XP Rate: <output id="maxXPoutput">20</output>
</td>
</tr>
</table>
@ -518,7 +518,7 @@ English
<br>
<span style="color: rgba(0, 0, 0, 0.6);"><b>5.0x = XP Rate</b></span>
<br>
<span>(Default XP rate is 10)</span>
<span id="worldxprate">World 1 default XP rate: 1x</span>
<br>
</div>
</div>

View File

@ -132,4 +132,5 @@ hiscores.initalizeRightsideButtons("activity");
hiscores.populateActivityTable("activity");
hiscores.enterTotalXp();
hiscores.changePlaqueWorld();
hiscores.updateLegendText();
hiscores.addSkillsAndActivityFilters();

View File

@ -51,6 +51,10 @@ hiscores.linkLeftTabSkillNames = (loc = "hiscores") => {
}
hiscores.linkLeftTabActivityNames = (loc = "activities") => {
document.getElementsByClassName(` Overall ico`)[0].addEventListener("click", function (e) {
e.preventDefault();
window.location.replace(`./${loc}.html${hiscores.getFiltersAsURLparams()}`);
});
document.getElementsByClassName(` Slayer ico`)[0].addEventListener("click", function (e) {
e.preventDefault();
window.location.replace(`./${loc}.html?filter=combat${hiscores.getFiltersAsURLparams()}`);
@ -59,10 +63,6 @@ hiscores.linkLeftTabActivityNames = (loc = "activities") => {
e.preventDefault();
window.location.replace(`./${loc}.html?filter=miscellaneous${hiscores.getFiltersAsURLparams()}`);
});
document.getElementsByClassName(` Overall ico`)[0].addEventListener("click", function (e) {
e.preventDefault();
window.location.replace(`./${loc}.html${hiscores.getFiltersAsURLparams()}`);
});
}
hiscores.initializePageArrows = (loc = "hiscores") => {