Widget: Compass: Difference between revisions
From LINKS Community Center
Eschmidt (talk | contribs) No edit summary |
Eschmidt (talk | contribs) No edit summary |
||
Line 707: | Line 707: | ||
const icon = document.createElement('div'); | const icon = document.createElement('div'); | ||
icon.classList.add('plus', 'icon'); | icon.classList.add('plus', 'icon'); | ||
el. | el.insertBefore(icon, el.firstChild); | ||
}); | }); | ||
Line 724: | Line 724: | ||
event.target.closest('.question').querySelector('.answer').classList.toggle('opened'); | event.target.closest('.question').querySelector('.answer').classList.toggle('opened'); | ||
} | } | ||
}); | }); | ||
Revision as of 10:30, 7 December 2022
Development version of the Compass.
Not ready for production!