dashboard operasi

This commit is contained in:
MUHD HAFIFIE
2021-04-21 15:55:09 +08:00
parent bde37da6c3
commit 0189a7b6b0
7 changed files with 69 additions and 41 deletions
+28 -21
View File
@@ -116,6 +116,9 @@
</li>
<script>
var audiokhazanah = new Audio("{{ asset('sound/3.wav') }}");
audiokhazanah.muted = true;
// Enable pusher logging - don't include this in production
// Pusher.logToConsole = true;
@@ -130,32 +133,36 @@
var channel = pusher.subscribe('status-liked');
channel.bind('my-event', function(data) {
// let message = JSON.stringify(data);
if(cawangankhazanah == data.cawangan)
{
$('#bell').css("color", "red");
$('#linkz').text(data.namateller + " Memohon Kelulusan");
$("#linkz").attr("href", "{{ url('kelulusan') }}");
const Toast = Swal.mixin({
toast: true,
position: 'top-end',
showConfirmButton: false,
timer: 5000,
timerProgressBar: true,
didOpen: (toast) => {
toast.addEventListener('mouseenter', Swal.stopTimer)
toast.addEventListener('mouseleave', Swal.resumeTimer)
$('#bell').css("color", "red");
$('#linkz').text(data.namateller + " Memohon Kelulusan");
$("#linkz").attr("href", "{{ url('kelulusan') }}");
audiokhazanah.play();
audiokhazanah.muted = false;
const Toast = Swal.mixin({
toast: true,
position: 'top-end',
showConfirmButton: false,
timer: 5000,
timerProgressBar: true,
didOpen: (toast) => {
toast.addEventListener('mouseenter', Swal.stopTimer)
toast.addEventListener('mouseleave', Swal.resumeTimer)
}
})
Toast.fire({
icon: 'error',
title: 'Kelulusan Dipohon Sekarang!'
})
}
})
Toast.fire({
icon: 'error',
title: 'Kelulusan Dipohon Sekarang!'
})
}
});