Utilisateur:Hiob/Brouillon
De Nefald
Autres actions
Serveur Minecraftnefald.fr<button class="mc-connect-copy" onclick="copyMCAddress()" title="Copier l'adresse">📋</button>
<script>
function copyMCAddress() { var address = document.getElementById('mc-address').textContent; navigator.clipboard.writeText(address).then(function() { var btn = document.querySelector('.mc-connect-copy'); btn.textContent = '✓'; btn.style.background = '#4CAF50'; setTimeout(function() { btn.textContent = '📋'; btn.style.background = ; }, 2000); }).catch(function() { alert('Adresse: ' + address); }); } </script>