mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Changed loading gif to a much smaller one
This commit is contained in:
@@ -202,7 +202,7 @@
|
||||
<div id="list-song" class="card left-align list-song">
|
||||
<span class="clickable vote-container" title="Vote!">
|
||||
<a class="clickable center-align votebg">
|
||||
<span class="card-image cardbg list-image" style="background-image:url('/static/images/loading.gif');"></span>
|
||||
<span class="lazy card-image cardbg list-image" style="background-image:url('/static/images/loading.gif');"></span>
|
||||
</a>
|
||||
<span class="card-content">
|
||||
<span class="flow-text truncate list-title"></span>
|
||||
|
||||
4
static/dist/main-min.js
vendored
4
static/dist/main-min.js
vendored
File diff suppressed because one or more lines are too long
Binary file not shown.
|
Before Width: | Height: | Size: 39 KiB After Width: | Height: | Size: 3.1 KiB |
@@ -40,16 +40,23 @@ var List = {
|
||||
$("#"+msg[1]).remove();
|
||||
full_playlist.splice(List.getIndexOfSong(msg[1]), 1);
|
||||
}, 305);
|
||||
document.getElementById('wrapper').scrollTop += 1;
|
||||
document.getElementById('wrapper').scrollTop += -1;
|
||||
}else if(msg[0] == "vote")
|
||||
{
|
||||
var index_of_song = List.getIndexOfSong(msg[1]);
|
||||
var song_voted_on = full_playlist[index_of_song];
|
||||
full_playlist[index_of_song].votes += 1;
|
||||
full_playlist[index_of_song].added = msg[2];
|
||||
full_playlist.sort(Helper.predicate({
|
||||
name: 'votes',
|
||||
reverse: true
|
||||
name: 'votes',
|
||||
reverse: true
|
||||
}, 'added'));
|
||||
List.populate_list(full_playlist, false);
|
||||
$("#"+msg[1]).remove();
|
||||
console.log(msg[1]);
|
||||
List.insertAtIndex(List.getIndexOfSong(msg[1]), song_voted_on, false);
|
||||
|
||||
//List.populate_list(full_playlist, false);
|
||||
}else if(msg[0] == "song_change")
|
||||
{
|
||||
|
||||
@@ -110,7 +117,7 @@ var List = {
|
||||
});
|
||||
|
||||
if(window.mobilecheck()) $(".list-image").lazyload({});
|
||||
else $(".list-image").lazyload({container: $("#wrapper")});
|
||||
else $(".list-image").lazyload({container: $("#wrapper")}).removeClass("lazy");
|
||||
$("#settings").css("visibility", "visible");
|
||||
$("#settings").css("opacity", "1");
|
||||
$("#wrapper").css("opacity", "1");
|
||||
|
||||
Reference in New Issue
Block a user