This commit is contained in:
nnduc
2026-10-24 14:03:52 +07:00
commit 4fe046de58
4790 changed files with 311146 additions and 0 deletions
+51
View File
@@ -0,0 +1,51 @@
#shortcuts_widget {
transition: height .1s;
}
#shortcuts_widget + ul li:not(.active):first-child:before {
display: block;
content: '';
width: 5.5rem;
height: 5.5rem;
background-color: rgba(var(--movim-font), 0.04);
position: absolute;
top: 0.5rem;
left: 0.5rem;
border-radius: 2rem;
z-index: -1;
transition: background-color 0.15s ease;
}
@media screen and (max-width: 1024px) {
#shortcuts_widget {
margin-top: 1rem;
}
}
#shortcuts_widget hr {
transition: opacity .2s;
margin-top: 0;
}
#shortcuts_widget:empty+hr {
opacity: 0;
}
#shortcuts_widget li {
transition: transform .2s, opacity .2s, height .2s, margin-bottom .2s;
opacity: 1;
height: 7rem;
}
#shortcuts_widget li:last-child {
border-radius: 0;
border-bottom: 1px solid rgba(var(--movim-font), 0.12);
margin-bottom: 0.5rem;
}
#shortcuts_widget li.disappear {
transform: scale(0.5);
opacity: 0;
height: 0;
margin-bottom: 0;
}
+20
View File
@@ -0,0 +1,20 @@
var Shortcuts = {
clear: function (jid) {
li = document.querySelector('#shortcuts_widget li[data-jid="' + jid + '"]');
if (li) {
li.classList.add('disappear');
setTimeout(e => {
parent = li.parentNode;
li.remove();
if (parent) {
parent.innerHTML = parent.innerHTML.trim();
}
}, 200)
}
}
}
MovimWebsocket.attach(() => {
Shortcuts_ajaxGet();
});