Ahora necestio que crees la página cómo funciona y la página beneficios, tambien una página de inicio de sesión y una donde el usuario logeado pueda ver las cuotas pendientes, sus valores, cuanto fue el prestamo y fecha de vencimiento
837480d verified Download index.html from SmokePython/flashloan-cr-dito-express: direct link, hf CLI and curl.
- Browser
- Download file 27.3 kB
-
https://huggingface.co/spaces/SmokePython/flashloan-cr-dito-express/resolve/main/index.html
- Command line
-
hf download hf://spaces/SmokePython/flashloan-cr-dito-express/index.html
-
curl -L -o index.html https://huggingface.co/spaces/SmokePython/flashloan-cr-dito-express/resolve/main/index.html
27.3 kB
| <html lang="es"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>FlashLoan - Préstamos Express en 5 Minutos</title> | |
| <link rel="icon" type="image/x-icon" href="/static/favicon.ico"> | |
| <script src="https://cdn.tailwindcss.com"></script> | |
| <script src="https://unpkg.com/feather-icons"></script> | |
| <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script> | |
| <script src="https://cdn.jsdelivr.net/npm/chart.js"></script> | |
| <script src="https://cdn.jsdelivr.net/npm/vanta@latest/dist/vanta.waves.min.js"></script> | |
| <script> | |
| tailwind.config = { | |
| theme: { | |
| extend: { | |
| colors: { | |
| primary: { | |
| 500: '#f59e0b', | |
| 600: '#d97706', | |
| }, | |
| secondary: { | |
| 500: '#3b82f6', | |
| 600: '#2563eb', | |
| } | |
| } | |
| } | |
| } | |
| } | |
| </script> | |
| <style> | |
| @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap'); | |
| body { | |
| font-family: 'Inter', sans-serif; | |
| } | |
| .card-hover:hover { | |
| transform: translateY(-5px); | |
| box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); | |
| } | |
| .input-range::-webkit-slider-thumb { | |
| -webkit-appearance: none; | |
| appearance: none; | |
| width: 24px; | |
| height: 24px; | |
| background: #f59e0b; | |
| cursor: pointer; | |
| border-radius: 50%; | |
| border: 4px solid white; | |
| box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); | |
| } | |
| .fade-in { | |
| animation: fadeIn 0.5s ease-in; | |
| } | |
| @keyframes fadeIn { | |
| from { opacity: 0; } | |
| to { opacity: 1; } | |
| } | |
| </style> | |
| </head> | |
| <body class="bg-gray-50"> | |
| <div id="vanta-bg" class="fixed inset-0 -z-10"></div> | |
| <!-- Header --> | |
| <header class="bg-white bg-opacity-90 shadow-sm"> | |
| <div class="container mx-auto px-4 py-4 flex justify-between items-center"> | |
| <div class="flex items-center space-x-2"> | |
| <div class="bg-amber-500 p-2 rounded-lg"> | |
| <i data-feather="zap" class="text-white"></i> | |
| </div> | |
| <h1 class="text-2xl font-bold text-gray-800">Flash<span class="text-amber-500">Loan</span></h1> | |
| </div> | |
| <nav class="hidden md:flex space-x-8"> | |
| <a href="index.html" class="text-gray-600 hover:text-amber-500 font-medium">Inicio</a> | |
| <a href="como_funciona.html" class="text-gray-600 hover:text-amber-500 font-medium">Cómo funciona</a> | |
| <a href="beneficios.html" class="text-gray-600 hover:text-amber-500 font-medium">Beneficios</a> | |
| <a href="#" class="text-gray-600 hover:text-amber-500 font-medium">FAQ</a> | |
| <a href="solicitar.html" class="text-gray-600 hover:text-amber-500 font-medium">Solicitar Préstamo</a> | |
| </nav> | |
| <div class="flex items-center space-x-4"> | |
| <a href="login.html" class="hidden md:block px-4 py-2 text-gray-600 hover:text-amber-500"> | |
| <i data-feather="user"></i> | |
| </a> | |
| <a href="solicitar.html" class="bg-amber-500 hover:bg-amber-600 text-white px-6 py-2 rounded-lg font-medium transition duration-300 shadow-md"> | |
| Solicitar préstamo | |
| </a> | |
| <button class="md:hidden"> | |
| <i data-feather="menu"></i> | |
| </button> | |
| </div> | |
| </div> | |
| </header> | |
| <!-- Hero Section --> | |
| <section class="container mx-auto px-4 py-16 md:py-24"> | |
| <div class="flex flex-col md:flex-row items-center"> | |
| <div class="md:w-1/2 mb-12 md:mb-0"> | |
| <h1 class="text-4xl md:text-5xl font-bold text-gray-800 leading-tight mb-6"> | |
| Dinero rápido <span class="text-amber-500">en 5 minutos</span> sin papeleos | |
| </h1> | |
| <p class="text-lg text-gray-600 mb-8"> | |
| Solicita desde $1.000.000 hasta $20.000.000 directamente en tu cuenta, completamente online y con la mejor tasa del mercado. | |
| </p> | |
| <div class="flex flex-col sm:flex-row space-y-4 sm:space-y-0 sm:space-x-4"> | |
| <a href="solicitar.html" class="bg-amber-500 hover:bg-amber-600 text-white px-8 py-4 rounded-lg font-bold transition duration-300 shadow-lg flex items-center justify-center"> | |
| <i data-feather="zap" class="mr-2"></i> Solicitar ahora | |
| </a> | |
| <button class="border-2 border-gray-300 hover:border-amber-500 text-gray-700 hover:text-amber-500 px-8 py-4 rounded-lg font-bold transition duration-300 flex items-center justify-center"> | |
| <i data-feather="play" class="mr-2"></i> Ver video | |
| </button> | |
| </div> | |
| <div class="mt-8 flex items-center space-x-4"> | |
| <div class="flex -space-x-2"> | |
| <img src="http://static.photos/people/200x200/1" class="w-10 h-10 rounded-full border-2 border-white"> | |
| <img src="http://static.photos/people/200x200/2" class="w-10 h-10 rounded-full border-2 border-white"> | |
| <img src="http://static.photos/people/200x200/3" class="w-10 h-10 rounded-full border-2 border-white"> | |
| </div> | |
| <div> | |
| <p class="text-sm text-gray-600"><span class="font-bold">+5.000</span> clientes felices</p> | |
| <div class="flex"> | |
| <i data-feather="star" class="text-amber-500 w-4 h-4"></i> | |
| <i data-feather="star" class="text-amber-500 w-4 h-4"></i> | |
| <i data-feather="star" class="text-amber-500 w-4 h-4"></i> | |
| <i data-feather="star" class="text-amber-500 w-4 h-4"></i> | |
| <i data-feather="star" class="text-amber-500 w-4 h-4"></i> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="md:w-1/2"> | |
| <div class="bg-white rounded-2xl shadow-xl p-6 max-w-md mx-auto border border-gray-100"> | |
| <h2 class="text-xl font-bold text-gray-800 mb-4">Simulador de préstamo</h2> | |
| <div class="mb-6"> | |
| <label for="amount" class="block text-gray-700 mb-2">Monto que necesitas</label> | |
| <div class="flex items-center mb-2"> | |
| <span class="text-gray-500 mr-2">$</span> | |
| <input type="range" id="amount" min="1000000" max="20000000" step="100000" value="5000000" class="w-full input-range"> | |
| </div> | |
| <div class="flex justify-between text-sm text-gray-500"> | |
| <span>$1.000.000</span> | |
| <span>$20.000.000</span> | |
| </div> | |
| <div class="mt-4"> | |
| <input type="text" id="amount-display" value="$5.000.000" class="w-full px-4 py-3 border border-gray-300 rounded-lg text-center text-xl font-bold text-amber-500"> | |
| </div> | |
| </div> | |
| <div class="mb-6"> | |
| <label for="term" class="block text-gray-700 mb-2">Plazo del préstamo</label> | |
| <div class="flex items-center mb-2"> | |
| <input type="range" id="term" min="3" max="48" step="1" value="12" class="w-full input-range"> | |
| </div> | |
| <div class="flex justify-between text-sm text-gray-500"> | |
| <span>3 meses</span> | |
| <span>48 meses</span> | |
| </div> | |
| <div class="mt-4"> | |
| <input type="text" id="term-display" value="12 meses" class="w-full px-4 py-3 border border-gray-300 rounded-lg text-center text-xl font-bold text-amber-500"> | |
| </div> | |
| </div> | |
| <div class="bg-gray-50 p-4 rounded-lg mb-6"> | |
| <div class="flex justify-between mb-2"> | |
| <span class="text-gray-600">Cuota mensual:</span> | |
| <span class="font-bold text-gray-800" id="monthly-payment">$450.000</span> | |
| </div> | |
| <div class="flex justify-between mb-2"> | |
| <span class="text-gray-600">Tasa de interés:</span> | |
| <span class="font-bold text-gray-800" id="interest-rate">1.2% mensual</span> | |
| </div> | |
| <div class="flex justify-between"> | |
| <span class="text-gray-600">Total a pagar:</span> | |
| <span class="font-bold text-gray-800" id="total-payment">$5.400.000</span> | |
| </div> | |
| </div> | |
| <button class="w-full bg-amber-500 hover:bg-amber-600 text-white py-3 rounded-lg font-bold transition duration-300 shadow-md"> | |
| Solicitar este préstamo | |
| </button> | |
| <p class="text-xs text-gray-500 mt-2 text-center">* Montos preaprobados según tu perfil crediticio</p> | |
| </div> | |
| </div> | |
| </div> | |
| </section> | |
| <!-- Features Section --> | |
| <section class="bg-white py-16"> | |
| <div class="container mx-auto px-4"> | |
| <div class="text-center mb-16"> | |
| <h2 class="text-3xl font-bold text-gray-800 mb-4">¿Por qué elegir FlashLoan?</h2> | |
| <p class="text-gray-600 max-w-2xl mx-auto">La forma más rápida y sencilla de obtener dinero cuando lo necesites, sin complicaciones.</p> | |
| </div> | |
| <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-8"> | |
| <div class="bg-gray-50 p-6 rounded-xl card-hover transition duration-300"> | |
| <div class="bg-amber-100 w-14 h-14 rounded-full flex items-center justify-center mb-4"> | |
| <i data-feather="clock" class="text-amber-500 w-6 h-6"></i> | |
| </div> | |
| <h3 class="text-xl font-bold text-gray-800 mb-2">5 minutos</h3> | |
| <p class="text-gray-600">Desde la solicitud hasta el dinero en tu cuenta en solo 5 minutos.</p> | |
| </div> | |
| <div class="bg-gray-50 p-6 rounded-xl card-hover transition duration-300"> | |
| <div class="bg-blue-100 w-14 h-14 rounded-full flex items-center justify-center mb-4"> | |
| <i data-feather="smartphone" class="text-blue-500 w-6 h-6"></i> | |
| </div> | |
| <h3 class="text-xl font-bold text-gray-800 mb-2">100% digital</h3> | |
| <p class="text-gray-600">Todo el proceso desde tu celular, sin papeleos ni trámites presenciales.</p> | |
| </div> | |
| <div class="bg-gray-50 p-6 rounded-xl card-hover transition duration-300"> | |
| <div class="bg-amber-100 w-14 h-14 rounded-full flex items-center justify-center mb-4"> | |
| <i data-feather="dollar-sign" class="text-amber-500 w-6 h-6"></i> | |
| </div> | |
| <h3 class="text-xl font-bold text-gray-800 mb-2">Mejor tasa</h3> | |
| <p class="text-gray-600">Compara y verifica que tenemos las mejores tasas del mercado.</p> | |
| </div> | |
| <div class="bg-gray-50 p-6 rounded-xl card-hover transition duration-300"> | |
| <div class="bg-blue-100 w-14 h-14 rounded-full flex items-center justify-center mb-4"> | |
| <i data-feather="shield" class="text-blue-500 w-6 h-6"></i> | |
| </div> | |
| <h3 class="text-xl font-bold text-gray-800 mb-2">Seguro</h3> | |
| <p class="text-gray-600">Tus datos protegidos con tecnología de encriptación avanzada.</p> | |
| </div> | |
| </div> | |
| </div> | |
| </section> | |
| <!-- How it works --> | |
| <section class="py-16 bg-gray-50"> | |
| <div class="container mx-auto px-4"> | |
| <div class="text-center mb-16"> | |
| <h2 class="text-3xl font-bold text-gray-800 mb-4">Así de fácil es obtener tu préstamo</h2> | |
| <p class="text-gray-600 max-w-2xl mx-auto">En solo 3 sencillos pasos tendrás el dinero que necesitas.</p> | |
| </div> | |
| <div class="grid grid-cols-1 md:grid-cols-3 gap-8"> | |
| <div class="relative"> | |
| <div class="absolute -left-4 top-0 h-full flex items-center justify-center md:hidden"> | |
| <div class="w-8 h-8 bg-amber-500 rounded-full flex items-center justify-center text-white font-bold">1</div> | |
| </div> | |
| <div class="bg-white p-6 rounded-xl h-full"> | |
| <div class="hidden md:flex w-12 h-12 bg-amber-500 rounded-full items-center justify-center text-white font-bold mb-4">1</div> | |
| <h3 class="text-xl font-bold text-gray-800 mb-2">Simula tu préstamo</h3> | |
| <p class="text-gray-600 mb-4">Usa nuestro simulador para ver cuánto pagarás mensualmente según el monto y plazo que elijas.</p> | |
| <div class="flex justify-center"> | |
| <img src="http://static.photos/technology/640x360/1" alt="Simulación" class="rounded-lg w-full h-48 object-cover"> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="relative"> | |
| <div class="absolute -left-4 top-0 h-full flex items-center justify-center md:hidden"> | |
| <div class="w-8 h-8 bg-amber-500 rounded-full flex items-center justify-center text-white font-bold">2</div> | |
| </div> | |
| <div class="bg-white p-6 rounded-xl h-full"> | |
| <div class="hidden md:flex w-12 h-12 bg-amber-500 rounded-full items-center justify-center text-white font-bold mb-4">2</div> | |
| <h3 class="text-xl font-bold text-gray-800 mb-2">Completa tu solicitud</h3> | |
| <p class="text-gray-600 mb-4">Sácale foto a tu cédula y nuestro sistema rellenará automáticamente tus datos. Firma digitalmente.</p> | |
| <div class="flex justify-center"> | |
| <img src="http://static.photos/technology/640x360/2" alt="Formulario" class="rounded-lg w-full h-48 object-cover"> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="relative"> | |
| <div class="absolute -left-4 top-0 h-full flex items-center justify-center md:hidden"> | |
| <div class="w-8 h-8 bg-amber-500 rounded-full flex items-center justify-center text-white font-bold">3</div> | |
| </div> | |
| <div class="bg-white p-6 rounded-xl h-full"> | |
| <div class="hidden md:flex w-12 h-12 bg-amber-500 rounded-full items-center justify-center text-white font-bold mb-4">3</div> | |
| <h3 class="text-xl font-bold text-gray-800 mb-2">Recibe tu dinero</h3> | |
| <p class="text-gray-600 mb-4">En solo 5 minutos tendrás el dinero depositado en tu cuenta, sin esperas ni trámites.</p> | |
| <div class="flex justify-center"> | |
| <img src="http://static.photos/technology/640x360/3" alt="Dinero" class="rounded-lg w-full h-48 object-cover"> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </section> | |
| <!-- Testimonials --> | |
| <section class="py-16 bg-white"> | |
| <div class="container mx-auto px-4"> | |
| <div class="text-center mb-16"> | |
| <h2 class="text-3xl font-bold text-gray-800 mb-4">Lo que dicen nuestros clientes</h2> | |
| <p class="text-gray-600 max-w-2xl mx-auto">Más de 5.000 clientes han confiado en nosotros para sus necesidades financieras.</p> | |
| </div> | |
| <div class="grid grid-cols-1 md:grid-cols-3 gap-8"> | |
| <div class="bg-gray-50 p-6 rounded-xl"> | |
| <div class="flex mb-4"> | |
| <i data-feather="star" class="text-amber-500 w-5 h-5"></i> | |
| <i data-feather="star" class="text-amber-500 w-5 h-5"></i> | |
| <i data-feather="star" class="text-amber-500 w-5 h-5"></i> | |
| <i data-feather="star" class="text-amber-500 w-5 h-5"></i> | |
| <i data-feather="star" class="text-amber-500 w-5 h-5"></i> | |
| </div> | |
| <p class="text-gray-600 mb-4">"Increíble lo rápido que fue el proceso. Necesitaba dinero urgente un domingo en la tarde y en menos de 5 minutos ya lo tenía en mi cuenta."</p> | |
| <div class="flex items-center"> | |
| <img src="http://static.photos/people/200x200/4" class="w-10 h-10 rounded-full mr-3"> | |
| <div> | |
| <h4 class="font-bold text-gray-800">Juan Pérez</h4> | |
| <p class="text-sm text-gray-500">Santiago, Chile</p> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="bg-gray-50 p-6 rounded-xl"> | |
| <div class="flex mb-4"> | |
| <i data-feather="star" class="text-amber-500 w-5 h-5"></i> | |
| <i data-feather="star" class="text-amber-500 w-5 h-5"></i> | |
| <i data-feather="star" class="text-amber-500 w-5 h-5"></i> | |
| <i data-feather="star" class="text-amber-500 w-5 h-5"></i> | |
| <i data-feather="star" class="text-amber-500 w-5 h-5"></i> | |
| </div> | |
| <p class="text-gray-600 mb-4">"Me encantó no tener que llenar formularios. Con solo sacarle foto a mi cédula ya tenía todos mis datos cargados. ¡Recomendado 100%!"</p> | |
| <div class="flex items-center"> | |
| <img src="http://static.photos/people/200x200/5" class="w-10 h-10 rounded-full mr-3"> | |
| <div> | |
| <h4 class="font-bold text-gray-800">María González</h4> | |
| <p class="text-sm text-gray-500">Viña del Mar, Chile</p> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="bg-gray-50 p-6 rounded-xl"> | |
| <div class="flex mb-4"> | |
| <i data-feather="star" class="text-amber-500 w-5 h-5"></i> | |
| <i data-feather="star" class="text-amber-500 w-5 h-5"></i> | |
| <i data-feather="star" class="text-amber-500 w-5 h-5"></i> | |
| <i data-feather="star" class="text-amber-500 w-5 h-5"></i> | |
| <i data-feather="star" class="text-amber-500 w-5 h-5"></i> | |
| </div> | |
| <p class="text-gray-600 mb-4">"Comparé con otras instituciones y FlashLoan tenía la mejor tasa. Además, el proceso fue tan sencillo que hasta mi mamá de 70 años pudo hacerlo."</p> | |
| <div class="flex items-center"> | |
| <img src="http://static.photos/people/200x200/6" class="w-10 h-10 rounded-full mr-3"> | |
| <div> | |
| <h4 class="font-bold text-gray-800">Carlos Muñoz</h4> | |
| <p class="text-sm text-gray-500">Concepción, Chile</p> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </section> | |
| <!-- CTA Section --> | |
| <section class="py-16 bg-gradient-to-r from-amber-500 to-amber-600"> | |
| <div class="container mx-auto px-4 text-center"> | |
| <h2 class="text-3xl font-bold text-white mb-6">¿Qué esperas para solicitar tu préstamo?</h2> | |
| <p class="text-xl text-amber-100 mb-8 max-w-2xl mx-auto">Dinero rápido, seguro y con la mejor tasa del mercado. Todo desde tu celular.</p> | |
| <a href="solicitar.html" class="bg-white text-amber-600 hover:bg-gray-100 px-8 py-4 rounded-lg font-bold transition duration-300 shadow-lg flex items-center justify-center mx-auto"> | |
| <i data-feather="zap" class="mr-2"></i> Solicitar ahora | |
| </a> | |
| </div> | |
| </section> | |
| <!-- Footer --> | |
| <footer class="bg-gray-900 text-white py-12"> | |
| <div class="container mx-auto px-4"> | |
| <div class="grid grid-cols-1 md:grid-cols-4 gap-8"> | |
| <div> | |
| <div class="flex items-center space-x-2 mb-4"> | |
| <div class="bg-amber-500 p-2 rounded-lg"> | |
| <i data-feather="zap" class="text-white"></i> | |
| </div> | |
| <h3 class="text-xl font-bold">Flash<span class="text-amber-500">Loan</span></h3> | |
| </div> | |
| <p class="text-gray-400 mb-4">La forma más rápida y sencilla de obtener dinero cuando lo necesites.</p> | |
| <div class="flex space-x-4"> | |
| <a href="#" class="text-gray-400 hover:text-white"> | |
| <i data-feather="facebook"></i> | |
| </a> | |
| <a href="#" class="text-gray-400 hover:text-white"> | |
| <i data-feather="twitter"></i> | |
| </a> | |
| <a href="#" class="text-gray-400 hover:text-white"> | |
| <i data-feather="instagram"></i> | |
| </a> | |
| <a href="#" class="text-gray-400 hover:text-white"> | |
| <i data-feather="linkedin"></i> | |
| </a> | |
| </div> | |
| </div> | |
| <div> | |
| <h4 class="text-lg font-bold mb-4">Enlaces útiles</h4> | |
| <ul class="space-y-2"> | |
| <li><a href="index.html" class="text-gray-400 hover:text-white">Inicio</a></li> | |
| <li><a href="como_funciona.html" class="text-gray-400 hover:text-white">Cómo funciona</a></li> | |
| <li><a href="beneficios.html" class="text-gray-400 hover:text-white">Beneficios</a></li> | |
| <li><a href="#" class="text-gray-400 hover:text-white">FAQ</a></li> | |
| <li><a href="#" class="text-gray-400 hover:text-white">Contacto</a></li> | |
| </ul> | |
| </div> | |
| <div> | |
| <h4 class="text-lg font-bold mb-4">Legal</h4> | |
| <ul class="space-y-2"> | |
| <li><a href="#" class="text-gray-400 hover:text-white">Términos y condiciones</a></li> | |
| <li><a href="#" class="text-gray-400 hover:text-white">Política de privacidad</a></li> | |
| <li><a href="#" class="text-gray-400 hover:text-white">Información legal</a></li> | |
| <li><a href="#" class="text-gray-400 hover:text-white">Defensa del consumidor</a></li> | |
| </ul> | |
| </div> | |
| <div> | |
| <h4 class="text-lg font-bold mb-4">Contacto</h4> | |
| <ul class="space-y-2"> | |
| <li class="flex items-center"> | |
| <i data-feather="mail" class="text-gray-400 mr-2"></i> | |
| <span class="text-gray-400">hola@flashloan.cl</span> | |
| </li> | |
| <li class="flex items-center"> | |
| <i data-feather="phone" class="text-gray-400 mr-2"></i> | |
| <span class="text-gray-400">+56 9 1234 5678</span> | |
| </li> | |
| <li class="flex items-center"> | |
| <i data-feather="map-pin" class="text-gray-400 mr-2"></i> | |
| <span class="text-gray-400">Av. Providencia 1234, Santiago</span> | |
| </li> | |
| </ul> | |
| </div> | |
| </div> | |
| <div class="border-t border-gray-800 mt-12 pt-8 text-center text-gray-400"> | |
| <p>© 2023 FlashLoan. Todos los derechos reservados.</p> | |
| </div> | |
| </div> | |
| </footer> | |
| <script> | |
| // Initialize Vanta.js background | |
| VANTA.WAVES({ | |
| el: "#vanta-bg", | |
| mouseControls: true, | |
| touchControls: true, | |
| gyroControls: false, | |
| minHeight: 200.00, | |
| minWidth: 200.00, | |
| scale: 1.00, | |
| scaleMobile: 1.00, | |
| color: 0xf59e0b, | |
| shininess: 35.00, | |
| waveHeight: 15.00, | |
| waveSpeed: 0.50, | |
| zoom: 0.75 | |
| }); | |
| // Loan calculator functionality | |
| document.addEventListener('DOMContentLoaded', function() { | |
| feather.replace(); | |
| const amountSlider = document.getElementById('amount'); | |
| const amountDisplay = document.getElementById('amount-display'); | |
| const termSlider = document.getElementById('term'); | |
| const termDisplay = document.getElementById('term-display'); | |
| const monthlyPayment = document.getElementById('monthly-payment'); | |
| const interestRate = document.getElementById('interest-rate'); | |
| const totalPayment = document.getElementById('total-payment'); | |
| function formatCurrency(value) { | |
| return '$' + value.toString().replace(/\B(?=(\d{3})+(?!\d))/g, "."); | |
| } | |
| function calculateLoan() { | |
| const amount = parseInt(amountSlider.value); | |
| const term = parseInt(termSlider.value); | |
| // Simple interest calculation for demo purposes | |
| const rate = 0.012; // 1.2% monthly | |
| const monthly = (amount * rate) / (1 - Math.pow(1 + rate, -term)); | |
| const total = monthly * term; | |
| amountDisplay.value = formatCurrency(amount); | |
| termDisplay.value = term + ' meses'; | |
| monthlyPayment.textContent = formatCurrency(Math.round(monthly)); | |
| interestRate.textContent = (rate * 100).toFixed(1) + '% mensual'; | |
| totalPayment.textContent = formatCurrency(Math.round(total)); | |
| } | |
| amountSlider.addEventListener('input', calculateLoan); | |
| termSlider.addEventListener('input', calculateLoan); | |
| // Initial calculation | |
| calculateLoan(); | |
| }); | |
| </script> | |
| </body> | |
| </html> | |