INNER CODE UNIT · JavaScript

on

deepentropy/tvscreener · app/js/app.js:500

            const on = () => {
                // Only dim the code when the section produced lines
                const name = section.dataset.section;
                if (code.querySelector(`.line[data-section="${name}"]`)) code.dataset.focus = name;
                else delete code.dataset.focus;
            };
            const off = () => { delete code.dataset.focus; };
            section.addEventListener('mouseenter', on);
            section.addEventListener('mouseleave', off);
            section.addEventListener('focusin', on);
            section.addEventListener('focusout', off);
        });
    },

    /**
     * Switch screener type
     */
    switchScreener(type) {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…