dashboard operasi
This commit is contained in:
@@ -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!'
|
||||
})
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user