2019-03-16 21:15:45 +01:00
|
|
|
{{define "header"}}
|
2019-03-23 13:49:00 +01:00
|
|
|
{{if .Chat}}
|
2019-03-17 22:31:48 +01:00
|
|
|
<script type="application/javascript" src="/static/js/wasm_exec.js"></script>
|
|
|
|
<script type="application/javascript" src="/static/js/chat.js"></script>
|
|
|
|
<script>
|
2019-03-23 13:49:00 +01:00
|
|
|
maxMessageCount = {{.MessageHistoryCount }}
|
2019-03-17 22:31:48 +01:00
|
|
|
</script>
|
|
|
|
<style>
|
|
|
|
.root {
|
|
|
|
display: grid;
|
|
|
|
}
|
|
|
|
</style>
|
2019-03-23 13:49:00 +01:00
|
|
|
{{end}}
|
2019-03-12 06:53:51 +01:00
|
|
|
|
2019-03-23 13:49:00 +01:00
|
|
|
{{if .Video}}
|
2019-03-17 22:31:48 +01:00
|
|
|
<script type="application/javascript" src="/static/js/flv.min.js"></script>
|
|
|
|
<script type="application/javascript" src="/static/js/video.js"></script>
|
2019-03-23 13:49:00 +01:00
|
|
|
{{if not .Chat}}
|
2019-03-17 22:31:48 +01:00
|
|
|
<style>
|
|
|
|
#videoElement {
|
|
|
|
height: 99vh;
|
|
|
|
}
|
|
|
|
</style>
|
2019-03-23 13:49:00 +01:00
|
|
|
{{end}}
|
|
|
|
{{end}}
|
2019-03-16 15:13:30 +01:00
|
|
|
|
2019-03-23 13:49:00 +01:00
|
|
|
{{if and .Video .Chat}}
|
2019-03-17 22:31:48 +01:00
|
|
|
<style>
|
|
|
|
.root {
|
|
|
|
grid-template-columns: 5fr 1fr;
|
|
|
|
}
|
|
|
|
</style>
|
2019-03-23 13:49:00 +01:00
|
|
|
{{end}}
|
2019-03-16 21:15:45 +01:00
|
|
|
{{end}}
|
2019-03-10 21:45:10 +01:00
|
|
|
|
2019-03-16 21:15:45 +01:00
|
|
|
{{define "body"}}
|
2019-03-23 13:49:00 +01:00
|
|
|
{{if .Video}}
|
2019-03-17 22:31:48 +01:00
|
|
|
<video id="videoElement" controls autoplay x5-video-player-type="h5" x5-video-player-fullscreen="true" playsinline
|
|
|
|
webkit-playsinline>
|
|
|
|
Your browser is too old and doesn't support HTML5 video.
|
|
|
|
</video>
|
2019-03-23 13:49:00 +01:00
|
|
|
{{end}}
|
2019-03-12 06:53:51 +01:00
|
|
|
|
2019-03-23 13:49:00 +01:00
|
|
|
{{if .Chat}}
|
2019-03-17 22:31:48 +01:00
|
|
|
<div id="chatwindow">
|
2019-03-20 03:56:01 +01:00
|
|
|
<div id="notifyBox"></div>
|
2019-03-17 22:31:48 +01:00
|
|
|
<div id="chat" style="display: none;">
|
2019-03-20 03:56:01 +01:00
|
|
|
<div id="optionBox">Please hover to view options</div>
|
2019-03-17 22:31:48 +01:00
|
|
|
<div id="hidden">
|
|
|
|
<div id="chatButtons">
|
2019-03-23 20:37:48 +01:00
|
|
|
<input type="button" class="button pretty-button" onclick="auth();" value="Auth" />
|
|
|
|
<input type="button" class="button pretty-button" onclick="help();" value="Help" />
|
|
|
|
<input type="button" class="button pretty-button" onclick="showColors(true);" value="Color" />
|
|
|
|
<input type="button" class="button pretty-button" onclick="nick();" value="Nick" />
|
2019-03-23 13:49:00 +01:00
|
|
|
{{if .Video}}
|
2019-03-23 20:37:48 +01:00
|
|
|
<input type="button" class="button pretty-button" onclick="initPlayer();" value="Reload Player" />
|
2019-03-23 13:49:00 +01:00
|
|
|
{{end}}
|
2019-03-16 15:13:30 +01:00
|
|
|
</div>
|
2019-03-17 22:31:48 +01:00
|
|
|
<hr />
|
2019-03-23 20:37:48 +01:00
|
|
|
<div id="hiddencolor" class="hiddendiv">
|
|
|
|
<div class="range-div" style="background-image: linear-gradient(to right, transparent, red);">
|
|
|
|
<input id="colorRed" type="range" min="0" max="255" value="0" oninput="updateColor();" />
|
|
|
|
<span id="colorRedLabel"></span>
|
|
|
|
</div>
|
|
|
|
<div class="range-div" style="background-image: linear-gradient(to right, transparent, green);">
|
|
|
|
<input id="colorGreen" type="range" min="0" max="255" value="0" oninput="updateColor();" />
|
|
|
|
<span id="colorGreenLabel"></span>
|
|
|
|
</div>
|
|
|
|
<div class="range-div" style="background-image: linear-gradient(to right, transparent, blue);">
|
|
|
|
<input id="colorBlue" type="range" min="0" max="255" value="0" oninput="updateColor();" />
|
|
|
|
<span id="colorBlueLabel"></span>
|
|
|
|
</div>
|
|
|
|
<div id="colorName" class="range-div" style="font-weight: bold;">
|
|
|
|
NAME
|
|
|
|
</div>
|
|
|
|
<div id="colorWarning" class="range-div contrast">
|
|
|
|
</div>
|
|
|
|
<dvi class="range-div">
|
|
|
|
<input id="colorSubmit" type="button" class="button pretty-button" value="Select"
|
|
|
|
onclick="changeColor();" />
|
|
|
|
</dvi>
|
|
|
|
</div>
|
2019-03-16 15:13:30 +01:00
|
|
|
</div>
|
2019-03-18 03:35:07 +01:00
|
|
|
<a id="playing" target="_blank"></a>
|
2019-03-17 22:31:48 +01:00
|
|
|
<div id="messages" class="scrollbar"></div>
|
|
|
|
<div id="msgbox">
|
|
|
|
<div id="suggestions"></div>
|
|
|
|
<textarea id="msg"></textarea>
|
|
|
|
</div>
|
2019-03-23 20:37:48 +01:00
|
|
|
<input id="send" type="button" class="button" onclick="sendChat();" value="Send" />
|
2019-03-17 22:31:48 +01:00
|
|
|
<div>
|
|
|
|
<!-- This is an empty div so there can be an empty space below the send button -->
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div id="joinbox">
|
2019-03-18 03:35:07 +01:00
|
|
|
<div style="color: #e5e0e5; text-align: center;">Please enter your name<br />to join the chat</div>
|
|
|
|
<div>
|
2019-03-23 20:37:48 +01:00
|
|
|
<input id="name" type="text" maxlength="36">
|
|
|
|
<input id="join" type="button" class="button pretty-button" onclick="join();" value="Join" />
|
2019-03-18 03:35:07 +01:00
|
|
|
</div>
|
2019-03-17 22:31:48 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2019-03-23 13:49:00 +01:00
|
|
|
{{end}}
|
2019-03-17 22:31:48 +01:00
|
|
|
{{end}}
|