Skip to content

Commit

Permalink
Display number of other words Strands
Browse files Browse the repository at this point in the history
  • Loading branch information
Hamster45105 committed Dec 21, 2024
1 parent 39e6d90 commit b8e61d5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions site/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,9 @@ function addDetailsEventListeners(cell, solution) {
if (details) {
details.addEventListener('toggle', function () {
if (details.open) {
const summary = details.querySelector('summary');
summary.innerHTML = `<strong>Other Words</strong> (${solution.otherWords.length})`;

const loadingDiv = details.querySelector('.other-words-loading');
let otherWordsHTML = '<ul>';
for (const word of solution.otherWords) {
Expand Down

0 comments on commit b8e61d5

Please sign in to comment.