Wiki/MediaWiki:Common.js: Difference between revisions
From Catglobe Wiki
More actions
Created page with "$(function () { const key = 'cgkb-open-nodes'; // Hà m lưu node đang mở và o localStorage function saveOpenNodes() { const openNodes = []; $('.CategoryTreeNode:has(.CategoryTreeToggleOpen)').each(function () { const title = $(this).data('ct-title'); if (title) openNodes.push(title); }); localStorage.setItem(key, JSON.stringify(openNodes)); } // Hà m khôi phục trạng thái cây function restoreOpenNodes() { const openN..."  |
Blanked the page Tags: Blanking Visual edit: Switched  |
||
| Line 1: | Line 1: | ||