Outils pour utilisateurs

Outils du site


bloc_note

Ceci est une ancienne révision du document !


Bloc Note rapide


<!-- Bouton pour tout basculer -->
<button onclick="toggleAll()" style="margin-top:10px;" class="w3-button w3-blue">Basculer tout</button>

<script>
function toggleAll() {
    const toggleCells = document.querySelectorAll('td[onclick*="Toggle_OnOFF"]');

    toggleCells.forEach(cell => {
        const onClickValue = cell.getAttribute('onclick');
        const argsMatch = onClickValue.match(/Toggle_OnOFF\(([^)]+)\)/);

        if (argsMatch) {
            const args = argsMatch[1].split(',').map(arg => arg.trim().replace(/^'|'$/g, ''));
            if (typeof Toggle_OnOFF === "function") {
                Toggle_OnOFF(...args);
            }
        }
    });
}
</script>
bloc_note.1747222658.txt.gz · Dernière modification : 2025/05/14 13:37 de admin