Formatting html files

This commit is contained in:
joeyak 2019-03-17 17:31:48 -04:00
parent 417db785ce
commit 708056a86e
3 changed files with 79 additions and 72 deletions

View File

@ -10,9 +10,11 @@
<script type="application/javascript" src="/static/js/both.js"></script>
{{template "header" .}}
</head>
<body class="scrollbar">
<div class="root">
{{template "body" .}}
</div>
</body>
</html>

View File

@ -6,14 +6,16 @@
<h2>Commands</h2>
<dl>
{{range $k, $v := .Commands}}
<dt>{{$k}}</dt><dd>{{$v}}</dd>
<dt>{{$k}}</dt>
<dd>{{$v}}</dd>
{{end}}
</dl>
{{if .ModCommands}}
<h2>Moderator</h2>
<dl>
{{range $k, $v := .ModCommands}}
<dt>{{$k}}</dt><dd>{{$v}}</dd>
<dt>{{$k}}</dt>
<dd>{{$v}}</dd>
{{end}}
</dl>
{{end}}
@ -21,7 +23,8 @@
<h2>Administrator</h2>
<dl>
{{range $k, $v := .AdminCommands}}
<dt>{{$k}}</dt><dd>{{$v}}</dd>
<dt>{{$k}}</dt>
<dd>{{$v}}</dd>
{{end}}
</dl>
{{end}}

View File

@ -35,8 +35,8 @@
{{define "body"}}
{{ if .Video }}
<video id="videoElement" controls autoplay x5-video-player-type="h5" x5-video-player-fullscreen="true"
playsinline webkit-playsinline>
<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>
{{ end }}
@ -64,7 +64,9 @@
<textarea id="msg"></textarea>
</div>
<button id="send" class="button" onclick="sendChat();">Send</button>
<div><!-- This is an empty div so there can be an empty space below the send button --></div>
<div>
<!-- This is an empty div so there can be an empty space below the send button -->
</div>
</div>
<div id="joinbox">
<p style="color:#e5e0e5">Please enter your name to Join the chat</P>