mirror of
https://github.com/KevinMidboe/zoff.git
synced 2026-01-01 23:26:18 +00:00
Added a prettier loader to embedded players
This commit is contained in:
@@ -22,6 +22,20 @@
|
|||||||
padding-top: 3px;
|
padding-top: 3px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.site_loader {
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
margin: auto;
|
||||||
|
bottom: 0;
|
||||||
|
right: 0;
|
||||||
|
background: rgba(0,0,0,.5);
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
z-index: 9;
|
||||||
|
}
|
||||||
|
|
||||||
.prev, .skip {
|
.prev, .skip {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
|||||||
@@ -193,7 +193,10 @@ function setup_now_playing_listener() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function setup_list_listener() {
|
function setup_list_listener() {
|
||||||
socket.on("channel", List.channel_function);
|
socket.on("channel", function(msg) {
|
||||||
|
Helper.addClass(".site_loader", "hide");
|
||||||
|
List.channel_function(msg);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function setVolume(val) {
|
function setVolume(val) {
|
||||||
|
|||||||
@@ -49,9 +49,6 @@
|
|||||||
</div>
|
</div>
|
||||||
<div id="playlist">
|
<div id="playlist">
|
||||||
<div id="wrapper">
|
<div id="wrapper">
|
||||||
<div id="preloader" class="progress channel_preloader">
|
|
||||||
<div class="indeterminate"></div>
|
|
||||||
</div>
|
|
||||||
<div id="list-song-html">
|
<div id="list-song-html">
|
||||||
<div id="list-song" class="card left-align list-song waves-effect waves-light playlist-element">
|
<div id="list-song" class="card left-align list-song waves-effect waves-light playlist-element">
|
||||||
<div class="clickable vote-container" title="Vote!">
|
<div class="clickable vote-container" title="Vote!">
|
||||||
@@ -101,4 +98,9 @@
|
|||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="site_loader">
|
||||||
|
<div class="preloader-wrapper large active valign">
|
||||||
|
{{> spinner}}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user