in animation
This commit is contained in:
11
frontlog.js
11
frontlog.js
@@ -30,7 +30,7 @@ let frontlogPipe = function(title,icon,msg,col, time) {
|
||||
{
|
||||
let ch = 'abcdefghijklmnopqrstuvwxyz0123456789';
|
||||
let chl = ch.length;
|
||||
for ( let i = 0; i < length; i++ ) {
|
||||
for ( let i = 0; i < 16; i++ ) {
|
||||
elemid += ch.charAt(Math.floor(Math.random() * chl));
|
||||
}
|
||||
}
|
||||
@@ -50,10 +50,17 @@ let frontlogPipe = function(title,icon,msg,col, time) {
|
||||
|
||||
elem.style = 'border-color: '+col+';';
|
||||
elem.addEventListener('click',function(ev){
|
||||
frontlogVanish(ev.target);
|
||||
let tg = ev.target;
|
||||
if(tg.tagName.toLowerCase() != 'flogelem') {
|
||||
tg = ev.target.parentNode;
|
||||
}
|
||||
frontlogVanish(tg);
|
||||
});
|
||||
setTimeout(function(){
|
||||
frontlogVanish(elem);
|
||||
},time*1000)
|
||||
frontlog.appendChild(elem);
|
||||
setTimeout(function(){
|
||||
elem.classList.add('flshow');
|
||||
},10);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user