This commit is contained in:
garrying
2021-04-04 00:25:22 +00:00
parent c1c0f323ac
commit 2ba2e3e9a7
24 changed files with 159 additions and 129 deletions

View File

@ -368,3 +368,14 @@ if (typeof window.graphData !== 'undefined') {
return str.substr(0, str.lastIndexOf(separator, maxLen)) + '...'
}
}
// Note expander
const noteExpander = document.querySelector('#note-expand')
if (noteExpander) {
noteExpander.addEventListener('click', (event) => {
document.querySelector('#note-container').classList.toggle('w-two-thirds')
event.target.classList.toggle('rotate-180')
})
}