Widget: Compass: Difference between revisions

From LINKS Community Center
Jump to: navigation, search
Eschmidt (talk | contribs)
No edit summary
Eschmidt (talk | contribs)
No edit summary
Line 608: Line 608:
          
          
         document.getElementById('cmp-container').addEventListener('click', event => {
         document.getElementById('cmp-container').addEventListener('click', event => {
            console.log(event.target)
             if (!event.currentTarget.classList.contains('choice')) return;
             if (!event.target.classList.contains('choice')) return;


             const id = event.target.id;
             const id = event.currentTarget.id;
             console.log('element id=' + id);
             console.log('element id=' + id);
             console.log('actions', actions[id].filter)
             console.log('actions', actions[id].filter)

Revision as of 12:31, 24 November 2022

Development version of the Compass.
Not ready for production!