init
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
var Toast = {
|
||||
send : function(title, timeout) {
|
||||
target = document.getElementById('toast');
|
||||
|
||||
if (target) {
|
||||
target.innerHTML = title;
|
||||
}
|
||||
|
||||
setTimeout(function() {
|
||||
target = document.getElementById('toast');
|
||||
target.innerHTML = '';
|
||||
}, timeout ?? 3000);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user