Spaces:
Runtime error
Runtime error
Download static/script.js from OzoneAsai/EnFlashC-1: direct link, hf CLI and curl.
- Browser
- Download file 464 Bytes
-
https://huggingface.co/spaces/OzoneAsai/EnFlashC-1/resolve/main/static/script.js
- Command line
-
hf download hf://spaces/OzoneAsai/EnFlashC-1/static/script.js
-
curl -L -o script.js https://huggingface.co/spaces/OzoneAsai/EnFlashC-1/resolve/main/static/script.js
464 Bytes
| document.getElementById('prevBtn').addEventListener('click', function() { | |
| navigate(prevUrl); | |
| }); | |
| document.getElementById('nextBtn').addEventListener('click', function() { | |
| navigate(nextUrl); | |
| }); | |
| function navigate(url) { | |
| const flashcard = document.getElementById('flashcard'); | |
| flashcard.classList.add('fade-out'); | |
| setTimeout(function() { | |
| window.location.href = url; | |
| }, 500); // Match this duration with the CSS animation duration | |
| } | |