Spaces:
Running
Running
Download index.html from OnDecker/dig-easytech-connect: direct link, hf CLI and curl.
- Browser
- Download file 36 kB
-
https://huggingface.co/spaces/OnDecker/dig-easytech-connect/resolve/main/index.html
- Command line
-
hf download hf://spaces/OnDecker/dig-easytech-connect/index.html
-
curl -L -o index.html https://huggingface.co/spaces/OnDecker/dig-easytech-connect/resolve/main/index.html
36 kB
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <meta name="description" content="Need tech help? Submit your issue in seconds and get support from DIG N DECKER's expert team."> | |
| <title>Dig EasyTech Connect – Fast, Simple IT Support for Small Business</title> | |
| <script src="https://cdn.tailwindcss.com"></script> | |
| <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"> | |
| <script> | |
| tailwind.config = { | |
| theme: { | |
| extend: { | |
| colors: { | |
| 'dig-blue': '#1a73e8', | |
| 'dig-dark': '#2d3748', | |
| 'dig-light': '#f8fafc', | |
| } | |
| } | |
| } | |
| } | |
| </script> | |
| <style> | |
| .gradient-bg { | |
| background: linear-gradient(135deg, #1a73e8 0%, #4285f4 100%); | |
| } | |
| .issue-card:hover { | |
| transform: translateY(-5px); | |
| box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1); | |
| } | |
| .chat-bubble { | |
| border-radius: 20px 20px 20px 0; | |
| } | |
| .chat-bubble.response { | |
| border-radius: 20px 20px 0 20px; | |
| } | |
| .floating-button { | |
| box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2); | |
| } | |
| .testimonial-card { | |
| min-width: 100%; | |
| transition: transform 0.3s ease; | |
| } | |
| .carousel-container { | |
| scroll-snap-type: x mandatory; | |
| } | |
| .carousel-item { | |
| scroll-snap-align: start; | |
| } | |
| .animate-pulse { | |
| animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; | |
| } | |
| @keyframes pulse { | |
| 0%, 100% { opacity: 1; } | |
| 50% { opacity: 0.5; } | |
| } | |
| .login-modal { | |
| transition: all 0.3s ease-out; | |
| opacity: 0; | |
| transform: translateY(-20px); | |
| pointer-events: none; | |
| } | |
| .login-modal.active { | |
| opacity: 1; | |
| transform: translateY(0); | |
| pointer-events: all; | |
| } | |
| .password-toggle { | |
| right: 10px; | |
| top: 50%; | |
| transform: translateY(-50%); | |
| } | |
| </style> | |
| </head> | |
| <body class="font-sans bg-dig-light text-dig-dark"> | |
| <!-- Header --> | |
| <header class="gradient-bg text-white"> | |
| <div class="container mx-auto px-4 py-6"> | |
| <div class="flex justify-between items-center"> | |
| <div class="flex items-center space-x-2"> | |
| <i class="fas fa-laptop-code text-2xl"></i> | |
| <h1 class="text-xl font-bold">Dig EasyTech Connect</h1> | |
| </div> | |
| <div class="flex items-center space-x-4"> | |
| <button id="loginBtn" class="text-white hover:text-gray-200 transition-colors flex items-center"> | |
| <i class="fas fa-user-circle mr-1"></i> | |
| <span>Customer Login</span> | |
| </button> | |
| <div class="text-sm"> | |
| <span>Powered by</span> | |
| <span class="font-bold">DeepSite</span> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="mt-8 text-center"> | |
| <h2 class="text-3xl font-bold mb-2">Fast IT Support for Your Business</h2> | |
| <p class="text-lg opacity-90">Get expert tech help when you need it most</p> | |
| </div> | |
| </div> | |
| </header> | |
| <!-- Login Modal --> | |
| <div id="loginModal" class="login-modal fixed inset-0 bg-black bg-opacity-50 z-50 flex items-center justify-center p-4"> | |
| <div class="bg-white rounded-lg shadow-xl w-full max-w-md"> | |
| <div class="gradient-bg text-white p-4 rounded-t-lg flex justify-between items-center"> | |
| <h3 class="font-semibold text-lg">Customer Login</h3> | |
| <button id="closeLoginBtn" class="text-white hover:text-gray-200"> | |
| <i class="fas fa-times"></i> | |
| </button> | |
| </div> | |
| <div class="p-6"> | |
| <form id="loginForm"> | |
| <div class="mb-4"> | |
| <label class="block text-gray-700 mb-2" for="loginEmail">Email Address</label> | |
| <input type="email" id="loginEmail" class="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-dig-blue" required> | |
| </div> | |
| <div class="mb-4 relative"> | |
| <label class="block text-gray-700 mb-2" for="loginPassword">Password</label> | |
| <input type="password" id="loginPassword" class="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-dig-blue pr-10" required> | |
| <button type="button" id="togglePassword" class="absolute password-toggle text-gray-500 hover:text-dig-blue"> | |
| <i class="fas fa-eye"></i> | |
| </button> | |
| </div> | |
| <div class="mb-4 flex items-center justify-between"> | |
| <label class="flex items-center"> | |
| <input type="checkbox" class="rounded text-dig-blue focus:ring-dig-blue"> | |
| <span class="ml-2 text-gray-700">Remember me</span> | |
| </label> | |
| <a href="#" class="text-sm text-dig-blue hover:underline">Forgot password?</a> | |
| </div> | |
| <button type="submit" class="w-full gradient-bg text-white py-3 px-6 rounded-lg font-medium hover:opacity-90 transition-opacity mb-4"> | |
| Sign In | |
| </button> | |
| <div class="text-center text-sm text-gray-600"> | |
| Don't have an account? <a href="#" class="text-dig-blue hover:underline">Register here</a> | |
| </div> | |
| </form> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Main Content --> | |
| <main class="container mx-auto px-4 py-8"> | |
| <!-- Thank You Screen (Hidden by default) --> | |
| <section id="thankYouScreen" class="hidden mb-12 text-center"> | |
| <div class="bg-white rounded-lg shadow-md p-8 max-w-2xl mx-auto"> | |
| <div class="w-20 h-20 gradient-bg rounded-full flex items-center justify-center text-white text-3xl mx-auto mb-6"> | |
| <i class="fas fa-check"></i> | |
| </div> | |
| <h2 class="text-2xl font-bold text-dig-blue mb-4">Request Received!</h2> | |
| <p class="text-lg mb-6">Thank you for contacting Dig N Decker. A support technician will reach out to you within <span class="font-bold text-dig-blue">15 minutes</span>.</p> | |
| <div class="bg-blue-50 border-l-4 border-dig-blue p-4 mb-6 text-left"> | |
| <h3 class="font-bold text-dig-blue mb-2">While You Wait:</h3> | |
| <ul class="list-disc pl-5 space-y-1"> | |
| <li>Restart your device - this solves many common issues</li> | |
| <li>Check all cables and connections</li> | |
| <li>Note any error messages you're seeing</li> | |
| <li>Gather information about when the problem started</li> | |
| </ul> | |
| </div> | |
| <div class="mb-6 space-y-3"> | |
| <h3 class="font-semibold">Need immediate help?</h3> | |
| <div class="flex flex-col sm:flex-row justify-center gap-3"> | |
| <a href="tel:+18005551234" class="inline-block gradient-bg text-white py-3 px-6 rounded-lg font-medium hover:opacity-90 transition-opacity"> | |
| <i class="fas fa-phone-alt mr-2"></i> Call Now: (082) 455-1536 | |
| </a> | |
| <a href="mailto:info@digndecker.co.za" class="inline-block bg-gray-800 text-white py-3 px-6 rounded-lg font-medium hover:opacity-90 transition-opacity"> | |
| <i class="fas fa-envelope mr-2"></i> Email Support | |
| </a> | |
| </div> | |
| </div> | |
| <p class="text-sm text-gray-500">We've sent a confirmation to your email with your case number.</p> | |
| </div> | |
| </section> | |
| <!-- Quick Help Section --> | |
| <section class="mb-12" id="quickHelpSection"> | |
| <h3 class="text-xl font-semibold mb-6 text-dig-blue">How can we help today?</h3> | |
| <div class="grid grid-cols-2 gap-4"> | |
| <button class="issue-card bg-white p-4 rounded-lg shadow-md transition-all duration-200 flex flex-col items-center"> | |
| <i class="fas fa-laptop text-3xl text-dig-blue mb-2"></i> | |
| <span>Slow Computer</span> | |
| </button> | |
| <button class="issue-card bg-white p-4 rounded-lg shadow-md transition-all duration-200 flex flex-col items-center"> | |
| <i class="fas fa-bug text-3xl text-dig-blue mb-2"></i> | |
| <span>Software Error</span> | |
| </button> | |
| <button class="issue-card bg-white p-4 rounded-lg shadow-md transition-all duration-200 flex flex-col items-center"> | |
| <i class="fas fa-wifi text-3xl text-dig-blue mb-2"></i> | |
| <span>Network Issue</span> | |
| </button> | |
| <button class="issue-card bg-white p-4 rounded-lg shadow-md transition-all duration-200 flex flex-col items-center"> | |
| <i class="fas fa-lock text-3xl text-dig-blue mb-2"></i> | |
| <span>Security Help</span> | |
| </button> | |
| </div> | |
| </section> | |
| <!-- Contact Form --> | |
| <section class="mb-12" id="contactFormSection"> | |
| <div class="bg-white rounded-lg shadow-md p-6"> | |
| <h3 class="text-xl font-semibold mb-4 text-dig-blue">Describe Your Issue</h3> | |
| <form id="supportForm"> | |
| <div class="mb-4"> | |
| <label class="block text-gray-700 mb-2" for="name">Your Name</label> | |
| <input type="text" id="name" class="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-dig-blue"> | |
| </div> | |
| <div class="mb-4"> | |
| <label class="block text-gray-700 mb-2" for="company">Company Name</label> | |
| <input type="text" id="company" class="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-dig-blue"> | |
| </div> | |
| <div class="mb-4"> | |
| <label class="block text-gray-700 mb-2" for="email">Email</label> | |
| <input type="email" id="email" class="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-dig-blue"> | |
| </div> | |
| <div class="mb-4"> | |
| <label class="block text-gray-700 mb-2" for="phone">Phone (optional)</label> | |
| <input type="tel" id="phone" class="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-dig-blue"> | |
| </div> | |
| <div class="mb-4"> | |
| <label class="block text-gray-700 mb-2" for="issue">What's the issue?</label> | |
| <select id="issue" class="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-dig-blue"> | |
| <option value="">Select an issue type</option> | |
| <option value="hardware">Hardware Problem</option> | |
| <option value="software">Software Issue</option> | |
| <option value="network">Network/Connectivity</option> | |
| <option value="security">Security Concern</option> | |
| <option value="other">Other</option> | |
| </select> | |
| </div> | |
| <div class="mb-4"> | |
| <label class="block text-gray-700 mb-2" for="description">Description</label> | |
| <textarea id="description" rows="4" class="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-dig-blue" placeholder="Please describe your issue in detail..."></textarea> | |
| </div> | |
| <div class="mb-4"> | |
| <label class="flex items-center"> | |
| <input type="checkbox" class="rounded text-dig-blue focus:ring-dig-blue"> | |
| <span class="ml-2 text-gray-700">I agree to the terms of service</span> | |
| </label> | |
| </div> | |
| <button type="submit" class="w-full gradient-bg text-white py-3 px-6 rounded-lg font-medium hover:opacity-90 transition-opacity"> | |
| Submit Support Request | |
| </button> | |
| </form> | |
| </div> | |
| </section> | |
| <!-- Live Chat Option --> | |
| <section class="mb-12"> | |
| <div class="bg-white rounded-lg shadow-md p-6"> | |
| <div class="flex items-center justify-between mb-4"> | |
| <h3 class="text-xl font-semibold text-dig-blue">Need immediate help?</h3> | |
| <span class="bg-red-100 text-red-800 text-xs px-2 py-1 rounded-full">Live Now</span> | |
| </div> | |
| <p class="mb-4">Chat with one of our support specialists in real-time.</p> | |
| <button id="startChatBtn" class="w-full bg-green-600 text-white py-3 px-6 rounded-lg font-medium hover:bg-green-700 transition-colors flex items-center justify-center"> | |
| <i class="fas fa-comment-dots mr-2"></i> Start Live Chat | |
| </button> | |
| </div> | |
| </section> | |
| <!-- Chat Modal (Hidden by default) --> | |
| <div id="chatModal" class="hidden fixed inset-0 bg-black bg-opacity-50 z-50 flex items-center justify-center p-4"> | |
| <div class="bg-white rounded-lg shadow-xl w-full max-w-md max-h-[80vh] flex flex-col"> | |
| <div class="gradient-bg text-white p-4 rounded-t-lg flex justify-between items-center"> | |
| <h3 class="font-semibold">Live Support Chat</h3> | |
| <button id="closeChatBtn" class="text-white hover:text-gray-200"> | |
| <i class="fas fa-times"></i> | |
| </button> | |
| </div> | |
| <div id="chatMessages" class="p-4 overflow-y-auto flex-grow space-y-3"> | |
| <div class="flex"> | |
| <div class="bg-gray-100 p-3 chat-bubble max-w-xs"> | |
| <p class="text-sm">Hello! Thanks for reaching out. How can we help you today?</p> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="p-4 border-t"> | |
| <div class="flex"> | |
| <input type="text" id="chatInput" placeholder="Type your message..." class="flex-grow px-4 py-2 border rounded-l-lg focus:outline-none focus:ring-1 focus:ring-dig-blue"> | |
| <button id="sendChatBtn" class="gradient-bg text-white px-4 py-2 rounded-r-lg hover:opacity-90"> | |
| <i class="fas fa-paper-plane"></i> | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- FAQ Section --> | |
| <section class="mb-12"> | |
| <h3 class="text-xl font-semibold mb-6 text-dig-blue">Frequently Asked Questions</h3> | |
| <div class="bg-white rounded-lg shadow-md overflow-hidden"> | |
| <div class="border-b"> | |
| <button class="faq-question w-full text-left p-4 hover:bg-gray-50 transition-colors flex justify-between items-center"> | |
| <span>How quickly will I get help?</span> | |
| <i class="fas fa-chevron-down text-dig-blue transition-transform"></i> | |
| </button> | |
| <div class="faq-answer hidden p-4 bg-gray-50"> | |
| <p>Our average response time is under 15 minutes during business hours (8am-6pm EST). After hours requests are typically addressed by the next business morning.</p> | |
| </div> | |
| </div> | |
| <div class="border-b"> | |
| <button class="faq-question w-full text-left p-4 hover:bg-gray-50 transition-colors flex justify-between items-center"> | |
| <span>What information should I prepare?</span> | |
| <i class="fas fa-chevron-down text-dig-blue transition-transform"></i> | |
| </button> | |
| <div class="faq-answer hidden p-4 bg-gray-50"> | |
| <p>For faster service, have ready:</p> | |
| <ul class="list-disc pl-5 mt-2 space-y-1"> | |
| <li>Any error messages you're seeing</li> | |
| <li>When the problem started</li> | |
| <li>What you've already tried</li> | |
| <li>Device make/model if relevant</li> | |
| </ul> | |
| </div> | |
| </div> | |
| <div class="border-b"> | |
| <button class="faq-question w-full text-left p-4 hover:bg-gray-50 transition-colors flex justify-between items-center"> | |
| <span>Do you offer remote support?</span> | |
| <i class="fas fa-chevron-down text-dig-blue transition-transform"></i> | |
| </button> | |
| <div class="faq-answer hidden p-4 bg-gray-50"> | |
| <p>Yes! Most issues can be resolved remotely through our secure screen sharing software. We'll send you a link to download our remote support tool when needed.</p> | |
| </div> | |
| </div> | |
| </div> | |
| </section> | |
| <!-- Testimonials --> | |
| <section class="mb-12"> | |
| <h3 class="text-xl font-semibold mb-6 text-dig-blue">What Our Clients Say</h3> | |
| <div class="relative"> | |
| <div class="carousel-container flex overflow-x-auto pb-4 space-x-4 scrollbar-hide"> | |
| <div class="carousel-item flex-shrink-0 w-4/5 md:w-1/2 lg:w-1/3"> | |
| <div class="testimonial-card bg-white p-6 rounded-lg shadow-md h-full"> | |
| <div class="flex items-center mb-4"> | |
| <div class="w-10 h-10 rounded-full bg-dig-blue text-white flex items-center justify-center"> | |
| <i class="fas fa-user"></i> | |
| </div> | |
| <div class="ml-3"> | |
| <h4 class="font-semibold">Sarah K.</h4> | |
| <p class="text-sm text-gray-500">Small Business Owner</p> | |
| </div> | |
| </div> | |
| <p class="text-gray-700">"The Dig N Decker team saved us from a major data loss situation. Their response was immediate and they walked us through every step of the recovery process."</p> | |
| <div class="mt-4 flex text-yellow-400"> | |
| <i class="fas fa-star"></i> | |
| <i class="fas fa-star"></i> | |
| <i class="fas fa-star"></i> | |
| <i class="fas fa-star"></i> | |
| <i class="fas fa-star"></i> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="carousel-item flex-shrink-0 w-4/5 md:w-1/2 lg:w-1/3"> | |
| <div class="testimonial-card bg-white p-6 rounded-lg shadow-md h-full"> | |
| <div class="flex items-center mb-4"> | |
| <div class="w-10 h-10 rounded-full bg-dig-blue text-white flex items-center justify-center"> | |
| <i class="fas fa-user"></i> | |
| </div> | |
| <div class="ml-3"> | |
| <h4 class="font-semibold">Michael T.</h4> | |
| <p class="text-sm text-gray-500">Office Manager</p> | |
| </div> | |
| </div> | |
| <p class="text-gray-700">"Our network was down and we were losing productivity fast. Dig N Decker had us back online in under 30 minutes. Incredible service!"</p> | |
| <div class="mt-4 flex text-yellow-400"> | |
| <i class="fas fa-star"></i> | |
| <i class="fas fa-star"></i> | |
| <i class="fas fa-star"></i> | |
| <i class="fas fa-star"></i> | |
| <i class="fas fa-star"></i> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="carousel-item flex-shrink-0 w-4/5 md:w-1/2 lg:w-1/3"> | |
| <div class="testimonial-card bg-white p-6 rounded-lg shadow-md h-full"> | |
| <div class="flex items-center mb-4"> | |
| <div class="w-10 h-10 rounded-full bg-dig-blue text-white flex items-center justify-center"> | |
| <i class="fas fa-user"></i> | |
| </div> | |
| <div class="ml-3"> | |
| <h4 class="font-semibold">Lisa M.</h4> | |
| <p class="text-sm text-gray-500">Nonprofit Director</p> | |
| </div> | |
| </div> | |
| <p class="text-gray-700">"As a nonprofit with limited IT budget, Dig N Decker has been a lifesaver. They explain things in plain English and never make us feel rushed."</p> | |
| <div class="mt-4 flex text-yellow-400"> | |
| <i class="fas fa-star"></i> | |
| <i class="fas fa-star"></i> | |
| <i class="fas fa-star"></i> | |
| <i class="fas fa-star"></i> | |
| <i class="fas fa-star-half-alt"></i> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </section> | |
| <!-- Support Hours --> | |
| <section class="mb-12"> | |
| <div class="bg-white rounded-lg shadow-md p-6"> | |
| <h3 class="text-xl font-semibold mb-4 text-dig-blue">Support Hours</h3> | |
| <div class="space-y-2"> | |
| <div class="flex justify-between"> | |
| <span>Monday - Friday</span> | |
| <span class="font-medium">8:00 AM - 6:00 PM EST</span> | |
| </div> | |
| <div class="flex justify-between"> | |
| <span>Saturday</span> | |
| <span class="font-medium">9:00 AM - 2:00 PM EST</span> | |
| </div> | |
| <div class="flex justify-between"> | |
| <span>Sunday</span> | |
| <span class="font-medium">Emergency Support Only</span> | |
| </div> | |
| </div> | |
| <div class="mt-4 p-3 bg-yellow-50 border-l-4 border-yellow-400"> | |
| <p class="text-sm">For emergencies outside these hours, call <span class="font-medium">(082) 455-1536</span> and follow the prompts.</p> | |
| </div> | |
| </div> | |
| </section> | |
| </main> | |
| <!-- Footer --> | |
| <footer class="bg-dig-dark text-white py-8"> | |
| <div class="container mx-auto px-4"> | |
| <div class="grid grid-cols-1 md:grid-cols-3 gap-8"> | |
| <div> | |
| <h4 class="text-lg font-semibold mb-4">Dig EasyTech Connect</h4> | |
| <p class="text-gray-400">Fast, friendly IT support for small businesses and organizations.</p> | |
| </div> | |
| <div> | |
| <h4 class="text-lg font-semibold mb-4">Quick Links</h4> | |
| <ul class="space-y-2"> | |
| <li><a href="#" class="text-gray-400 hover:text-white transition-colors">Home</a></li> | |
| <li><a href="#" class="text-gray-400 hover:text-white transition-colors">Support Request</a></li> | |
| <li><a href="#" class="text-gray-400 hover:text-white transition-colors">Live Chat</a></li> | |
| <li><a href="#" class="text-gray-400 hover:text-white transition-colors">FAQs</a></li> | |
| </ul> | |
| </div> | |
| <div> | |
| <h4 class="text-lg font-semibold mb-4">Contact Us</h4> | |
| <ul class="space-y-2 text-gray-400"> | |
| <li class="flex items-center"> | |
| <i class="fas fa-phone-alt mr-2"></i> | |
| <span>(082) 455-1536</span> | |
| </li> | |
| <li class="flex items-center"> | |
| <i class="fas fa-envelope mr-2"></i> | |
| <span>info@digndecker.co.za</span> | |
| </li> | |
| <li class="flex items-center"> | |
| <i class="fas fa-map-marker-alt mr-2"></i> | |
| <span>Block B, 1st Floor Clearwater Office Park South, 1 Park Road,Parkhaven, Boksburg , 1459</span> | |
| </li> | |
| </ul> | |
| </div> | |
| </div> | |
| <div class="border-t border-gray-700 mt-8 pt-6 text-center text-gray-400 text-sm"> | |
| <p>© 2025 Dig N Decker. All rights reserved.</p> | |
| </div> | |
| </div> | |
| </footer> | |
| <!-- Floating Help Button --> | |
| <div class="fixed bottom-6 right-6"> | |
| <button id="floatingHelpBtn" class="floating-button gradient-bg text-white w-14 h-14 rounded-full flex items-center justify-center text-xl hover:opacity-90 transition-opacity"> | |
| <i class="fas fa-question"></i> | |
| </button> | |
| </div> | |
| <script> | |
| // Form submission | |
| document.getElementById('supportForm').addEventListener('submit', function(e) { | |
| e.preventDefault(); | |
| // Show loading state | |
| const submitBtn = e.target.querySelector('button[type="submit"]'); | |
| const originalText = submitBtn.innerHTML; | |
| submitBtn.innerHTML = '<i class="fas fa-circle-notch fa-spin mr-2"></i> Processing...'; | |
| submitBtn.disabled = true; | |
| // Simulate form processing | |
| setTimeout(() => { | |
| // Hide form and show thank you screen | |
| document.getElementById('contactFormSection').classList.add('hidden'); | |
| document.getElementById('quickHelpSection').classList.add('hidden'); | |
| document.getElementById('thankYouScreen').classList.remove('hidden'); | |
| // Scroll to thank you message | |
| document.getElementById('thankYouScreen').scrollIntoView({ behavior: 'smooth' }); | |
| // Reset form button (though form is hidden) | |
| submitBtn.innerHTML = originalText; | |
| submitBtn.disabled = false; | |
| }, 1500); | |
| }); | |
| // Chat modal toggle | |
| const chatModal = document.getElementById('chatModal'); | |
| const startChatBtn = document.getElementById('startChatBtn'); | |
| const closeChatBtn = document.getElementById('closeChatBtn'); | |
| const floatingHelpBtn = document.getElementById('floatingHelpBtn'); | |
| startChatBtn.addEventListener('click', () => { | |
| chatModal.classList.remove('hidden'); | |
| document.body.style.overflow = 'hidden'; | |
| }); | |
| floatingHelpBtn.addEventListener('click', () => { | |
| chatModal.classList.remove('hidden'); | |
| document.body.style.overflow = 'hidden'; | |
| }); | |
| closeChatBtn.addEventListener('click', () => { | |
| chatModal.classList.add('hidden'); | |
| document.body.style.overflow = 'auto'; | |
| }); | |
| // Chat functionality | |
| const chatInput = document.getElementById('chatInput'); | |
| const sendChatBtn = document.getElementById('sendChatBtn'); | |
| const chatMessages = document.getElementById('chatMessages'); | |
| sendChatBtn.addEventListener('click', sendMessage); | |
| chatInput.addEventListener('keypress', (e) => { | |
| if (e.key === 'Enter') sendMessage(); | |
| }); | |
| function sendMessage() { | |
| const message = chatInput.value.trim(); | |
| if (message) { | |
| // Add user message | |
| chatMessages.innerHTML += ` | |
| <div class="flex justify-end"> | |
| <div class="gradient-bg text-white p-3 chat-bubble response max-w-xs"> | |
| <p class="text-sm">${message}</p> | |
| </div> | |
| </div> | |
| `; | |
| chatInput.value = ''; | |
| // Scroll to bottom | |
| chatMessages.scrollTop = chatMessages.scrollHeight; | |
| // Show typing indicator | |
| const typingIndicator = document.createElement('div'); | |
| typingIndicator.className = 'flex'; | |
| typingIndicator.innerHTML = ` | |
| <div class="bg-gray-100 p-3 chat-bubble max-w-xs"> | |
| <div class="flex space-x-1"> | |
| <div class="w-2 h-2 bg-gray-400 rounded-full animate-pulse"></div> | |
| <div class="w-2 h-2 bg-gray-400 rounded-full animate-pulse"></div> | |
| <div class="w-2 h-2 bg-gray-400 rounded-full animate-pulse"></div> | |
| </div> | |
| </div> | |
| `; | |
| chatMessages.appendChild(typingIndicator); | |
| chatMessages.scrollTop = chatMessages.scrollHeight; | |
| // Simulate response after delay | |
| setTimeout(() => { | |
| // Remove typing indicator | |
| chatMessages.removeChild(typingIndicator); | |
| // Add response | |
| const responses = [ | |
| "I understand. Let me check on that for you.", | |
| "Thanks for explaining. We can definitely help with that.", | |
| "That's a common issue we see. Here's what we recommend...", | |
| "I'll need to look into this further. Can you tell me when this first started happening?" | |
| ]; | |
| const randomResponse = responses[Math.floor(Math.random() * responses.length)]; | |
| chatMessages.innerHTML += ` | |
| <div class="flex"> | |
| <div class="bg-gray-100 p-3 chat-bubble max-w-xs"> | |
| <p class="text-sm">${randomResponse}</p> | |
| </div> | |
| </div> | |
| `; | |
| chatMessages.scrollTop = chatMessages.scrollHeight; | |
| }, 1500); | |
| } | |
| } | |
| // FAQ accordion | |
| const faqQuestions = document.querySelectorAll('.faq-question'); | |
| faqQuestions.forEach(question => { | |
| question.addEventListener('click', () => { | |
| const answer = question.nextElementSibling; | |
| const icon = question.querySelector('i'); | |
| // Toggle answer visibility | |
| answer.classList.toggle('hidden'); | |
| // Rotate icon | |
| icon.classList.toggle('rotate-180'); | |
| }); | |
| }); | |
| // Login Modal Functionality | |
| const loginModal = document.getElementById('loginModal'); | |
| const loginBtn = document.getElementById('loginBtn'); | |
| const closeLoginBtn = document.getElementById('closeLoginBtn'); | |
| const togglePassword = document.getElementById('togglePassword'); | |
| const loginPassword = document.getElementById('loginPassword'); | |
| const loginForm = document.getElementById('loginForm'); | |
| // Toggle login modal | |
| loginBtn.addEventListener('click', () => { | |
| loginModal.classList.add('active'); | |
| document.body.style.overflow = 'hidden'; | |
| }); | |
| closeLoginBtn.addEventListener('click', () => { | |
| loginModal.classList.remove('active'); | |
| document.body.style.overflow = 'auto'; | |
| }); | |
| // Toggle password visibility | |
| togglePassword.addEventListener('click', () => { | |
| const type = loginPassword.getAttribute('type') === 'password' ? 'text' : 'password'; | |
| loginPassword.setAttribute('type', type); | |
| togglePassword.innerHTML = type === 'password' ? '<i class="fas fa-eye"></i>' : '<i class="fas fa-eye-slash"></i>'; | |
| }); | |
| // Login form submission | |
| loginForm.addEventListener('submit', (e) => { | |
| e.preventDefault(); | |
| const email = document.getElementById('loginEmail').value; | |
| const password = document.getElementById('loginPassword').value; | |
| const submitBtn = loginForm.querySelector('button[type="submit"]'); | |
| const originalText = submitBtn.innerHTML; | |
| // Show loading state | |
| submitBtn.innerHTML = '<i class="fas fa-circle-notch fa-spin mr-2"></i> Signing in...'; | |
| submitBtn.disabled = true; | |
| // Simulate login process | |
| setTimeout(() => { | |
| // For demo purposes, we'll just show an alert | |
| alert('Login functionality would connect to your authentication system.\n\nDemo credentials:\nEmail: user@example.com\nPassword: password123'); | |
| // Reset form | |
| submitBtn.innerHTML = originalText; | |
| submitBtn.disabled = false; | |
| // Close modal (in a real app, you'd redirect to dashboard) | |
| loginModal.classList.remove('active'); | |
| document.body.style.overflow = 'auto'; | |
| }, 1500); | |
| }); | |
| // Close modal when clicking outside | |
| loginModal.addEventListener('click', (e) => { | |
| if (e.target === loginModal) { | |
| loginModal.classList.remove('active'); | |
| document.body.style.overflow = 'auto'; | |
| } | |
| }); | |
| </script> | |
| <p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=OnDecker/dig-easytech-connect" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body> | |
| </html> |