diff --git a/site/script.js b/site/script.js index ce2e34d..007f435 100644 --- a/site/script.js +++ b/site/script.js @@ -186,6 +186,9 @@ function addDetailsEventListeners(cell, solution) { if (details) { details.addEventListener('toggle', function () { if (details.open) { + const summary = details.querySelector('summary'); + summary.innerHTML = `Other Words (${solution.otherWords.length})`; + const loadingDiv = details.querySelector('.other-words-loading'); let otherWordsHTML = '