Skip to content

Commit

Permalink
move summer contest button to bottom of page
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredcosulich committed Jul 6, 2023
1 parent e072a1a commit c8e1365
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
1 change: 1 addition & 0 deletions build/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1029,6 +1029,7 @@ function showContest() {
addClass(eByClass("contest-button"), "selected");
addClass(eById("leaderboard"), 'contest')
leaderboardType = "contest"
window.scrollTo(0, 0);
}

const initializeClicks = () => {
Expand Down
9 changes: 5 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -162,10 +162,6 @@ <h1 style="margin-top: 24px; font-weight: 800;">Sui Summer Contest</h1>
<div class="play-button header-button selected">
Play
</div>
<div class="contest-button header-button">
Summer Contest
<div class="during-contest">New</div>
</div>
<div class="leaderboard-button header-button">
Leaderboard
</div>
Expand Down Expand Up @@ -747,6 +743,11 @@ <h2 style="font-size: large;">In the meantime practice your game!</h2>
</div>
</div>
</div>
<div>
<div class="contest-button text-center">
Previous Contest Results
</div>
</div>

<script src="build/index.js"></script>
</body>
Expand Down
1 change: 1 addition & 0 deletions js/game.js
Original file line number Diff line number Diff line change
Expand Up @@ -639,6 +639,7 @@ function showContest() {
addClass(eByClass("contest-button"), "selected");
addClass(eById("leaderboard"), 'contest')
leaderboardType = "contest"
window.scrollTo(0, 0);
}

const initializeClicks = () => {
Expand Down
2 changes: 2 additions & 0 deletions style/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -1304,6 +1304,8 @@ a:visited.link-button {
gap: 12px;
align-items: center;
height: 24px;
cursor: pointer;
color: #83808e;
}

.contest-button div {
Expand Down

0 comments on commit c8e1365

Please sign in to comment.