not expander

This commit is contained in:
Garry Ing
2021-04-03 20:24:54 -04:00
parent 5b60973e4f
commit d8dc299bae
4 changed files with 15 additions and 3 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')
})
}