MCPcopy Create free account
hub / github.com/dajie111/nodeseek-userscript / toggleHistoryPanel

Function toggleHistoryPanel

notes.js:605–615  ·  view source on GitHub ↗
(panel, btn)

Source from the content-addressed store, hash-verified

603 }
604
605 function toggleHistoryPanel(panel, btn) {
606 const isVisible = panel.classList.contains('show');
607
608 // 先隐藏所有面板
609 hideAllHistoryPanels();
610
611 if (!isVisible) {
612 panel.classList.add('show');
613 btn.textContent = '▲';
614 }
615 }
616
617 function hideAllHistoryPanels() {
618 [fontHistoryPanel, bgHistoryPanel].forEach(panel => {

Callers 1

buildToolbarFunction · 0.85

Calls 1

hideAllHistoryPanelsFunction · 0.85

Tested by

no test coverage detected