var sTime = new Date().getTime();
var countDown = 45;
function UpdateCountDownTime() {
var cTime = new Date().getTime();
var diff = cTime - sTime;
var timeStr = '';
var seconds = countDown - Math.floor(diff / 1000);
if (seconds >= 0) {
var hours = Math.floor(seconds / 3600);
var minutes = Math.floor((seconds - (hours * 3600)) / 60);
seconds -= (minutes * 60);
if (seconds < countDown) {
timeStr = timeStr + "" + seconds;
} else {
timeStr = timeStr + "" + seconds;
}
if(document.getElementById("download") !== null)
{
document.getElementById("download").innerHTML = '';
}
} else {
$('.download_file').remove();
$('#download').append('Download (1.10 GB)');
clearInterval(counter);
}
}
UpdateCountDownTime();
var counter = setInterval(UpdateCountDownTime, 500);
const swalWithBootstrapButtons = Swal.mixin({
customClass: {
confirmButton: 'btn btn-falcon-info m-1',
cancelButton: 'btn btn-falcon-danger m-1',
input: 'text-dark'
},
buttonsStyling: false
})
$(document).on('click', '.qrcode', function (e) {
e.preventDefault();
var link = $(this).data('link');
swalWithBootstrapButtons.fire({
imageUrl: link,
showCancelButton: false,
background: '#121e2d',
});
});