43 lines
1.1 KiB
HTML
43 lines
1.1 KiB
HTML
{{ if .NoStream }}
|
||
|
||
<div id="nostream" class="columns">
|
||
<div class="column notif">
|
||
<article class="notification is-danger is-link">
|
||
Для данной комнаты нет стримов. <br>
|
||
</article>
|
||
</div>
|
||
</div>
|
||
{{ else }}
|
||
|
||
{{ template "partial/chat" . }}
|
||
|
||
<div class="viewer">
|
||
<p class="icon-users" id="viewer-count"></p>
|
||
</div>
|
||
|
||
<div id="peers">
|
||
<div class="columns is-multiline" id="videos">
|
||
<div id="noonestream" class="column notif">
|
||
<article class="notification is-primary is-light">
|
||
В данной комнате не найдено активных стримов. <br>
|
||
Ожидайте.
|
||
</article>
|
||
</div>
|
||
<div id="nocon" class="column notif">
|
||
<article class="notification is-danger">
|
||
Подключение закрыто! <br>
|
||
Обновите страницу.
|
||
</article>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<script>
|
||
let StreamWebsocketAddr = "{{.StreamWebsocketAddr}}"
|
||
let ChatWebsocketAddr = "{{.ChatWebsocketAddr}}"
|
||
let ViewerWebsocketAddr = "{{.ViewerWebsocketAddr}}"
|
||
</script>
|
||
<script src="/js/stream.js"></script>
|
||
<script src="/js/chat.js"></script>
|
||
<script src="/js/viewer.js"></script>
|
||
{{ end }} |