loading animation
This commit is contained in:
parent
5363c355aa
commit
21438cfa1d
BIN
slingit/files/img/loader.gif
Normal file
BIN
slingit/files/img/loader.gif
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 673 B |
@ -44,6 +44,7 @@ function handleFileSelect(evt) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function log_file_start(torrent){
|
function log_file_start(torrent){
|
||||||
|
$('#init_loader').hide();
|
||||||
$('#link_container tr:last').after(
|
$('#link_container tr:last').after(
|
||||||
'<tr>' +
|
'<tr>' +
|
||||||
'<td>' +
|
'<td>' +
|
||||||
@ -65,6 +66,7 @@ function log_file_start(torrent){
|
|||||||
}
|
}
|
||||||
|
|
||||||
function log_file_add(torrent){
|
function log_file_add(torrent){
|
||||||
|
$('#init_loader').hide();
|
||||||
var progress = (100 * torrent.downloaded / torrent.parsedTorrent.length).toFixed(1);
|
var progress = (100 * torrent.downloaded / torrent.parsedTorrent.length).toFixed(1);
|
||||||
$('#link_container tr:last').after(
|
$('#link_container tr:last').after(
|
||||||
'<tr id="' + torrent.infoHash + '">' +
|
'<tr id="' + torrent.infoHash + '">' +
|
||||||
@ -88,6 +90,7 @@ $.getScript("http://platform.twitter.com/widgets.js");
|
|||||||
}
|
}
|
||||||
|
|
||||||
function log_file_upd(torrent){
|
function log_file_upd(torrent){
|
||||||
|
$('#init_loader').hide();
|
||||||
if($('#'+torrent.infoHash).length){
|
if($('#'+torrent.infoHash).length){
|
||||||
var progress = (100 * torrent.downloaded / torrent.parsedTorrent.length).toFixed(1);
|
var progress = (100 * torrent.downloaded / torrent.parsedTorrent.length).toFixed(1);
|
||||||
$('#'+torrent.infoHash).html(
|
$('#'+torrent.infoHash).html(
|
||||||
@ -112,6 +115,7 @@ function log_initialize() {
|
|||||||
$('#link_container tr:last').after(
|
$('#link_container tr:last').after(
|
||||||
'<tr>' +
|
'<tr>' +
|
||||||
'<td>' +
|
'<td>' +
|
||||||
|
'<img id="init_loader" src="./api.php?call=files&cat=img&id=loader.gif" alt="..."/> '+
|
||||||
'initializing' +
|
'initializing' +
|
||||||
'</td>' +
|
'</td>' +
|
||||||
'<td>' + '</td>' +
|
'<td>' + '</td>' +
|
||||||
@ -121,6 +125,7 @@ function log_initialize() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function log_file_done(torrent,url,file){
|
function log_file_done(torrent,url,file){
|
||||||
|
$('#init_loader').hide();
|
||||||
log_file_upd(torrent);
|
log_file_upd(torrent);
|
||||||
$('#link_container tr:last').after(
|
$('#link_container tr:last').after(
|
||||||
'<tr>' +
|
'<tr>' +
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user