Spaces:
Running
Running
Download script.js from Minesphere/frostbytemc: direct link, hf CLI and curl.
- Browser
- Download file 1.03 kB
-
https://huggingface.co/spaces/Minesphere/frostbytemc/resolve/main/script.js
- Command line
-
hf download hf://spaces/Minesphere/frostbytemc/script.js
-
curl -L -o script.js https://huggingface.co/spaces/Minesphere/frostbytemc/resolve/main/script.js
1.03 kB
| document.addEventListener('DOMContentLoaded', function() { | |
| // Copy IP functionality | |
| const copyBtn = document.querySelector('.copy-btn'); | |
| if (copyBtn) { | |
| copyBtn.addEventListener('click', function() { | |
| navigator.clipboard.writeText('play.firemc.fun'); | |
| // Change button text temporarily | |
| const originalText = copyBtn.innerHTML; | |
| copyBtn.innerHTML = '<i data-feather="check" class="w-4 h-4 mr-2"></i> Copied!'; | |
| feather.replace(); | |
| setTimeout(() => { | |
| copyBtn.innerHTML = originalText; | |
| feather.replace(); | |
| }, 2000); | |
| }); | |
| } | |
| // Smooth scrolling for anchor links | |
| document.querySelectorAll('a[href^="#"]').forEach(anchor => { | |
| anchor.addEventListener('click', function (e) { | |
| e.preventDefault(); | |
| document.querySelector(this.getAttribute('href')).scrollIntoView({ | |
| behavior: 'smooth' | |
| }); | |
| }); | |
| }); | |
| }); |