More minor UI tweaks
This commit is contained in:
parent
668f6cba15
commit
6c50fb31e0
5 changed files with 105 additions and 105 deletions
182
app/rice-box.go
182
app/rice-box.go
File diff suppressed because one or more lines are too long
2
static/import.css
vendored
2
static/import.css
vendored
|
@ -1,7 +1,7 @@
|
|||
.import-container {
|
||||
display: inline-block;
|
||||
max-width: 100%;
|
||||
margin-top: 50px;
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
.import-wrapper {
|
||||
|
|
|
@ -95,7 +95,7 @@ main {
|
|||
display: inline-block;
|
||||
margin-left: 10px;
|
||||
width: 290px;
|
||||
height: 543px;
|
||||
height: 607px;;
|
||||
background: #282a2e;
|
||||
box-shadow: 0 3px 7px 0 rgba(0, 0, 0, 0.2);
|
||||
overflow-x: hidden;
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
.upload-container {
|
||||
display: inline-block;
|
||||
max-width: 100%;
|
||||
margin-top: 50px;
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
.upload-wrapper {
|
||||
|
|
|
@ -1,17 +1,17 @@
|
|||
{{ define "content" }}
|
||||
{{ $playing := .Playing }}
|
||||
<div class="topnav" id="myTopnav">
|
||||
<a href="javascript:void(0);" class="icon" onclick="myFunction()">
|
||||
<i class="fa fa-cogs"></i>
|
||||
</a>
|
||||
<a {{ if eq $.Quality "" }}class="active"{{ end }} href="/v/{{ $playing.ID }}">fullHD</a>
|
||||
<a {{ if eq $.Quality "720p" }}class="active"{{ end }} href="/v/{{ $playing.ID }}?quality=720p">720p</a>
|
||||
<a {{ if eq $.Quality "480p" }}class="active"{{ end }} href="/v/{{ $playing.ID }}?quality=480p">480p</a>
|
||||
<a {{ if eq $.Quality "360p" }}class="active"{{ end }} href="/v/{{ $playing.ID }}?quality=360p">360p</a>
|
||||
<a {{ if eq $.Quality "240p" }}class="active"{{ end }} href="/v/{{ $playing.ID }}?quality=240p">240p</a>
|
||||
</div>
|
||||
|
||||
<div id="player">
|
||||
<div class="topnav" id="myTopnav">
|
||||
<a href="javascript:void(0);" class="icon" onclick="myFunction()">
|
||||
<i class="fa fa-cogs"></i>
|
||||
</a>
|
||||
<a {{ if eq $.Quality "" }}class="active"{{ end }} href="/v/{{ $playing.ID }}">fullHD</a>
|
||||
<a {{ if eq $.Quality "720p" }}class="active"{{ end }} href="/v/{{ $playing.ID }}?quality=720p">720p</a>
|
||||
<a {{ if eq $.Quality "480p" }}class="active"{{ end }} href="/v/{{ $playing.ID }}?quality=480p">480p</a>
|
||||
<a {{ if eq $.Quality "360p" }}class="active"{{ end }} href="/v/{{ $playing.ID }}?quality=360p">360p</a>
|
||||
<a {{ if eq $.Quality "240p" }}class="active"{{ end }} href="/v/{{ $playing.ID }}?quality=240p">240p</a>
|
||||
</div>
|
||||
|
||||
{{ if $playing.ID }}
|
||||
<video id="video" controls preload="metadata" poster="/t/{{ $playing.ID}}">
|
||||
<source src="/v/{{ $playing.ID }}.mp4?quality={{ $.Quality }}" type="video/mp4" />
|
||||
|
|
Loading…
Reference in a new issue