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
+34
View File
@@ -0,0 +1,34 @@
var Menu = {
init: function() {
let parts = MovimUtils.urlParts();
let page = parts.params[0] !== undefined ? parseInt(parts.params[0]) : 0;
if (parts.hash != '') {
switch (parts.hash) {
case 'communities':
Menu_ajaxHttpGetCommunities(page);
break;
case 'contacts':
Menu_ajaxHttpGetContacts(page);
break;
}
} else {
Menu_ajaxHttpGetAll(page);
}
},
refresh: function() {
document.querySelector('#menu_refresh li').classList.add('refreshing');
Menu_ajaxHttpGetAll();
},
setLoad: function(tab) {
tab.innerHTML = '<i class="material-symbols spin">autorenew</i>';
}
};
MovimWebsocket.attach(function() {
Menu.init();
Notif_ajaxClear('news');
Notif.current('news');
});