mirror of
https://github.com/9001/copyparty.git
synced 2025-08-17 09:02:15 -06:00
This commit is contained in:
parent
4603afb6de
commit
96edcbccd7
|
@ -75,7 +75,7 @@ html {
|
|||
top: 1px;
|
||||
right: 1px;
|
||||
left: 1px;
|
||||
animation: toastt var(--tmtime) steps(var(--tmstep)) forwards;
|
||||
animation: toastt var(--tmtime) 0.07s steps(var(--tmstep)) forwards;
|
||||
transform-origin: right;
|
||||
}
|
||||
@keyframes toastt {
|
||||
|
|
|
@ -1542,8 +1542,8 @@ var toast = (function () {
|
|||
|
||||
var html = '';
|
||||
if (sec) {
|
||||
setcvar('--tmtime', sec + 's');
|
||||
setcvar('--tmstep', sec * 15);
|
||||
setcvar('--tmtime', (sec - 0.15) + 's');
|
||||
setcvar('--tmstep', Math.floor(sec * 20));
|
||||
html += '<div id="toastt"></div>';
|
||||
}
|
||||
obj.innerHTML = html + '<a href="#" id="toastc">x</a><div id="toastb">' + lf2br(txt) + '</div>';
|
||||
|
|
Loading…
Reference in a new issue