Crackord/fullstream/app/views/stream.html

43 lines
1.1 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{{ 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 }}