+ @@ -49,6 +49,7 @@ layout: default {% endif %} + → diff --git a/assets/js/scripts.js b/assets/js/scripts.js index 879932d..4389c87 100644 --- a/assets/js/scripts.js +++ b/assets/js/scripts.js @@ -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') + }) +}
@@ -49,6 +49,7 @@ layout: default {% endif %} + → diff --git a/assets/js/scripts.js b/assets/js/scripts.js index 879932d..4389c87 100644 --- a/assets/js/scripts.js +++ b/assets/js/scripts.js @@ -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') + }) +}