Download script.js from ayush2448/intervue-clone-mock-interview-mastermind: direct link, hf CLI and curl.
- Browser
- Download file 1.06 kB
-
https://huggingface.co/spaces/ayush2448/intervue-clone-mock-interview-mastermind/resolve/main/script.js
- Command line
-
hf download hf://spaces/ayush2448/intervue-clone-mock-interview-mastermind/script.js
-
curl -L -o script.js https://huggingface.co/spaces/ayush2448/intervue-clone-mock-interview-mastermind/resolve/main/script.js
1.06 kB
| // Main application script | |
| document.addEventListener('DOMContentLoaded', () => { | |
| // Initialize any necessary functionality | |
| console.log('InterVue Clone loaded'); | |
| // Example: Smooth scroll for anchor links | |
| document.querySelectorAll('a[href^="#"]').forEach(anchor => { | |
| anchor.addEventListener('click', function (e) { | |
| e.preventDefault(); | |
| document.querySelector(this.getAttribute('href')).scrollIntoView({ | |
| behavior: 'smooth' | |
| }); | |
| }); | |
| }); | |
| // Future interview type selection functionality | |
| const interviewCards = document.querySelectorAll('#start-interview [class*="border-gray-200"]'); | |
| interviewCards.forEach(card => { | |
| card.addEventListener('click', function() { | |
| // Remove active class from all cards | |
| interviewCards.forEach(c => c.classList.remove('border-indigo-500', 'bg-indigo-50')); | |
| // Add active class to clicked card | |
| this.classList.add('border-indigo-500', 'bg-indigo-50'); | |
| }); | |
| }); | |
| }); |