Skip to content

Commit

Permalink
Scroll to current player when opening highscore page
Browse files Browse the repository at this point in the history
  • Loading branch information
lanedirt committed Jan 8, 2025
1 parent 21720e4 commit 663e4c8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions resources/views/ingame/highscore/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@

<script type="text/javascript">
highscoreContentUrl = '{{ route('highscore.ajax') }}';
var userWantsFocus = false;
var userWantsFocus = true;
</script>

<div id="inhalt">
<div id="highscoreContent">
<div class="header">
Expand Down
4 changes: 2 additions & 2 deletions resources/views/ingame/highscore/players_points.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
<script type="text/javascript">
var currentCategory = 1;
var currentType = {{ $highscoreCurrentType }};
var searchPosition = 113970;
var searchPosition = {{ $player->getId() }};
var site = {{ $highscoreCurrentPage }};
var searchSite = {{ $highscoreCurrentPage }};
var resultsPerPage = 100;
var searchRelId = 113970;
var searchRelId = {{ $player->getId() }};
</script>

<div class="pagebar">
Expand Down
4 changes: 2 additions & 2 deletions resources/views/ingame/layouts/main.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -556,8 +556,8 @@ function redirectPremium() {
location.href = "{{ route('premium.index', ['showDarkMatter' => 1]) }}#TODO_premium&showDarkMatter=1";
}
var playerId = "1";
var playerName = "Admin";
var playerId = "{{ $currentPlayer->getId() }}";
var playerName = "{{ $currentPlayer->getUsername() }}";
var player = {
"playerId": {{ $currentPlayer->getId() }},
"name": "{{ $currentPlayer->getUsername() }}",
Expand Down

0 comments on commit 663e4c8

Please sign in to comment.