progress
This commit is contained in:
166
demweb/templates/session.html
Normal file
166
demweb/templates/session.html
Normal file
@ -0,0 +1,166 @@
|
||||
<!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>
|
||||
<nav class="navbar navbar-expand-md navbar-dark bg-dark mb-4">
|
||||
<div class="container-fluid">
|
||||
<a class="navbar-brand" href="#">Top navbar</a>
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarCollapse" aria-controls="navbarCollapse" aria-expanded="false" aria-label="Toggle navigation">
|
||||
<span class="navbar-toggler-icon"></span>
|
||||
</button>
|
||||
<div class="collapse navbar-collapse" id="navbarCollapse">
|
||||
<ul class="navbar-nav me-auto mb-2 mb-md-0">
|
||||
<li class="nav-item">
|
||||
<a class="nav-link active" aria-current="page" href="#">Home</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="#">Link</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link disabled" href="#" tabindex="-1" aria-disabled="true">Disabled</a>
|
||||
</li>
|
||||
</ul>
|
||||
<form class="d-flex">
|
||||
<input class="form-control me-2" type="search" placeholder="Search" aria-label="Search">
|
||||
<button class="btn btn-outline-success" type="submit">Search</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<main class="container-fluid">
|
||||
|
||||
<div class="btn-toolbar" role="toolbar">
|
||||
<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 style="margin: 6px">
|
||||
<span class="audio-pos" aria-label="Audio position">00:00:00.0</span>
|
||||
</div>
|
||||
|
||||
<div style="margin: 6px">
|
||||
<span class="audio-pos-2" aria-label="Audio position">00:00:00.0</span>
|
||||
</div>
|
||||
|
||||
<div class="form-check form-switch">
|
||||
<input class="form-check-input automatic-scroll" type="checkbox" id="automatic_scroll" checked>
|
||||
<label class="form-check-label" for="automatic_scroll">Autoscroll</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div id="playlist">
|
||||
</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 }}"},
|
||||
{%- endif -%}
|
||||
{% endfor %}
|
||||
]).then(function() {
|
||||
onFinishedLoading();
|
||||
});
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
Reference in New Issue
Block a user