Spaces:
Running
Running
Download script.js from x1232/applander-pro: direct link, hf CLI and curl.
- Browser
- Download file 1.06 kB
-
https://huggingface.co/spaces/x1232/applander-pro/resolve/main/script.js
- Command line
-
hf download hf://spaces/x1232/applander-pro/script.js
-
curl -L -o script.js https://huggingface.co/spaces/x1232/applander-pro/resolve/main/script.js
1.06 kB
| // Simple animation for feature cards on scroll | |
| document.addEventListener('DOMContentLoaded', function() { | |
| const featureCards = document.querySelectorAll('.features-grid > div'); | |
| featureCards.forEach((card, index) => { | |
| // Add staggered delay for animation | |
| card.style.transitionDelay = `${index * 0.1}s`; | |
| }); | |
| // Simple form submission for early access | |
| const earlyAccessForm = document.querySelector('section.py-20.bg-gradient-to-r form'); | |
| if (earlyAccessForm) { | |
| earlyAccessForm.addEventListener('submit', function(e) { | |
| e.preventDefault(); | |
| const emailInput = this.querySelector('input[type="email"]'); | |
| if (emailInput.value && emailInput.checkValidity()) { | |
| // In a real app, you would send this to your backend | |
| alert('Thank you! You\'ve been added to our early access list.'); | |
| emailInput.value = ''; | |
| } else { | |
| alert('Please enter a valid email address.'); | |
| } | |
| }); | |
| } | |
| }); |