Initial commit: ACE-Step UI - Open source music generation interface
This commit is contained in:
Executable
+29
@@ -0,0 +1,29 @@
|
||||
(function ( w, d ) {
|
||||
|
||||
function OneUp ( _text, _time, _clss ) {
|
||||
var el = d.createElement ('div');
|
||||
var cl = 'pk_oneup pk_noselect';
|
||||
|
||||
el.style.cssText = 'margin-top:20px;opacity:0';
|
||||
if (_clss) cl = cl + ' ' + _clss;
|
||||
|
||||
el.className = cl;
|
||||
el.innerHTML = _text || '';
|
||||
|
||||
d.body.appendChild ( el );
|
||||
setTimeout (function() {
|
||||
el.style.cssText = 'margin-top:0px;opacity:1';
|
||||
|
||||
setTimeout (function() {
|
||||
el.style.cssText = 'margin-top:-20px;opacity:0';
|
||||
|
||||
setTimeout (function() {
|
||||
el.parentNode.removeChild ( el );
|
||||
el = null;
|
||||
}, 330);
|
||||
}, _time || 720);
|
||||
}, 25);
|
||||
}
|
||||
|
||||
w.OneUp = OneUp;
|
||||
})( window, document );
|
||||
Reference in New Issue
Block a user