fix audio operasi

This commit is contained in:
MUHD HAFIFIE
2021-05-16 14:42:09 +08:00
parent 0f96ef1efe
commit 7074d2da71
11 changed files with 1350 additions and 202 deletions
+17 -3
View File
@@ -131,9 +131,23 @@
$('#linkz').text(data.namateller + " Pohon Kelulusan");
$("#linkz").attr("href", "{{ url('kelulusan') }}");
audio.play();
audio.muted = false;
if(window.location.pathname === '/operasi/kelulusan')
{
location.reload();
}else{
console.log('luar kelulusan');
audio.play();
audio.muted = false;
var countlagu = 1;
audio.onended = function() {
if(countlagu <= 3){
countlagu++;
console.log(countlagu);
this.play();
}
}
}
const Toast = Swal.mixin({
toast: true,
position: 'top-end',