🎨 Format Optimization

This commit is contained in:
Tw93
2024-05-10 21:51:56 +08:00
parent eabdfc2014
commit 0e1e57ddd3
14 changed files with 92 additions and 78 deletions

View File

@@ -6,16 +6,15 @@ document.addEventListener('DOMContentLoaded', () => {
m.style.cssText =
'max-width:60%;min-width: 80px;padding:0 12px;height: 32px;color: rgb(255, 255, 255);line-height: 32px;text-align: center;border-radius: 8px;position: fixed; bottom:24px;right: 28px;z-index: 999999;background: rgba(0, 0, 0,.8);font-size: 13px;';
document.body.appendChild(m);
setTimeout(function() {
setTimeout(function () {
const d = 0.5;
m.style.transition = 'transform ' + d + 's ease-in, opacity ' + d + 's ease-in';
m.style.opacity = '0';
setTimeout(function() {
setTimeout(function () {
document.body.removeChild(m);
}, d * 1000);
}, 3000);
}
window.pakeToast = pakeToast;
});