mirror of
https://github.com/2009scape/2009scape.github.io.git
synced 2024-09-12 03:12:30 +02:00
Activity highscores templating
This commit is contained in:
parent
842e9679e7
commit
669fbda06c
@ -1,552 +1,367 @@
|
|||||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
---
|
||||||
<html>
|
title: Hiscores
|
||||||
|
tag: highscores
|
||||||
<!-- Mirrored from services/m=hiscore/hiscores.ws by HTTrack Website Copier/3.x [XR&CO'2010], Sun, 18 Jul 2010 08:59:40 GMT -->
|
layout: hiscore
|
||||||
<!-- Added by HTTrack -->
|
---
|
||||||
<meta http-equiv="content-type" content="text/html;charset=ISO-8859-1"><!-- /Added by HTTrack -->
|
<script type="text/javascript" src="./jquery-1.3.2.min.js"></script>
|
||||||
|
<div id="content">
|
||||||
<head>
|
<div id="article">
|
||||||
<link rel="icon" type="image/vnd.microsoft.icon" href="../../site/favicon.ico">
|
<div class="sectionHeader">
|
||||||
<link rel="SHORTCUT ICON" href="../../site/favicon.ico">
|
<div class="left">
|
||||||
<link rel="apple-touch-icon" href="../../site/img/mobile.png">
|
<div class="right">
|
||||||
|
<h1 class="plaque">
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
<span id="worldplaqueid">World 1 Hiscores</span>
|
||||||
<meta http-equiv="Content-Language" content="
|
</h1>
|
||||||
en,
|
</div>
|
||||||
English
|
</div>
|
||||||
">
|
</div>
|
||||||
<meta name="keywords" content="RSPS, Open Source, 2009scape, Osrs, Oldschool Runescape, Runescape, zezima">
|
<div class="section">
|
||||||
<meta name="description"
|
<!--[if lt IE 6]>
|
||||||
content="2009scape - Bringing back the game from 2009 you love. Multiplayer and Free forever.">
|
<style type="text/css">
|
||||||
<meta name="title" content="2009scape - Free Forever - Hiscores">
|
#skillsList_back {
|
||||||
<title>2009scape - Free Forever - Hiscores</title>
|
width: 173px;
|
||||||
<style type="text/css">
|
}
|
||||||
/*\*/
|
#skillsList ul li a:hover {
|
||||||
@import url(../../site/css/global-34.css);
|
height: 19px;
|
||||||
/**/
|
}
|
||||||
</style>
|
#skillsList ul li a {
|
||||||
|
height: 19px;
|
||||||
<script type="text/javascript" src="../../www.jagex.com/js/jquery/jquery_1_3_2.js"></script>
|
}
|
||||||
<script type="text/javascript">
|
#playerList_back {
|
||||||
$(function () {
|
width: 381px;
|
||||||
|
}
|
||||||
|
.table_back tr {
|
||||||
$("#play, #playExisting, #playBannerNoad").each(function () { this.href += "?j=1"; })
|
color: #f9deb3;
|
||||||
})
|
}
|
||||||
</script>
|
.table_back th {
|
||||||
|
color: white;
|
||||||
<style type="text/css">
|
}
|
||||||
/*\*/
|
.table_back {
|
||||||
@import url(../../site/css/hiscores-17.css);
|
text-align: center;
|
||||||
/**/
|
}
|
||||||
|
#PlayerSkill_back {
|
||||||
|
width: 363px;
|
||||||
.bodyBackgroundHeadAdvert{
|
}
|
||||||
background-image: url("../../site/img/2009img/main/skins/default/bg.jpg");
|
#mini_player, #skill_player {
|
||||||
background-repeat: repeat-y;
|
width: 353px;
|
||||||
|
}
|
||||||
|
#scores_head {
|
||||||
|
padding-top: 5px;
|
||||||
}
|
}
|
||||||
.bodyBackground{
|
#compare_header {
|
||||||
background-image: url("../../site/img/2009img/main/skins/default/bg.jpg");
|
padding-top: 6px;
|
||||||
background-repeat: repeat-y;
|
}
|
||||||
}
|
</style>
|
||||||
|
<![endif]-->
|
||||||
|
<div class="brown_background">
|
||||||
|
<div id="hiscores_background" class="inner_brown_background">
|
||||||
|
<div id="skillsList_back" class="brown_box">
|
||||||
|
<div class="subsectionHeader">Activities</div>
|
||||||
|
<div id="skillsList">
|
||||||
</style>
|
<ul>
|
||||||
|
<li style="background-color:#4c350a">
|
||||||
<meta name="ROBOTS" content="NOFOLLOW">
|
<a href="./activity.html" class=" Overall ico">
|
||||||
</head>
|
Skilling
|
||||||
|
</a>
|
||||||
<body id="navcommunity" class="bodyBackground">
|
</li>
|
||||||
<a name="top"></a>
|
<li>
|
||||||
|
<a href="./activity.html" class=" Slayer ico">
|
||||||
<div id="scroll">
|
|
||||||
<div id="head">
|
Combat
|
||||||
<div id="headBg">
|
</a>
|
||||||
<div id="headOrangeTop"></div>
|
</li>
|
||||||
<img id="banner" src="" alt="RuneScape">
|
<li>
|
||||||
|
<a href="./activity.html" class=" Summoning ico">
|
||||||
<!--SCRIPT: MONTHLY BANNER-->
|
|
||||||
<script type="text/javascript">
|
Miscellaneous
|
||||||
document.getElementById("banner").src = `../../site/2009scape-resources/img/banners/${new Date().getMonth() + 1}.png`;
|
</a>
|
||||||
</script>
|
</li>
|
||||||
|
</ul>
|
||||||
<div id="headImage"><a href="" id="logo_select"></a>
|
</div>
|
||||||
<div id="player_no"><span class="brandingColor">2009Scape</span>: a free & open-source remake of 2009 era RuneScape</div>
|
</div>
|
||||||
</div>
|
<div id="modeSelect_back" class="brown_box">
|
||||||
<div id="headOrangeBottom"></div>
|
<div class="buttons">
|
||||||
|
<a id="button-left" href="./hiscores.html">
|
||||||
<!-- End of Banner -->
|
<span class="lev1a"></span>
|
||||||
<div id="menubox">
|
Skills
|
||||||
<ul id="menus">
|
</a>
|
||||||
<li class="top"><a href="./../../index.html" id="home" class="tl"><span class="ts">Home</span></a></li>
|
<a id="button-right" href="./activity.html">
|
||||||
|
<span class="lev1"></span>
|
||||||
<li class="top"><a id="play" class="tl"
|
Activities
|
||||||
href="https://github.com/2009scape/2009Scape/releases/latest/download/2009Scape.jar"
|
</a>
|
||||||
onclick="if(!this.j){this.href+='?j=1';this.j=true;}"><span class="ts">Play Now</span></a>
|
</div>
|
||||||
</li>
|
</div>
|
||||||
|
<div id="playerList_back" class="brown_box">
|
||||||
<li class="top"><a id="community" class="tl" href="./archives/archives.html"><span class="ts">Updates</span></a>
|
<div id="scores_head" class="subsectionHeader" style="padding: 0px;">
|
||||||
|
<img id="scores_head_icon" style="margin-top: 3px;" class="miniimg_list" src="../../site/img/hiscores/skill_icon_overall1eccb.gif" alt="Skill Icon">
|
||||||
</li>
|
<span id="scores_head_skill">Combat</span>
|
||||||
|
Activites
|
||||||
<li class="top"><a id="guide" class="tl" href="../../site/game_guide/manual.html"><span class="ts">Game
|
</div>
|
||||||
Guide</span></a>
|
<table class="table_back">
|
||||||
<ul>
|
<tbody id="hiscores_table">
|
||||||
<li><a href="../../site/game_guide/manual.html" class="fly"><span>Browse the Game Guide</span></a></li>
|
</tbody><thead>
|
||||||
<li><a href="../../site/game_guide/credits.html" class="fly"><span>The Credit System</span></a>
|
<tr class="table_header">
|
||||||
<li><a href="../../site/rules/rules.html" class="fly"><span>Our Rules</span></a></li>
|
<th class="rankHead" style="width: 65px;">Activity</th>
|
||||||
<li><a href="../../site/game_guide/about2009scape.html" class="fly"><span>About 2009scape</span></a></li>
|
<th class="nameHead" style="width: 186px; text-align: center;">Name</th>
|
||||||
</ul>
|
<th class="levelHead" style="width: 95px;">Amount</th>
|
||||||
</li>
|
</tr>
|
||||||
<li class="top"><a id="help" class="tl" href="../../site/community/community.html"><span class="ts">Community</span></a>
|
</thead>
|
||||||
<ul>
|
<tbody><tr class="row row1">
|
||||||
<li><a href="https://discord.com/invite/43YPGND" class="fly"><span>Discord Server</span> </a></li>
|
<td class="rankCol">1</td>
|
||||||
<li><a href="https://matrix.to/#/#09scape-general:matrix.org" class="fly"><span>Matrix Server</span> </a></li>
|
<td class="alL">Total Slayer Tasks Completed</td>
|
||||||
<li><a href="../m=hiscore/hiscores.html?world=2" class="fly"><span>Legacy Hiscores</span></a></li>
|
<td class="alL">1,021</td>
|
||||||
<li><a href="../../site/community/hall_of_fame.html" class="fly"><span>The Hall Of Fame</span></a>
|
</tr>
|
||||||
<li><a href="../../site/community/staff.html" class="fly"><span>Meet the Staff</span></a>
|
<tr class="row row2">
|
||||||
<li><a href="../../site/community/contributors.html" class="fly"><span>To the Tributes!</span></a></li>
|
<td class="rankCol">2</td>
|
||||||
<li><a href="../../site/classicapplet/playclassic.html" class="fly"><span>Play Classic</span></a>
|
<td class="alL">Total Enemies Killed</td>
|
||||||
</ul>
|
<td class="alL">100,381</td>
|
||||||
</li>
|
</tr>
|
||||||
|
<tr class="row row3">
|
||||||
<li class="top"><a id="help" class="tl" href="../../site/help_hub.html"><span class="ts">Help</span></a>
|
<td class="rankCol">3</td>
|
||||||
<ul>
|
<td class="alL">Total Deaths</td>
|
||||||
<li><a href="../../site/faq.html" class="fly"><span>Frequently Asked Questions</span></a>
|
<td class="alL">400</td>
|
||||||
|
</tr>
|
||||||
|
<tr class="row row4">
|
||||||
|
<td class="rankCol">4</td>
|
||||||
</ul>
|
<td class="alL"></td>
|
||||||
</li>
|
<td class="alL"></td>
|
||||||
|
</tr>
|
||||||
<li class="top"><a id="login" class="tl" href="https://github.com/2009scape" rel="noopener noreferrer" target="_blank"><span class="ts">Source Code</span></a>
|
<tr class="row row5">
|
||||||
<ul>
|
<td class="rankCol">5</td>
|
||||||
<li><li><a href="https://gitlab.com/2009scape/2009scape" rel="noopener noreferrer" target="_blank" class="fly"><span>Game Source Code</span></a></li>
|
<td class="alL"></td>
|
||||||
<li><a href="https://github.com/2009scape/2009Scape.github.io" rel="noopener noreferrer" target="_blank" class="fly"><span>Website Source Code</span></a>
|
<td class="alL"></td>
|
||||||
</ul>
|
</tr>
|
||||||
</li>
|
<tr class="row row6">
|
||||||
</ul>
|
<td class="rankCol">6</td>
|
||||||
<br class="clear" />
|
<td class="alL"></td>
|
||||||
</div>
|
<td class="alL"></td>
|
||||||
<div class="navigation">
|
</tr>
|
||||||
<div class="location">
|
<tr class="row row7">
|
||||||
<b>Location: </b> <a href="../../index.html">Home</a> >
|
<td class="rankCol">7</td>
|
||||||
Hiscores
|
<td class="alL"></td>
|
||||||
</div>
|
<td class="alL"></td>
|
||||||
</div>
|
</tr>
|
||||||
</div>
|
<tr class="row row8">
|
||||||
</div>
|
<td class="rankCol">8</td>
|
||||||
<div id="content">
|
<td class="alL"></td>
|
||||||
<div id="article">
|
<td class="alL"></td>
|
||||||
<div class="sectionHeader">
|
</tr>
|
||||||
<div class="left">
|
<tr class="row row9">
|
||||||
<div class="right">
|
<td class="rankCol">9</td>
|
||||||
<h1 class="plaque">
|
<td class="alL"></td>
|
||||||
<span id="worldplaqueid"></span>
|
<td class="alL"></td>
|
||||||
</h1>
|
</tr>
|
||||||
</div>
|
<tr class="row row10">
|
||||||
</div>
|
<td class="rankCol">10</td>
|
||||||
</div>
|
<td class="alL"></td>
|
||||||
<div class="section">
|
<td class="alL"></td>
|
||||||
<!--[if lt IE 6]>
|
</tr>
|
||||||
<style type="text/css">
|
<tr class="row row11">
|
||||||
#skillsList_back {
|
<td class="rankCol">11</td>
|
||||||
width: 173px;
|
<td class="alL"></td>
|
||||||
}
|
<td class="alL"></td>
|
||||||
#skillsList ul li a:hover {
|
</tr>
|
||||||
height: 19px;
|
<tr class="row row12">
|
||||||
}
|
<td class="rankCol">12</td>
|
||||||
#skillsList ul li a {
|
<td class="alL"></td>
|
||||||
height: 19px;
|
<td class="alL"></td>
|
||||||
}
|
</tr>
|
||||||
#playerList_back {
|
<tr class="row row13">
|
||||||
width: 381px;
|
<td class="rankCol">13</td>
|
||||||
}
|
<td class="alL"></td>
|
||||||
.table_back tr {
|
<td class="alL"></td>
|
||||||
color: #f9deb3;
|
</tr>
|
||||||
}
|
<tr class="row row14">
|
||||||
.table_back th {
|
<td class="rankCol">14</td>
|
||||||
color: white;
|
<td class="alL"></td>
|
||||||
}
|
<td class="alL"></td>
|
||||||
.table_back {
|
</tr>
|
||||||
text-align: center;
|
<tr class="row row15">
|
||||||
}
|
<td class="rankCol">15</td>
|
||||||
#PlayerSkill_back {
|
<td class="alL"></td>
|
||||||
width: 363px;
|
<td class="alL"></td>
|
||||||
}
|
</tr>
|
||||||
#mini_player, #skill_player {
|
<tr class="row row16">
|
||||||
width: 353px;
|
<td class="rankCol">16</td>
|
||||||
}
|
<td class="alL"></td>
|
||||||
#scores_head {
|
<td class="alL"></td>
|
||||||
padding-top: 5px;
|
</tr>
|
||||||
}
|
<tr class="row row17">
|
||||||
#compare_header {
|
<td class="rankCol">17</td>
|
||||||
padding-top: 6px;
|
<td class="alL"></td>
|
||||||
}
|
<td class="alL"></td>
|
||||||
</style>
|
</tr>
|
||||||
<![endif]-->
|
<tr class="row row18">
|
||||||
<div class="brown_background">
|
<td class="rankCol">18</td>
|
||||||
<div id="hiscores_background" class="inner_brown_background">
|
<td class="alL"></td>
|
||||||
<div id="skillsList_back" class="brown_box">
|
<td class="alL"></td>
|
||||||
<div class="subsectionHeader">Activities</div>
|
</tr>
|
||||||
<div id="skillsList">
|
<tr class="row row19">
|
||||||
<ul>
|
<td class="rankCol">19</td>
|
||||||
<li style="background-color:#4c350a">
|
<td class="alL"></td>
|
||||||
<a href="./activity.html" class=" Overall ico">
|
<td class="alL"></td>
|
||||||
Skilling
|
</tr>
|
||||||
</a>
|
<tr class="row row20">
|
||||||
</li>
|
<td class="rankCol">20</td>
|
||||||
<li>
|
<td class="alL"></td>
|
||||||
<a href="./activity.html" class=" Slayer ico">
|
<td class="alL"></td>
|
||||||
|
</tr>
|
||||||
Combat
|
<tr class="row row21">
|
||||||
</a>
|
<td class="rankCol">21</td>
|
||||||
</li>
|
<td class="alL"></td>
|
||||||
<li>
|
<td class="alL"></td>
|
||||||
<a href="./activity.html" class=" Summoning ico">
|
</tr>
|
||||||
|
<tr class="row row22">
|
||||||
Miscellaneous
|
<td class="rankCol">22</td>
|
||||||
</a>
|
<td class="alL"></td>
|
||||||
</li>
|
|
||||||
</ul>
|
<td class="alL"></td>
|
||||||
</div>
|
</tr>
|
||||||
</div>
|
<tr class="row row23">
|
||||||
<div id="modeSelect_back" class="brown_box">
|
<td class="rankCol">23</td>
|
||||||
<div class="buttons">
|
<td class="alL"></td>
|
||||||
<a id="button-left" href="./hiscores.html">
|
|
||||||
<span class="lev1a"></span>
|
<td class="alL"></td>
|
||||||
Skills
|
</tr>
|
||||||
</a>
|
<tr class="row row24" id="lastRow">
|
||||||
<a id="button-right" href="./activity.html">
|
<td class="rankCol">24</td>
|
||||||
<span class="lev1"></span>
|
<td class="alL"></td>
|
||||||
Activities
|
|
||||||
</a>
|
<td class="alL"></td>
|
||||||
</div>
|
</tr>
|
||||||
</div>
|
</tbody>
|
||||||
<div id="playerList_back" class="brown_box">
|
</table>
|
||||||
<div id="scores_head" class="subsectionHeader" style="padding: 0px;">
|
<div class="arrow_header"></div>
|
||||||
<img id="scores_head_icon" style="margin-top: 3px;" class="miniimg_list" id="image_caption"
|
<div class="arrow_back">
|
||||||
src="../../site/img/hiscores/skill_icon_overall1eccb.gif" alt="Skill Icon">
|
<div class="buttons_arrows">
|
||||||
<span id="scores_head_skill">Skilling</span>
|
<a id="button-up" href="./hiscores.html">
|
||||||
Activites
|
<span class="lev1_arrow"></span>
|
||||||
</div>
|
U
|
||||||
<table class="table_back">
|
</a>
|
||||||
<tbody id="hiscores_table">
|
<a id="button-down" href="./hiscores.html">
|
||||||
<thead>
|
<span class="lev1_arrow"></span>
|
||||||
<tr class="table_header">
|
D
|
||||||
<th class="rankHead" style="width: 65px;">Activity</th>
|
</a>
|
||||||
<th class="nameHead" style="width: 186px; text-align: center;">Name</th>
|
</div>
|
||||||
<th class="levelHead" style="width: 95px;">Amount</th>
|
</div>
|
||||||
</tr>
|
</div>
|
||||||
</thead>
|
<div id="search_back" class="brown_box">
|
||||||
<tr class="row row1">
|
<div class="subsectionHeader search_title">Search by Name</div>
|
||||||
<td class="rankCol">1</td>
|
<div class="search_small">
|
||||||
<td class="alL"><a href="./hiscores.html"></a>Loading..</td>
|
<form action="./activity.html" method="post" class="no_margin">
|
||||||
<td class="alL">0</td>
|
<input id="search_name" class="textinput text" maxlength="12" type="text" name="user1" value="">
|
||||||
</tr>
|
<input id="search_button" type="submit" name="submit" class="buttonmedium" value="Search">
|
||||||
<tr class="row row2">
|
</form>
|
||||||
<td class="rankCol">2</td>
|
</div>
|
||||||
<td class="alL"><a href="./hiscores.html"></a></td>
|
<div class="subsectionHeader search_title">Search by rank</div>
|
||||||
<td class="alL">0</td>
|
<div class="search_small">
|
||||||
</tr>
|
<form action="./activity.html" method="post" class="no_margin">
|
||||||
<tr class="row row3">
|
<input id="search_rank" class="textinput text" maxlength="12" type="text" name="rank" value="">
|
||||||
<td class="rankCol">3</td>
|
<input type="hidden" name="table" value="0">
|
||||||
<td class="alL"><a href="./hiscores.html"></a>
|
<input type="hidden" name="category_type" value="0">
|
||||||
</td>
|
<input id="search_rank_submit" type="submit" name="submit" class="buttonmedium" value="Search">
|
||||||
<td class="alL">0</td>
|
</form>
|
||||||
</tr>
|
</div>
|
||||||
<tr class="row row4">
|
<div class="subsectionHeader search_title">Filter</div>
|
||||||
<td class="rankCol">4</td>
|
<div id="filter_div" class="search_tiny_bit_more_large" style="height: 110px;">
|
||||||
<td class="alL"><a href="./hiscores.html"></a>
|
<form action="./activity.html" method="post" class="no_margin">
|
||||||
</td>
|
<div id="remember">
|
||||||
<td class="alL">0</td>
|
<label for="rem">
|
||||||
</tr>
|
<table class="center" style="margin: 0 auto; padding-top: 6px; padding-bottom: 12px;">
|
||||||
<tr class="row row5">
|
<tbody><tr>
|
||||||
<td class="rankCol">5</td>
|
<td>
|
||||||
<td class="alL"><a href="./hiscores.html"></a>
|
<span style="white-space: nowrap;">
|
||||||
</td>
|
<img src="../../site/img/osrsimg/ironman.png" style="height: 11px; padding-right: 30px;">
|
||||||
<td class="alL">0</td>
|
<label class="control control-checkbox">
|
||||||
</tr>
|
<input type="checkbox" name="check_iron" id="check_iron" value="1" class="checkbox" style="pointer-events: none;">
|
||||||
<tr class="row row6">
|
<div class="control_indicator"></div>
|
||||||
<td class="rankCol">6</td>
|
</label>
|
||||||
<td class="alL"><a href="./hiscores.html"></a>
|
</span>
|
||||||
</td>
|
</td>
|
||||||
<td class="alL">0</td>
|
<td>
|
||||||
</tr>
|
<span style="white-space: nowrap;">
|
||||||
<tr class="row row7">
|
<img src="../../site/img/osrsimg/ultimateironman.png" style="height: 11px; padding-right: 25px;">
|
||||||
<td class="rankCol">7</td>
|
<label class="control control-checkbox">
|
||||||
<td class="alL"><a href="./hiscores.html"></a></td>
|
<input type="checkbox" name="check_ultiron" id="check_ultiron" value="1" class="checkbox" style="pointer-events: none;">
|
||||||
<td class="alL">0</td>
|
<div class="control_indicator"></div>
|
||||||
</tr>
|
</label>
|
||||||
<tr class="row row8">
|
</span>
|
||||||
<td class="rankCol">8</td>
|
</td>
|
||||||
<td class="alL"><a href="./hiscores.html"></a>
|
<td>
|
||||||
</td>
|
<span style="white-space: nowrap;">
|
||||||
<td class="alL">0</td>
|
<img src="../../site/img/osrsimg/hcim.png" style="height: 11px; padding-right: 25px;">
|
||||||
</tr>
|
<label class="control control-checkbox">
|
||||||
<tr class="row row9">
|
<input type="checkbox" name="check_hciron" id="check_hciron" value="1" class="checkbox" style="pointer-events: none;">
|
||||||
<td class="rankCol">9</td>
|
<div class="control_indicator"></div>
|
||||||
<td class="alL"><a href="./hiscores.html"></a></td>
|
</label>
|
||||||
<td class="alL">0</td>
|
</span>
|
||||||
</tr>
|
</td>
|
||||||
<tr class="row row10">
|
</tr>
|
||||||
<td class="rankCol">10</td>
|
</tbody></table>
|
||||||
<td class="alL"><a href="./hiscores.html"></a>
|
<table class="center" style="margin: 0 auto;">
|
||||||
</td>
|
<tbody><tr>
|
||||||
<td class="alL">0</td>
|
<td>
|
||||||
</tr>
|
<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'">
|
||||||
<tr class="row row11">
|
<br>
|
||||||
<td class="rankCol">11</td>
|
Max XP Rate: <output id="maxXPoutput">20</output>
|
||||||
<td class="alL"><a href="./hiscores.html"></a>
|
</td>
|
||||||
</td>
|
</tr>
|
||||||
<td class="alL">0</td>
|
</tbody></table>
|
||||||
</tr>
|
</label>
|
||||||
<tr class="row row12">
|
</div>
|
||||||
<td class="rankCol">12</td>
|
<input id="filter_submit" type="submit" name="submit" class="buttonmedium" value="Filter" style="margin-top: 2px;">
|
||||||
<td class="alL"><a href="./hiscores.html"></a>
|
<div id="filter_clear_div"></div>
|
||||||
</td>
|
</form>
|
||||||
<td class="alL">0</td>
|
</div>
|
||||||
</tr>
|
<div class="subsectionHeader search_title">Legend</div>
|
||||||
<tr class="row row13">
|
<div class="search_custom_large" id="friends_search">
|
||||||
<td class="rankCol">13</td>
|
<div class="friendsContent" style="padding-top: 8px;">
|
||||||
<td class="alL"><a href="./hiscores.html"></a></td>
|
<img src="../../site/img/osrsimg/ironman.png" style="height: 11px;"> Ironman
|
||||||
<td class="alL">0</td>
|
<br>
|
||||||
</tr>
|
<img src="../../site/img/osrsimg/ultimateironman.png" style="height: 11px"> Ultimate Ironman
|
||||||
<tr class="row row14">
|
<br>
|
||||||
<td class="rankCol">14</td>
|
<img src="../../site/img/osrsimg/hcim.png" style="height: 11px"> Hardcore Ironman
|
||||||
<td class="alL"><a href="./hiscores.html"></a></td>
|
<br>
|
||||||
<td class="alL">0</td>
|
<span style="color: #4c350a;">---</span>
|
||||||
</tr>
|
<br>
|
||||||
<tr class="row row15">
|
<span style="color: rgba(0, 0, 0, 0.6);"><b>5.0x = XP Rate</b></span>
|
||||||
<td class="rankCol">15</td>
|
<br>
|
||||||
<td class="alL"><a href="./hiscores.html"></a>
|
<span id="worldxprate">World 1 default XP rate: 1x</span>
|
||||||
</td>
|
<br>
|
||||||
<td class="alL">0</td>
|
</div>
|
||||||
</tr>
|
</div>
|
||||||
<tr class="row row16">
|
</div>
|
||||||
<td class="rankCol">16</td>
|
<br style="clear:both">
|
||||||
<td class="alL"><a href="./hiscores.html"></a>
|
<div style="width: 100%; text-align: center; padding-top: 6px;">
|
||||||
</td>
|
<span id="total_xp" style="display: inline-block; color: rgba(211, 200, 163, 0.9); font-weight: bold; opacity: 1; transition: opacity 2s ease 0s;">Server Total XP: 3,535,829,635</span>
|
||||||
<td class="alL">0</td>
|
</div>
|
||||||
</tr>
|
</div>
|
||||||
<tr class="row row17">
|
</div>
|
||||||
<td class="rankCol">17</td>
|
</div>
|
||||||
<td class="alL"><a href="./hiscores.html"></a>
|
</div>
|
||||||
</td>
|
<br class="clear">
|
||||||
<td class="alL">0</td>
|
</div>
|
||||||
</tr>
|
<!-- Mirrored from services/m=hiscore/hiscores.ws by HTTrack Website Copier/3.x [XR&CO'2010], Sun, 18 Jul 2010 08:59:40 GMT -->
|
||||||
<tr class="row row18">
|
<!-- Added by HTTrack -->
|
||||||
<td class="rankCol">18</td>
|
<meta http-equiv="content-type" content="text/html;charset=ISO-8859-1">
|
||||||
<td class="alL"><a href="./hiscores.html"></a>
|
<!-- /Added by HTTrack -->
|
||||||
</td>
|
<script type="text/javascript">
|
||||||
<td class="alL">0</td>
|
try {
|
||||||
</tr>
|
var _pageTracker = _gat._getTracker("UA-2058817-15");
|
||||||
<tr class="row row19">
|
_pageTracker._setDomainName(".2009scape.org");
|
||||||
<td class="rankCol">19</td>
|
|
||||||
<td class="alL"><a href="./hiscores.html"></a></td>
|
|
||||||
<td class="alL">0</td>
|
_pageTracker._trackPageview();
|
||||||
</tr>
|
} catch (x) { }
|
||||||
<tr class="row row20">
|
</script>
|
||||||
<td class="rankCol">20</td>
|
<script type="text/javascript">
|
||||||
<td class="alL"><a href="./hiscores.html"></a>
|
try {
|
||||||
</td>
|
var pageTracker = _gat._getTracker("UA-2058817-2");
|
||||||
<td class="alL">0</td>
|
pageTracker._setDomainName(".2009scape.org");
|
||||||
</tr>
|
|
||||||
<tr class="row row21">
|
|
||||||
<td class="rankCol">21</td>
|
pageTracker._trackPageview();
|
||||||
<td class="alL"><a href="./hiscores.html"></a></td>
|
} catch (x) { }
|
||||||
<td class="alL">0</td>
|
</script>
|
||||||
</tr>
|
<script type="text/javascript" src="./helpers.js"></script>
|
||||||
<tr class="row row22">
|
<script type="text/javascript" src="./activity.js"></script>
|
||||||
<td class="rankCol">22</td>
|
|
||||||
<td class="alL"><a href="./hiscores.html"></a></td>
|
|
||||||
</td>
|
|
||||||
<td class="alL">0</td>
|
|
||||||
</tr>
|
|
||||||
<tr class="row row23">
|
|
||||||
<td class="rankCol">22</td>
|
|
||||||
<td class="alL"><a href="./hiscores.html"></a></td>
|
|
||||||
</td>
|
|
||||||
<td class="alL">0</td>
|
|
||||||
</tr>
|
|
||||||
<tr class="row row24" id="lastRow">
|
|
||||||
<td class="rankCol">22</td>
|
|
||||||
<td class="alL"><a href="./hiscores.html"></a></td>
|
|
||||||
</td>
|
|
||||||
<td class="alL">0</td>
|
|
||||||
</tr>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
<div class="arrow_header"></div>
|
|
||||||
<div class="arrow_back">
|
|
||||||
<div class="buttons_arrows">
|
|
||||||
<a id="button-up" href="./hiscores.html">
|
|
||||||
<span class="lev1_arrow"></span>
|
|
||||||
U
|
|
||||||
</a>
|
|
||||||
<a id="button-down" href="./hiscores.html">
|
|
||||||
<span class="lev1_arrow"></span>
|
|
||||||
D
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div id="search_back" class="brown_box">
|
|
||||||
<div class="subsectionHeader search_title">Search by Name</div>
|
|
||||||
<div class="search_small">
|
|
||||||
<form action="./activity.html" method="post" class="no_margin">
|
|
||||||
<input id="search_name" class="textinput text" maxlength="12" type="text" name="user1" value="">
|
|
||||||
<input id="search_button" type="submit" name="submit" class="buttonmedium" value="Search">
|
|
||||||
</form>
|
|
||||||
</div>
|
|
||||||
<div class="subsectionHeader search_title">Search by rank</div>
|
|
||||||
<div class="search_small">
|
|
||||||
<form action="./activity.html" method="post" class="no_margin">
|
|
||||||
<input id="search_rank" class="textinput text" maxlength="12" type="text" name="rank" value="">
|
|
||||||
<input type="hidden" name="table" value="0">
|
|
||||||
<input type="hidden" name="category_type" value="0">
|
|
||||||
<input id="search_rank_submit" type="submit" name="submit" class="buttonmedium" value="Search">
|
|
||||||
</form>
|
|
||||||
</div>
|
|
||||||
<div class="subsectionHeader search_title">Filter</div>
|
|
||||||
<div id="filter_div" class="search_tiny_bit_more_large" style="height: 110px;">
|
|
||||||
<form action="./activity.html" method="post" class="no_margin">
|
|
||||||
<div id="remember">
|
|
||||||
<label for="rem">
|
|
||||||
<table class="center" style="margin: 0 auto; padding-top: 6px; padding-bottom: 12px;">
|
|
||||||
<tr>
|
|
||||||
<td>
|
|
||||||
<span style="white-space: nowrap;">
|
|
||||||
<img src="../../site/img/osrsimg/ironman.png"
|
|
||||||
style="height: 11px; padding-right: 30px;">
|
|
||||||
<label class="control control-checkbox">
|
|
||||||
<input type="checkbox" name="check_iron" id="check_iron" value="1" class="checkbox"
|
|
||||||
style="pointer-events: none;" />
|
|
||||||
<div class="control_indicator"></div>
|
|
||||||
</label>
|
|
||||||
</span>
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
<span style="white-space: nowrap;">
|
|
||||||
<img src="../../site/img/osrsimg/ultimateironman.png"
|
|
||||||
style="height: 11px; padding-right: 25px;">
|
|
||||||
<label class="control control-checkbox">
|
|
||||||
<input type="checkbox" name="check_ultiron" id="check_ultiron" value="1"
|
|
||||||
class="checkbox" style="pointer-events: none;" />
|
|
||||||
<div class="control_indicator"></div>
|
|
||||||
</label>
|
|
||||||
</span>
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
<span style="white-space: nowrap;">
|
|
||||||
<img src="../../site/img/osrsimg/hcim.png" style="height: 11px; padding-right: 25px;">
|
|
||||||
<label class="control control-checkbox">
|
|
||||||
<input type="checkbox" name="check_hciron" id="check_hciron" value="1"
|
|
||||||
class="checkbox" style="pointer-events: none;" />
|
|
||||||
<div class="control_indicator"></div>
|
|
||||||
</label>
|
|
||||||
</span>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
<table class="center" style="margin: 0 auto;">
|
|
||||||
<tr>
|
|
||||||
<td>
|
|
||||||
<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">20</output>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
</label>
|
|
||||||
</div>
|
|
||||||
<input id="filter_submit" type="submit" name="submit" class="buttonmedium" value="Filter"
|
|
||||||
style="margin-top: 2px;">
|
|
||||||
<div id="filter_clear_div">
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</form>
|
|
||||||
</div>
|
|
||||||
<div class="subsectionHeader search_title">Legend</div>
|
|
||||||
<div class="search_custom_large" id="friends_search">
|
|
||||||
<div class="friendsContent" style="padding-top: 8px;">
|
|
||||||
<img src="../../site/img/osrsimg/ironman.png" style="height: 11px;"> Ironman
|
|
||||||
<br>
|
|
||||||
<img src="../../site/img/osrsimg/ultimateironman.png" style="height: 11px"> Ultimate Ironman
|
|
||||||
<br>
|
|
||||||
<img src="../../site/img/osrsimg/hcim.png" style="height: 11px"> Hardcore Ironman
|
|
||||||
<br>
|
|
||||||
<span style="color: #4c350a;">---</span>
|
|
||||||
<br>
|
|
||||||
<span style="color: rgba(0, 0, 0, 0.6);"><b>5.0x = XP Rate</b></span>
|
|
||||||
<br>
|
|
||||||
<span id="worldxprate">World 1 default XP rate: 1x</span>
|
|
||||||
<br>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<br style="clear:both" />
|
|
||||||
<div style="width: 100%; text-align: center; padding-top: 6px;">
|
|
||||||
<span id="total_xp"
|
|
||||||
style="display: inline-block; color: rgba(211, 200, 163, 0.9); font-weight: bold; opacity: 0; transition: opacity 2s; -webkit-transition: opacity 2s;">
|
|
||||||
Loading..
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<br class="clear" />
|
|
||||||
</div>
|
|
||||||
<div id="footer">
|
|
||||||
<div class="contain">
|
|
||||||
<div class="footerdesc">
|
|
||||||
Copyright © 2021 under AGPL. <strong>2009Scape is not affiliated with RuneScape or Jagex Ltd.</strong><br />
|
|
||||||
Use of our Game's source code is subject to our <a href="./site/terms/terms.html">Terms &
|
|
||||||
Conditions</a> and <a href="./site/privacy/privacy.html">Privacy Policy</a>.<br />
|
|
||||||
</div>
|
|
||||||
<a class="jagexlink" href="" target="_blank">
|
|
||||||
<img src="./../../site/2009scape-resources/img/branding/logo-footer-dark.png" alt="2009Scape" />
|
|
||||||
</a>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<script type="text/javascript">
|
|
||||||
try {
|
|
||||||
var _pageTracker = _gat._getTracker("UA-2058817-15");
|
|
||||||
_pageTracker._setDomainName(".2009scape.org");
|
|
||||||
|
|
||||||
|
|
||||||
_pageTracker._trackPageview();
|
|
||||||
} catch (x) { }
|
|
||||||
</script>
|
|
||||||
<script type="text/javascript">
|
|
||||||
try {
|
|
||||||
var pageTracker = _gat._getTracker("UA-2058817-2");
|
|
||||||
pageTracker._setDomainName(".2009scape.org");
|
|
||||||
|
|
||||||
|
|
||||||
pageTracker._trackPageview();
|
|
||||||
} catch (x) { }
|
|
||||||
</script>
|
|
||||||
</body>
|
|
||||||
|
|
||||||
<!-- Mirrored from services/m=hiscore/hiscores.ws by HTTrack Website Copier/3.x [XR&CO'2010], Sun, 18 Jul 2010 08:59:40 GMT -->
|
|
||||||
<!-- Added by HTTrack -->
|
|
||||||
<meta http-equiv="content-type" content="text/html;charset=ISO-8859-1"><!-- /Added by HTTrack -->
|
|
||||||
<script type="text/javascript" src="./helpers.js"></script>
|
|
||||||
<script type="text/javascript" src="./activity.js"></script>
|
|
||||||
|
|
||||||
</html>
|
|
@ -1,207 +1,207 @@
|
|||||||
var hiscores = hiscores || {};
|
var hiscores = hiscores || {};
|
||||||
|
|
||||||
hiscores.loadDefaultHSTable = () => {
|
hiscores.loadDefaultHSTable = () => {
|
||||||
fetch(`${hiscores.apiURL}/hiscores/playersByTotal/${hiscores.world}`)
|
fetch(`${hiscores.apiURL}/hiscores/playersByTotal/${hiscores.world}`)
|
||||||
.then(response => response.json())
|
.then(response => response.json())
|
||||||
.then(result => {
|
.then(result => {
|
||||||
result = hiscores.filter(result);
|
result = hiscores.filter(result);
|
||||||
hiscores.tableData = result;
|
hiscores.tableData = result;
|
||||||
hiscores.defaultTableData = result;
|
hiscores.defaultTableData = result;
|
||||||
hiscores.populateDefaultHSTable();
|
hiscores.populateDefaultHSTable();
|
||||||
})
|
})
|
||||||
.catch(error => console.log('error', error));
|
.catch(error => console.log('error', error));
|
||||||
}
|
}
|
||||||
|
|
||||||
hiscores.populateDefaultHSTable = () => {
|
hiscores.populateDefaultHSTable = () => {
|
||||||
for (let i = 1; i <= 24; i++) {
|
for (let i = 1; i <= 24; i++) {
|
||||||
row = document.getElementsByClassName(`row row${i}`)[0];
|
row = document.getElementsByClassName(`row row${i}`)[0];
|
||||||
const playerData = hiscores.tableData[i + 24 * hiscores.page - 1];
|
const playerData = hiscores.tableData[i + 24 * hiscores.page - 1];
|
||||||
|
|
||||||
row.childNodes[1].replaceWith(document.createElement("td"));
|
row.childNodes[1].replaceWith(document.createElement("td"));
|
||||||
row.childNodes[1].className = "rankCol";
|
row.childNodes[1].className = "rankCol";
|
||||||
row.childNodes[1].innerHTML = i + 24 * hiscores.page;
|
row.childNodes[1].innerHTML = i + 24 * hiscores.page;
|
||||||
|
|
||||||
row.childNodes[3].replaceWith(document.createElement("td"));
|
row.childNodes[3].replaceWith(document.createElement("td"));
|
||||||
row.childNodes[3].className = "alL";
|
row.childNodes[3].className = "alL";
|
||||||
row.childNodes[3].innerHTML = `<a href="./hiscores.html${playerData ? "?player=" + playerData.username : ""}${hiscores.getFiltersAsURLparams()}">${playerData ? hiscores.formatName(playerData.username, playerData.iron_mode, playerData.exp_multiplier) : ""}</a>`;
|
row.childNodes[3].innerHTML = `<a href="./hiscores.html${playerData ? "?player=" + playerData.username : ""}${hiscores.getFiltersAsURLparams()}">${playerData ? hiscores.formatName(playerData.username, playerData.iron_mode, playerData.exp_multiplier) : ""}</a>`;
|
||||||
|
|
||||||
row.childNodes[5].replaceWith(document.createElement("td"));
|
row.childNodes[5].replaceWith(document.createElement("td"));
|
||||||
row.childNodes[5].className = "alL";
|
row.childNodes[5].className = "alL";
|
||||||
row.childNodes[5].innerHTML = playerData ? playerData.level : "";
|
row.childNodes[5].innerHTML = playerData ? playerData.level : "";
|
||||||
|
|
||||||
row.childNodes[7].replaceWith(document.createElement("td"));
|
row.childNodes[7].replaceWith(document.createElement("td"));
|
||||||
row.childNodes[7].className = "alL";
|
row.childNodes[7].className = "alL";
|
||||||
row.childNodes[7].innerHTML = playerData ? Math.floor(playerData.xp).toLocaleString() : "";
|
row.childNodes[7].innerHTML = playerData ? Math.floor(playerData.xp).toLocaleString() : "";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
hiscores.loadUserTable = (username) => {
|
hiscores.loadUserTable = (username) => {
|
||||||
username = username.split("%20").join(" ");
|
username = username.split("%20").join(" ");
|
||||||
fetch(`${hiscores.apiURL}/hiscores/playerSkills/${hiscores.world}/${username.toLowerCase()}`)
|
fetch(`${hiscores.apiURL}/hiscores/playerSkills/${hiscores.world}/${username.toLowerCase()}`)
|
||||||
.then(response => response.json())
|
.then(response => response.json())
|
||||||
.then(result => {
|
.then(result => {
|
||||||
document.getElementById('search_name').style.color = 'black';
|
document.getElementById('search_name').style.color = 'black';
|
||||||
hiscores.tableData = result.skills;
|
hiscores.tableData = result.skills;
|
||||||
hiscores.tableInfo = result.info;
|
hiscores.tableInfo = result.info;
|
||||||
hiscores.populatePlayerHSTable();
|
hiscores.populatePlayerHSTable();
|
||||||
hiscores.setHeadSkillText(hiscores.formatName(username, 0, result.info.exp_multiplier, true));
|
hiscores.setHeadSkillText(hiscores.formatName(username, 0, result.info.exp_multiplier, true));
|
||||||
})
|
})
|
||||||
.then(() => {
|
.then(() => {
|
||||||
// Now get the player ranks (done seperately)
|
// Now get the player ranks (done seperately)
|
||||||
fetch(`${hiscores.apiURL}/hiscores/rankedMap/${hiscores.world}`)
|
fetch(`${hiscores.apiURL}/hiscores/rankedMap/${hiscores.world}`)
|
||||||
.then(response => response.json())
|
.then(response => response.json())
|
||||||
.then(result => {
|
.then(result => {
|
||||||
hiscores.populatePlayerRanks(username, result);
|
hiscores.populatePlayerRanks(username, result);
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch(error => {
|
||||||
document.getElementById('search_name').style.color = 'red';
|
document.getElementById('search_name').style.color = 'red';
|
||||||
document.getElementById('search_name').value = 'Player not found!';
|
document.getElementById('search_name').value = 'Player not found!';
|
||||||
console.log('error', error);
|
console.log('error', error);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
hiscores.populatePlayerHSTable = () => {
|
hiscores.populatePlayerHSTable = () => {
|
||||||
switch (Number(hiscores.tableInfo.iron_mode)) {
|
switch (Number(hiscores.tableInfo.iron_mode)) {
|
||||||
case 1:
|
case 1:
|
||||||
hiscores.setHeadSkillIcon("../../site/img/osrsimg/ironman.png");
|
hiscores.setHeadSkillIcon("../../site/img/osrsimg/ironman.png");
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
hiscores.setHeadSkillIcon("../../site/img/osrsimg/hcim.png");
|
hiscores.setHeadSkillIcon("../../site/img/osrsimg/hcim.png");
|
||||||
break;
|
break;
|
||||||
case 3:
|
case 3:
|
||||||
hiscores.setHeadSkillIcon("../../site/img/osrsimg/ultimateironman.png");
|
hiscores.setHeadSkillIcon("../../site/img/osrsimg/ultimateironman.png");
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
hiscores.setHeadSkillIcon("Constitution");
|
hiscores.setHeadSkillIcon("Constitution");
|
||||||
}
|
}
|
||||||
|
|
||||||
for (let i = 1; i <= 24; i++) {
|
for (let i = 1; i <= 24; i++) {
|
||||||
row = document.getElementsByClassName(`row row${i}`)[0];
|
row = document.getElementsByClassName(`row row${i}`)[0];
|
||||||
|
|
||||||
row.childNodes[1].replaceWith(document.createElement("td"));
|
row.childNodes[1].replaceWith(document.createElement("td"));
|
||||||
row.childNodes[1].className = "rankCol";
|
row.childNodes[1].className = "rankCol";
|
||||||
row.childNodes[1].innerHTML = "";
|
row.childNodes[1].innerHTML = "";
|
||||||
|
|
||||||
row.childNodes[3].replaceWith(document.createElement("td"));
|
row.childNodes[3].replaceWith(document.createElement("td"));
|
||||||
row.childNodes[3].className = "alL";
|
row.childNodes[3].className = "alL";
|
||||||
row.childNodes[3].innerHTML = `<a href="./hiscores.html?skill=${i - 1}${hiscores.getFiltersAsURLparams()}">${hiscores.sName[i - 1]}</a>`;
|
row.childNodes[3].innerHTML = `<a href="./hiscores.html?skill=${i - 1}${hiscores.getFiltersAsURLparams()}">${hiscores.sName[i - 1]}</a>`;
|
||||||
|
|
||||||
row.childNodes[5].replaceWith(document.createElement("td"));
|
row.childNodes[5].replaceWith(document.createElement("td"));
|
||||||
row.childNodes[5].className = "alL";
|
row.childNodes[5].className = "alL";
|
||||||
row.childNodes[5].innerHTML = hiscores.tableData[i - 1].static;
|
row.childNodes[5].innerHTML = hiscores.tableData[i - 1].static;
|
||||||
|
|
||||||
row.childNodes[7].replaceWith(document.createElement("td"));
|
row.childNodes[7].replaceWith(document.createElement("td"));
|
||||||
row.childNodes[7].className = "alL";
|
row.childNodes[7].className = "alL";
|
||||||
row.childNodes[7].innerHTML = Math.floor(hiscores.tableData[i - 1].experience).toLocaleString();
|
row.childNodes[7].innerHTML = Math.floor(hiscores.tableData[i - 1].experience).toLocaleString();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
hiscores.populatePlayerRanks = (username, result) => {
|
hiscores.populatePlayerRanks = (username, result) => {
|
||||||
username = username.split(" ").join("_");
|
username = username.split(" ").join("_");
|
||||||
for (let i = 1; i <= 24; i++) {
|
for (let i = 1; i <= 24; i++) {
|
||||||
result[i - 1] = hiscores.filter(result[i - 1]);
|
result[i - 1] = hiscores.filter(result[i - 1]);
|
||||||
row = document.getElementsByClassName(`row row${i}`)[0];
|
row = document.getElementsByClassName(`row row${i}`)[0];
|
||||||
|
|
||||||
row.childNodes[1].replaceWith(document.createElement("td"));
|
row.childNodes[1].replaceWith(document.createElement("td"));
|
||||||
row.childNodes[1].className = "rankCol";
|
row.childNodes[1].className = "rankCol";
|
||||||
let rank = (result[i - 1].findIndex(player => player.username.toLowerCase() === username.toLowerCase()) + 1)
|
let rank = (result[i - 1].findIndex(player => player.username.toLowerCase() === username.toLowerCase()) + 1)
|
||||||
row.childNodes[1].innerHTML = rank ? rank : `<span style="color: rgba(158, 144, 47, 0.5);">Unranked</span>`;
|
row.childNodes[1].innerHTML = rank ? rank : `<span style="color: rgba(158, 144, 47, 0.5);">Unranked</span>`;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
hiscores.loadSkillTable = (skillId) => {
|
hiscores.loadSkillTable = (skillId) => {
|
||||||
fetch(`${hiscores.apiURL}/hiscores/playersBySkill/${hiscores.world}/${skillId}`)
|
fetch(`${hiscores.apiURL}/hiscores/playersBySkill/${hiscores.world}/${skillId}`)
|
||||||
.then(response => response.json())
|
.then(response => response.json())
|
||||||
.then(result => {
|
.then(result => {
|
||||||
result = hiscores.filter(result);
|
result = hiscores.filter(result);
|
||||||
hiscores.tableData = result;
|
hiscores.tableData = result;
|
||||||
hiscores.currentSkillId = skillId;
|
hiscores.currentSkillId = skillId;
|
||||||
hiscores.populateSkillHSTable();
|
hiscores.populateSkillHSTable();
|
||||||
})
|
})
|
||||||
.catch(error => console.log('error', error));
|
.catch(error => console.log('error', error));
|
||||||
}
|
}
|
||||||
|
|
||||||
hiscores.populateSkillHSTable = () => {
|
hiscores.populateSkillHSTable = () => {
|
||||||
hiscores.setHeadSkillText(hiscores.sName[hiscores.currentSkillId]);
|
hiscores.setHeadSkillText(hiscores.sName[hiscores.currentSkillId]);
|
||||||
hiscores.setHeadSkillIcon(hiscores.sName[hiscores.currentSkillId]);
|
hiscores.setHeadSkillIcon(hiscores.sName[hiscores.currentSkillId]);
|
||||||
|
|
||||||
for (let i = 1; i <= 24; i++) {
|
for (let i = 1; i <= 24; i++) {
|
||||||
row = document.getElementsByClassName(`row row${i}`)[0];
|
row = document.getElementsByClassName(`row row${i}`)[0];
|
||||||
const playerData = hiscores.tableData[i + 24 * hiscores.page - 1];
|
const playerData = hiscores.tableData[i + 24 * hiscores.page - 1];
|
||||||
|
|
||||||
row.childNodes[1].replaceWith(document.createElement("td"));
|
row.childNodes[1].replaceWith(document.createElement("td"));
|
||||||
row.childNodes[1].className = "rankCol";
|
row.childNodes[1].className = "rankCol";
|
||||||
row.childNodes[1].innerHTML = i + 24 * hiscores.page;
|
row.childNodes[1].innerHTML = i + 24 * hiscores.page;
|
||||||
|
|
||||||
row.childNodes[3].replaceWith(document.createElement("td"));
|
row.childNodes[3].replaceWith(document.createElement("td"));
|
||||||
row.childNodes[3].className = "alL";
|
row.childNodes[3].className = "alL";
|
||||||
row.childNodes[3].innerHTML = `<a href="./hiscores.html?player=${playerData.username}${hiscores.getFiltersAsURLparams()}">${playerData ? hiscores.formatName(playerData.username, playerData.iron_mode, playerData.exp_multiplier) : ""}</a>`;
|
row.childNodes[3].innerHTML = `<a href="./hiscores.html?player=${playerData.username}${hiscores.getFiltersAsURLparams()}">${playerData ? hiscores.formatName(playerData.username, playerData.iron_mode, playerData.exp_multiplier) : ""}</a>`;
|
||||||
|
|
||||||
row.childNodes[5].replaceWith(document.createElement("td"));
|
row.childNodes[5].replaceWith(document.createElement("td"));
|
||||||
row.childNodes[5].className = "alL";
|
row.childNodes[5].className = "alL";
|
||||||
row.childNodes[5].innerHTML = playerData ? playerData.level : "";
|
row.childNodes[5].innerHTML = playerData ? playerData.level : "";
|
||||||
|
|
||||||
row.childNodes[7].replaceWith(document.createElement("td"));
|
row.childNodes[7].replaceWith(document.createElement("td"));
|
||||||
row.childNodes[7].className = "alL";
|
row.childNodes[7].className = "alL";
|
||||||
row.childNodes[7].innerHTML = playerData ? Math.floor(playerData.xp).toLocaleString() : "";
|
row.childNodes[7].innerHTML = playerData ? Math.floor(playerData.xp).toLocaleString() : "";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* In URL ?player=guthix, passing param "player" will return "guthix"
|
* In URL ?player=guthix, passing param "player" will return "guthix"
|
||||||
* In same example, passing param "page" will return null
|
* In same example, passing param "page" will return null
|
||||||
*/
|
*/
|
||||||
function getParam(param) {
|
function getParam(param) {
|
||||||
param = window.location.search.split("?").find(p => {
|
param = window.location.search.split("?").find(p => {
|
||||||
return p.startsWith(`${param}`);
|
return p.startsWith(`${param}`);
|
||||||
})
|
})
|
||||||
return param ? param.split("=")[1] : null;
|
return param ? param.split("=")[1] : null;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (getParam("world")) {
|
if (getParam("world")) {
|
||||||
hiscores.world = Number(getParam("world"));
|
hiscores.world = Number(getParam("world"));
|
||||||
}
|
}
|
||||||
if (getParam("page")) {
|
if (getParam("page")) {
|
||||||
hiscores.page = Number(getParam("page"));
|
hiscores.page = Number(getParam("page"));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (getParam("skill")) {
|
if (getParam("skill")) {
|
||||||
hiscores.loadSkillTable(getParam("skill"));
|
hiscores.loadSkillTable(getParam("skill"));
|
||||||
} else if (getParam("player")) {
|
} else if (getParam("player")) {
|
||||||
hiscores.loadUserTable(getParam("player"));
|
hiscores.loadUserTable(getParam("player"));
|
||||||
} else {
|
} else {
|
||||||
hiscores.loadDefaultHSTable();
|
hiscores.loadDefaultHSTable();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (getParam("iron")) {
|
if (getParam("iron")) {
|
||||||
document.getElementById('check_iron').checked = getParam("iron") === "true";
|
document.getElementById('check_iron').checked = getParam("iron") === "true";
|
||||||
|
|
||||||
document.getElementById("filter_submit").value = "Filter";
|
document.getElementById("filter_submit").value = "Filter";
|
||||||
document.getElementById("filter_div").style.height = "134px";
|
document.getElementById("filter_div").style.height = "134px";
|
||||||
// Add disable button
|
// Add disable button
|
||||||
document.getElementById("filter_clear_div").innerHTML = `<input id="filter_clear" type="submit" name="submit" class="buttonmedium" value="Clear" style="margin-top: 2px;">`
|
document.getElementById("filter_clear_div").innerHTML = `<input id="filter_clear" type="submit" name="submit" class="buttonmedium" value="Clear" style="margin-top: 2px;">`
|
||||||
} else {
|
} else {
|
||||||
document.getElementById("filter_clear_div").innerHTML = "";
|
document.getElementById("filter_clear_div").innerHTML = "";
|
||||||
// Change width to 134 minus button size
|
// Change width to 134 minus button size
|
||||||
document.getElementById("filter_div").style.height = "110px";
|
document.getElementById("filter_div").style.height = "110px";
|
||||||
}
|
}
|
||||||
if (getParam("ultiron")) {
|
if (getParam("ultiron")) {
|
||||||
document.getElementById('check_ultiron').checked = getParam("ultiron") === "true";
|
document.getElementById('check_ultiron').checked = getParam("ultiron") === "true";
|
||||||
}
|
}
|
||||||
if (getParam("hciron")) {
|
if (getParam("hciron")) {
|
||||||
document.getElementById('check_hciron').checked = getParam("hciron") === "true";
|
document.getElementById('check_hciron').checked = getParam("hciron") === "true";
|
||||||
}
|
}
|
||||||
if (getParam("maxXP")) {
|
if (getParam("maxXP")) {
|
||||||
document.getElementById('maxXP').value = getParam("maxXP");
|
document.getElementById('maxXP').value = getParam("maxXP");
|
||||||
document.getElementById('maxXPoutput').innerHTML = getParam("maxXP");
|
document.getElementById('maxXPoutput').innerHTML = getParam("maxXP");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
hiscores.initializePageArrows();
|
hiscores.initializePageArrows();
|
||||||
hiscores.initalizeRightsideButtons();
|
hiscores.initalizeRightsideButtons();
|
||||||
hiscores.linkLeftTabSkillNames();
|
hiscores.linkLeftTabSkillNames();
|
||||||
hiscores.changePlaqueWorld();
|
hiscores.changePlaqueWorld();
|
||||||
hiscores.updateLegendText();
|
hiscores.updateLegendText();
|
||||||
hiscores.addSkillsAndActivityFilters();
|
hiscores.addSkillsAndActivityFilters();
|
Loading…
Reference in New Issue
Block a user