just some more updates

This commit is contained in:
jenzur
2019-07-18 20:26:33 +02:00
parent 01405d0532
commit cf49e6546d
8 changed files with 139 additions and 86 deletions
+4 -4
View File
@@ -52,13 +52,13 @@ class Maps extends React.Component {
window.removeEventListener("scroll", this.scrollListener);
}
findSecondLast(array) {
return array[array.length - 2];
findLateIndex(array) {
return array[array.length - 5];
}
handleScroll = () => {
if (this.state.breakload && this.state.fetchsize > this.state.mapTimes.length) {
const player = this.findSecondLast(this.state.mapTimes);
const player = this.findLateIndex(this.state.mapTimes);
var lastLi = document.getElementById('maps/' + player.steamID);
var lastLiOffset = lastLi.offsetTop + lastLi.clientHeight;
var pageOffset = window.pageYOffset + window.innerHeight;
@@ -99,7 +99,7 @@ class Maps extends React.Component {
</p>
<p className="text-center ">
<NavLink to={'/leaderboard/'}>
<b>leaderboard</b>
<b>LeaderBoard</b>
</NavLink>
</p>
</div>