181 lines
5.0 KiB
HTML
181 lines
5.0 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
|
|
<title>
|
|
{{ session.demoname }}
|
|
</title>
|
|
|
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-+0n0xVW2eSR5OomGNYDnhzAbDsOXxcvSN1TPprVMTNDbiYZCxYbOOl7+AMvyTG2x" crossorigin="anonymous">
|
|
<link rel="stylesheet" href="/static/css/main.css">
|
|
<script src="https://kit.fontawesome.com/ef69927139.js" crossorigin="anonymous"></script>
|
|
</head>
|
|
|
|
|
|
<body>
|
|
<main>
|
|
|
|
<div class="d-flex flex-column flex-grow-1">
|
|
<div class="btn-toolbar" role="toolbar" style="min-width: max-content;">
|
|
<div class="btn-group me-2" role="group">
|
|
<button type="button" class="btn-pause btn btn-outline-warning" title="Pause">
|
|
<i class="fas fa-pause"></i>
|
|
</button>
|
|
<button type="button" class="btn-play btn btn-outline-success" title="Play">
|
|
<i class="fas fa-play"></i>
|
|
</button>
|
|
<button type="button" class="btn-stop btn btn-outline-danger" title="Stop">
|
|
<i class="fas fa-stop"></i>
|
|
</button>
|
|
<button
|
|
type="button"
|
|
class="btn-rewind btn btn-outline-success"
|
|
title="Rewind"
|
|
>
|
|
<i class="fas fa-fast-backward"></i>
|
|
</button>
|
|
<button
|
|
type="button"
|
|
class="btn-fast-forward btn btn-outline-success"
|
|
title="Fast forward"
|
|
>
|
|
<i class="fas fa-fast-forward"></i>
|
|
</button>
|
|
</div>
|
|
|
|
<div class="btn-group me-2" role="group">
|
|
<button type="button" title="Zoom in" class="btn-zoom-in btn btn-outline-dark">
|
|
<i class="fas fa-search-plus" aria-hidden="true"></i>
|
|
</button>
|
|
<button type="button" title="Zoom out" class="btn-zoom-out btn btn-outline-dark">
|
|
<i class="fas fa-search-minus" aria-hidden="true"></i>
|
|
</button>
|
|
</div>
|
|
|
|
<div class="btn-group me-2">
|
|
<div style="margin: 6px">
|
|
<input
|
|
type="range"
|
|
min="0"
|
|
max="100"
|
|
value="50"
|
|
class="master-gain form-range mw-50"
|
|
id="master-gain"
|
|
/>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="btn-group me-2">
|
|
<div style="margin: 6px">
|
|
<span class="audio-pos font-monospace" aria-label="Audio position">00:00:00.0</span>
|
|
</div>
|
|
|
|
<div style="margin: 6px">
|
|
<span class="audio-pos-2 font-monospace" aria-label="Audio position">00:00:00.0</span>
|
|
</div>
|
|
|
|
<div class="form-check form-switch">
|
|
<input class="form-check-input" type="checkbox" id="autoscroll_voice" checked>
|
|
<label class="form-check-label" for="autoscroll_voice">Voice</label>
|
|
</div>
|
|
|
|
<div class="form-check form-switch">
|
|
<label class="form-check-label" for="autoscroll_chat">Chat</label>
|
|
<input class="form-check-input" type="checkbox" id="autoscroll_chat" checked>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="btn-group me-2">
|
|
<button type="button" title="Download the selection as Wav file" class="btn btn-download btn-outline-primary">
|
|
<i class="fas fa-download" aria-hidden="true"></i>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="overflow-auto" id="playlist">
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="d-flex flex-column overflow-auto" id="chat">
|
|
<table class="table table-sm text-nowrap">
|
|
<thead>
|
|
<tr>
|
|
<th scope="col">Time</th>
|
|
<th scope="col">SteamID</th>
|
|
<th scope="col">Name</th>
|
|
<th scope="col">Message</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{%- for chat in chats %}
|
|
<tr>
|
|
<td onclick="jumpToGameTick({{ chat.tick }})">
|
|
{{ (chat.tick * session.tickinterval) | to_duration }}
|
|
</td>
|
|
<td>{{ chat.player_guid }}</td>
|
|
<td>{{ chat.name }}</td>
|
|
<td>{{ chat.chat }}</td>
|
|
</tr>
|
|
{%- endfor %}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
</main>
|
|
|
|
|
|
<script
|
|
src="https://code.jquery.com/jquery-3.6.0.min.js"
|
|
integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4="
|
|
crossorigin="anonymous"
|
|
></script>
|
|
|
|
<script
|
|
src="/static/js/waveform-playlist.var.js?v=4.0.1"
|
|
></script>
|
|
|
|
<script type="text/javascript">
|
|
var g_session = {{ session.asdict() | to_json | safe }};
|
|
|
|
var g_player_sessions = {
|
|
{%- for guid, psess in player_sessions.items() %}
|
|
"{{ guid }}": {{ psess.asdict(exclude=['player_guid', 'session_id']) | to_json | safe }},
|
|
{%- endfor %}
|
|
};
|
|
|
|
var g_chats = [
|
|
{%- for chat in chats %}
|
|
{{ chat.asdict(exclude=['id', 'session_id']) | to_json | safe }},
|
|
{%- endfor %}
|
|
];
|
|
|
|
var g_events = [
|
|
{%- for event in events %}
|
|
{{ event.asdict(exclude=['id', 'session_id']) | to_json | safe }},
|
|
{%- endfor %}
|
|
];
|
|
</script>
|
|
|
|
<script
|
|
src="/static/js/main.js"
|
|
></script>
|
|
|
|
<script type="text/javascript">
|
|
playlist.load([
|
|
{%- for guid, psess in player_sessions.items() %}
|
|
{%- if psess.voicetime > 0 %}
|
|
{src: "/static/css-ze-parsed/{{ session.demoname }}/voice/{{ guid }}.demopus", name: "{{ guid }}", info: "{{ psess.player.name }}"},
|
|
{%- endif -%}
|
|
{% endfor %}
|
|
]).then(function() {
|
|
onFinishedLoading();
|
|
});
|
|
</script>
|
|
|
|
</body>
|
|
</html>
|