-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
280 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -77,13 +77,13 @@ | |
<div class="modal-content"> | ||
<div class="modal-header"> | ||
<h5 class="modal-title">Players</h5> | ||
@if(RequestModal != null) | ||
{ | ||
<button class="btn-close" data-bs-target="#@RequestModal" data-bs-toggle="modal"></button> | ||
} else | ||
{ | ||
<button class="btn-close" data-bs-dismiss="modal"></button> | ||
} | ||
@if(RequestModal != null) | ||
{ | ||
<button class="btn-close" data-bs-target="#@RequestModal" data-bs-toggle="modal"></button> | ||
} else | ||
{ | ||
<button class="btn-close" data-bs-dismiss="modal"></button> | ||
} | ||
</div> | ||
<div class="modal-body"> | ||
@if (FullReplay is not null && FullReplay.RoundParticipants is not null) | ||
|
@@ -112,12 +112,52 @@ | |
</div> | ||
</div> | ||
</div> | ||
<button class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#[email protected]" id="[email protected]"> | ||
View Timeline | ||
</button> | ||
<div class="modal fade modal-lg" id="[email protected]" tabindex="-1" aria-labelledby="[email protected]" aria-hidden="true" style="--bs-modal-width: 2000px;"> | ||
<div class="modal-dialog"> | ||
<div class="modal-content"> | ||
<div class="modal-header"> | ||
<h5 class="modal-title">Events</h5> | ||
@if(RequestModal != null) | ||
{ | ||
<button class="btn-close" data-bs-target="#@RequestModal" data-bs-toggle="modal"></button> | ||
} else | ||
{ | ||
<button class="btn-close" data-bs-dismiss="modal"></button> | ||
} | ||
</div> | ||
<div class="modal-body"> | ||
<div> | ||
<div id="[email protected]"></div> | ||
<div id="[email protected]"></div> | ||
</div> | ||
</div> | ||
@if(RequestModal != null) | ||
{ | ||
<div class="modal-footer"> | ||
<button class="btn btn-primary" data-bs-target="#@RequestModal" data-bs-toggle="modal"> | ||
Return | ||
</button> | ||
</div> | ||
} else | ||
{ | ||
<div class="modal-footer"> | ||
<button class="btn btn-primary" data-bs-dismiss="modal"> | ||
Close | ||
</button> | ||
</div> | ||
} | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<a href="@Replay.Link" target="_blank" class="btn btn-primary">Download</a> | ||
|
||
|
||
@if (FullReplay is null || FullReplay.RoundParticipants is null || FullReplay.RoundEndText is null) { | ||
<script> | ||
@if (FullReplay is null || FullReplay.RoundParticipants is null || FullReplay.RoundEndText is null || FullReplay.Events is null) { | ||
<script> | ||
document.addEventListener('DOMContentLoaded', function() { | ||
const modalPlayers = document.getElementById("[email protected]") | ||
modalPlayers.addEventListener('click', function() { | ||
|
@@ -136,6 +176,14 @@ | |
if (endTextElement.innerHTML == "Loading...") | ||
loadDetails(players, endTextElement, @Replay.Id); | ||
}); | ||
|
||
const modalTimeline = document.getElementById("[email protected]") | ||
modalTimeline.addEventListener('click', function() { | ||
const timeline = document.getElementById("[email protected]"); | ||
const timelineDetails = document.getElementById("[email protected]"); | ||
if (timeline.innerHTML == "") | ||
loadTimeline(timeline, @Replay.Id, timelineDetails); | ||
}); | ||
}); | ||
</script> | ||
} | ||
|
Oops, something went wrong.