Spaces:
Running
Running
Download script.js from caiubymr/cloudshield-sentinels: direct link, hf CLI and curl.
- Browser
- Download file 1.47 kB
-
https://huggingface.co/spaces/caiubymr/cloudshield-sentinels/resolve/main/script.js
- Command line
-
hf download hf://spaces/caiubymr/cloudshield-sentinels/script.js
-
curl -L -o script.js https://huggingface.co/spaces/caiubymr/cloudshield-sentinels/resolve/main/script.js
1.47 kB
| // Language management | |
| const translations = { | |
| en: { | |
| heroTitle: "Secure Your PII Data Across All Cloud Platforms", | |
| heroSubtitle: "Advanced protection for AWS RDS, DynamoDB, OpenSearch and more", | |
| featuresTitle: "Comprehensive PII Protection", | |
| pricingTitle: "Custom Pricing for Your Needs", | |
| contactTitle: "Request a Personalized Quote" | |
| }, | |
| pt: { | |
| heroTitle: "Proteja Seus Dados PII em Todas as Plataformas Cloud", | |
| heroSubtitle: "Proteção avançada para AWS RDS, DynamoDB, OpenSearch e mais", | |
| featuresTitle: "Proteção Abrangente de PII", | |
| pricingTitle: "Preços Personalizados para Suas Necessidades", | |
| contactTitle: "Solicite um Orçamento Personalizado" | |
| } | |
| }; | |
| function updateLanguage(lang) { | |
| document.documentElement.lang = lang; | |
| // Update all elements with data-i18n attributes | |
| document.querySelectorAll('[data-i18n]').forEach(el => { | |
| const key = el.getAttribute('data-i18n'); | |
| el.textContent = translations[lang][key]; | |
| }); | |
| } | |
| // Initialize with English | |
| updateLanguage('en'); | |
| // Form submission | |
| document.getElementById('contactForm')?.addEventListener('submit', function(e) { | |
| e.preventDefault(); | |
| const formData = new FormData(this); | |
| const data = Object.fromEntries(formData); | |
| console.log('Form submitted:', data); | |
| alert('Thank you for your request! We will contact you soon with a personalized quote.'); | |
| this.reset(); | |
| }); |