1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-06 03:50:04 +02:00

Fix sweetalert

This commit is contained in:
daniel 2020-04-24 09:52:17 -03:00
parent 8351e24b42
commit 09e0856d25
22 changed files with 269 additions and 2123 deletions

View file

@ -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/");