mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 09:49:28 +02:00
Improving Sockets
This commit is contained in:
parent
a16246f93d
commit
b12e5c300e
17 changed files with 107 additions and 40 deletions
|
@ -677,7 +677,7 @@ function playNext(url) {
|
|||
});
|
||||
}
|
||||
} else if (isPlayerLoop()) {
|
||||
$.toast("Looping video");
|
||||
avideoToast("Looping video");
|
||||
userIsControling = false;
|
||||
playerPlayTimeout = setTimeout(function () {
|
||||
playerPlay(currentTime);
|
||||
|
@ -861,8 +861,27 @@ function avideoAlert(title, msg, type) {
|
|||
}
|
||||
}
|
||||
|
||||
function _avideoToast(msg, icon) {
|
||||
var options = {text:msg, hideAfter:7000};
|
||||
if(icon){
|
||||
options.icon = icon;
|
||||
}
|
||||
$.toast(options);
|
||||
}
|
||||
function avideoToast(msg) {
|
||||
$.toast({text:msg, hideAfter:7000});
|
||||
_avideoToast(msg, null);
|
||||
}
|
||||
function avideoToastInfo(msg) {
|
||||
_avideoToast(msg, 'info');
|
||||
}
|
||||
function avideoToastError(msg) {
|
||||
_avideoToast(msg, 'error');
|
||||
}
|
||||
function avideoToastSuccess(msg) {
|
||||
_avideoToast(msg, 'success');
|
||||
}
|
||||
function avideoToastWarning(msg) {
|
||||
_avideoToast(msg, 'warning');
|
||||
}
|
||||
|
||||
function avideoAlertAJAXHTML(url) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue