« MediaWiki:LoginContent » : différence entre les versions

aucun résumé des modifications
Aucun résumé des modifications
Aucun résumé des modifications
 
(4 versions intermédiaires par 2 utilisateurs non affichées)
Ligne 279 : Ligne 279 :
     </table>
     </table>
</div>
</div>
<div class="d-flex justify-content-center align-items-center">
    <button class="btn btn-link text-primary small" id="oldlogin">Ancien Login</button>
</div>
<script>
document.addEventListener('DOMContentLoaded', function() {
    document.getElementById('oldlogin').addEventListener('click', function() {
        const elements = document.querySelectorAll(
            '.mw-htmlform-field-HTMLTextField, .mw-htmlform-field-HTMLCheckField, .mw-htmlform-field-HTMLSubmitField, .mw-form-related-link-container'
        );
        elements.forEach(function(element) {
            element.style.display = 'block';
        });
    });
});
</script>
5

modifications