mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-06 03:50:04 +02:00
Fix sweetalert
This commit is contained in:
parent
8351e24b42
commit
09e0856d25
22 changed files with 269 additions and 2123 deletions
|
@ -599,20 +599,18 @@ function playerPlay(currentTime) {
|
|||
player.muted(true);
|
||||
playerPlay(currentTime);
|
||||
} else {
|
||||
if (player.muted() && !inIframe()) {
|
||||
swal({
|
||||
html: true,
|
||||
title: "Your Media is Muted",
|
||||
text: "<b>Would</b> you like to unmute it?<div id='allowAutoplay' style='max-height: 100px; overflow-y: scroll;'></div>",
|
||||
type: "warning",
|
||||
showCancelButton: true,
|
||||
confirmButtonColor: "#DD6B55",
|
||||
confirmButtonText: "Yes, unmute it!",
|
||||
closeOnConfirm: true,
|
||||
className: "swal-noform"
|
||||
},
|
||||
function () {
|
||||
if (player.muted() && !inIframe()) {
|
||||
swal({
|
||||
title: "Your Media is Muted",
|
||||
text: "<b>Would</b> you like to unmute it?<div id='allowAutoplay' style='max-height: 100px; overflow-y: scroll;'></div>",
|
||||
icon: "warning",
|
||||
buttons: true,
|
||||
dangerMode: true,
|
||||
})
|
||||
.then((willDelete) => {
|
||||
if (willDelete) {
|
||||
player.muted(false);
|
||||
}
|
||||
});
|
||||
setTimeout(function () {
|
||||
$("#allowAutoplay").load(webSiteRootURL + "plugin/PlayerSkins/allowAutoplay/");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue