document.addEventListener("DOMContentLoaded", function(event) {
//wd_notice();
//var intervalId = window.setInterval(function(){wd_notice()}, 10000);
function wd_notice() {
var tx1 = makeid(2)+"*****"+makeid(2)+" Berhasil Withdraw";
var tx2 = "Rp. "+number_format(((Math.floor(Math.random() * 1000) + 5) * 10000), 0, ',', '.')+",00";
document.getElementById("snackbar_t1").innerHTML = tx1;
document.getElementById("snackbar_t2").innerHTML = tx2;
var x = document.getElementById("snackbar");
x.className = "show";
setTimeout(function(){ x.className = x.className.replace("show", ""); }, 3000);
}
function makeid(length) {
let result = '';
const characters = 'abcdefghijklmnopqrstuvwxyz0123456789';
const charactersLength = characters.length;
let counter = 0;
while (counter < length) {
result += characters.charAt(Math.floor(Math.random() * charactersLength));
counter += 1;
}
return result;
}
});