Download index.html from Algeus/deepsite: direct link, hf CLI and curl.
- Browser
- Download file 32.2 kB
-
https://huggingface.co/spaces/Algeus/deepsite/resolve/main/index.html
- Command line
-
hf download hf://spaces/Algeus/deepsite/index.html
-
curl -L -o index.html https://huggingface.co/spaces/Algeus/deepsite/resolve/main/index.html
32.2 kB
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>QA Automation Wiki</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"> | |
| <style> | |
| .tool-card:hover { | |
| transform: translateY(-5px); | |
| box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1); | |
| } | |
| .sidebar-link:hover { | |
| background-color: rgba(59, 130, 246, 0.1); | |
| } | |
| .code-block { | |
| font-family: 'Courier New', monospace; | |
| background-color: #2d3748; | |
| color: #f7fafc; | |
| } | |
| .active-tab { | |
| border-bottom: 3px solid #3b82f6; | |
| color: #3b82f6; | |
| } | |
| .search-highlight { | |
| background-color: #fef08a; | |
| } | |
| </style> | |
| </head> | |
| <body class="bg-gray-50"> | |
| <div class="flex h-screen overflow-hidden"> | |
| <!-- Sidebar --> | |
| <div class="hidden md:flex md:flex-shrink-0"> | |
| <div class="flex flex-col w-64 border-r border-gray-200 bg-white"> | |
| <div class="h-16 flex items-center px-4 border-b border-gray-200"> | |
| <h1 class="text-xl font-bold text-blue-600"> | |
| <i class="fas fa-robot mr-2"></i>QA Automation Wiki | |
| </h1> | |
| </div> | |
| <div class="flex-1 flex flex-col overflow-y-auto"> | |
| <div class="p-4"> | |
| <div class="relative"> | |
| <input type="text" placeholder="Search tools..." | |
| class="w-full pl-10 pr-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500"> | |
| <i class="fas fa-search absolute left-3 top-3 text-gray-400"></i> | |
| </div> | |
| </div> | |
| <nav class="flex-1 px-2 space-y-1"> | |
| <div class="space-y-1"> | |
| <h3 class="px-3 text-xs font-semibold text-gray-500 uppercase tracking-wider">Popular Tools</h3> | |
| <a href="#" class="sidebar-link flex items-center px-3 py-2 text-sm font-medium rounded-md text-gray-900 hover:text-blue-600"> | |
| <i class="fas fa-play-circle mr-3 text-gray-400"></i> | |
| Selenium | |
| </a> | |
| <a href="#" class="sidebar-link flex items-center px-3 py-2 text-sm font-medium rounded-md text-gray-900 hover:text-blue-600"> | |
| <i class="fas fa-code mr-3 text-gray-400"></i> | |
| Cypress | |
| </a> | |
| <a href="#" class="sidebar-link flex items-center px-3 py-2 text-sm font-medium rounded-md text-gray-900 hover:text-blue-600"> | |
| <i class="fas fa-terminal mr-3 text-gray-400"></i> | |
| Playwright | |
| </a> | |
| <a href="#" class="sidebar-link flex items-center px-3 py-2 text-sm font-medium rounded-md text-gray-900 hover:text-blue-600"> | |
| <i class="fas fa-mobile-alt mr-3 text-gray-400"></i> | |
| Appium | |
| </a> | |
| <a href="#" class="sidebar-link flex items-center px-3 py-2 text-sm font-medium rounded-md text-gray-900 hover:text-blue-600"> | |
| <i class="fas fa-check-circle mr-3 text-gray-400"></i> | |
| TestNG | |
| </a> | |
| <a href="#" class="sidebar-link flex items-center px-3 py-2 text-sm font-medium rounded-md text-gray-900 hover:text-blue-600"> | |
| <i class="fas fa-vial mr-3 text-gray-400"></i> | |
| JUnit | |
| </a> | |
| </div> | |
| <div class="space-y-1 mt-4"> | |
| <h3 class="px-3 text-xs font-semibold text-gray-500 uppercase tracking-wider">Topics</h3> | |
| <a href="#" class="sidebar-link flex items-center px-3 py-2 text-sm font-medium rounded-md text-gray-900 hover:text-blue-600"> | |
| <i class="fas fa-layer-group mr-3 text-gray-400"></i> | |
| Page Object Model | |
| </a> | |
| <a href="#" class="sidebar-link flex items-center px-3 py-2 text-sm font-medium rounded-md text-gray-900 hover:text-blue-600"> | |
| <i class="fas fa-sitemap mr-3 text-gray-400"></i> | |
| Test Architecture | |
| </a> | |
| <a href="#" class="sidebar-link flex items-center px-3 py-2 text-sm font-medium rounded-md text-gray-900 hover:text-blue-600"> | |
| <i class="fas fa-tachometer-alt mr-3 text-gray-400"></i> | |
| Performance Testing | |
| </a> | |
| <a href="#" class="sidebar-link flex items-center px-3 py-2 text-sm font-medium rounded-md text-gray-900 hover:text-blue-600"> | |
| <i class="fas fa-shield-alt mr-3 text-gray-400"></i> | |
| Security Testing | |
| </a> | |
| <a href="#" class="sidebar-link flex items-center px-3 py-2 text-sm font-medium rounded-md text-gray-900 hover:text-blue-600"> | |
| <i class="fas fa-cloud mr-3 text-gray-400"></i> | |
| CI/CD Integration | |
| </a> | |
| </div> | |
| </nav> | |
| </div> | |
| <div class="p-4 border-t border-gray-200"> | |
| <div class="flex items-center"> | |
| <img class="h-8 w-8 rounded-full" src="https://images.unsplash.com/photo-1472099645785-5658abf4ff4e?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=facearea&facepad=2&w=256&h=256&q=80" alt=""> | |
| <div class="ml-3"> | |
| <p class="text-sm font-medium text-gray-700">John Doe</p> | |
| <p class="text-xs font-medium text-gray-500">QA Automation Engineer</p> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Main content --> | |
| <div class="flex-1 overflow-auto"> | |
| <!-- Mobile header --> | |
| <div class="md:hidden flex items-center justify-between px-4 py-3 border-b border-gray-200 bg-white"> | |
| <h1 class="text-lg font-bold text-blue-600"> | |
| <i class="fas fa-robot mr-2"></i>QA Wiki | |
| </h1> | |
| <button class="p-2 rounded-md text-gray-500 hover:text-gray-900 focus:outline-none"> | |
| <i class="fas fa-bars"></i> | |
| </button> | |
| </div> | |
| <!-- Tool header --> | |
| <div class="bg-white shadow-sm"> | |
| <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-6"> | |
| <div class="flex items-center justify-between"> | |
| <div> | |
| <h2 class="text-2xl font-bold text-gray-900">Selenium WebDriver</h2> | |
| <p class="mt-1 text-sm text-gray-500">Browser automation framework for web application testing</p> | |
| </div> | |
| <div class="flex space-x-3"> | |
| <span class="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-green-100 text-green-800"> | |
| <i class="fas fa-check-circle mr-1"></i> Active | |
| </span> | |
| <button class="inline-flex items-center px-3 py-1 border border-gray-300 rounded-md shadow-sm text-sm font-medium text-gray-700 bg-white hover:bg-gray-50"> | |
| <i class="fas fa-star mr-1 text-yellow-400"></i> Favorite | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Tabs --> | |
| <div class="bg-white border-b border-gray-200"> | |
| <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"> | |
| <nav class="-mb-px flex space-x-8 overflow-x-auto"> | |
| <a href="#" class="active-tab whitespace-nowrap py-4 px-1 border-b-2 font-medium text-sm"> | |
| <i class="fas fa-info-circle mr-2"></i>Overview | |
| </a> | |
| <a href="#" class="whitespace-nowrap py-4 px-1 border-b-2 font-medium text-sm text-gray-500 hover:text-gray-700 hover:border-gray-300"> | |
| <i class="fas fa-code mr-2"></i>Examples | |
| </a> | |
| <a href="#" class="whitespace-nowrap py-4 px-1 border-b-2 font-medium text-sm text-gray-500 hover:text-gray-700 hover:border-gray-300"> | |
| <i class="fas fa-book mr-2"></i>Documentation | |
| </a> | |
| <a href="#" class="whitespace-nowrap py-4 px-1 border-b-2 font-medium text-sm text-gray-500 hover:text-gray-700 hover:border-gray-300"> | |
| <i class="fas fa-video mr-2"></i>Tutorials | |
| </a> | |
| <a href="#" class="whitespace-nowrap py-4 px-1 border-b-2 font-medium text-sm text-gray-500 hover:text-gray-700 hover:border-gray-300"> | |
| <i class="fas fa-question-circle mr-2"></i>FAQ | |
| </a> | |
| <a href="#" class="whitespace-nowrap py-4 px-1 border-b-2 font-medium text-sm text-gray-500 hover:text-gray-700 hover:border-gray-300"> | |
| <i class="fas fa-comments mr-2"></i>Community | |
| </a> | |
| </nav> | |
| </div> | |
| </div> | |
| <!-- Main content area --> | |
| <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-6"> | |
| <div class="grid grid-cols-1 lg:grid-cols-3 gap-6"> | |
| <!-- Left column --> | |
| <div class="lg:col-span-2 space-y-6"> | |
| <!-- Overview section --> | |
| <div class="bg-white shadow rounded-lg p-6"> | |
| <h3 class="text-lg font-medium text-gray-900 mb-4"> | |
| <i class="fas fa-info-circle text-blue-500 mr-2"></i>Overview | |
| </h3> | |
| <div class="prose max-w-none text-gray-600"> | |
| <p>Selenium WebDriver is a web framework that allows you to execute cross-browser tests. It provides a programming interface to create and run test cases, giving you the ability to create robust, browser-based regression automation suites and tests.</p> | |
| <div class="mt-4 grid grid-cols-1 md:grid-cols-2 gap-4"> | |
| <div class="border-l-4 border-blue-500 pl-4"> | |
| <h4 class="font-semibold text-gray-800">Key Features</h4> | |
| <ul class="mt-2 space-y-2"> | |
| <li class="flex items-start"> | |
| <i class="fas fa-check text-green-500 mt-1 mr-2"></i> | |
| <span>Cross-browser testing</span> | |
| </li> | |
| <li class="flex items-start"> | |
| <i class="fas fa-check text-green-500 mt-1 mr-2"></i> | |
| <span>Multiple language support</span> | |
| </li> | |
| <li class="flex items-start"> | |
| <i class="fas fa-check text-green-500 mt-1 mr-2"></i> | |
| <span>Handles dynamic web elements</span> | |
| </li> | |
| <li class="flex items-start"> | |
| <i class="fas fa-check text-green-500 mt-1 mr-2"></i> | |
| <span>Integration with testing frameworks</span> | |
| </li> | |
| </ul> | |
| </div> | |
| <div class="border-l-4 border-blue-500 pl-4"> | |
| <h4 class="font-semibold text-gray-800">Supported Languages</h4> | |
| <div class="mt-2 flex flex-wrap gap-2"> | |
| <span class="px-2 py-1 bg-blue-100 text-blue-800 text-xs font-medium rounded">Java</span> | |
| <span class="px-2 py-1 bg-blue-100 text-blue-800 text-xs font-medium rounded">Python</span> | |
| <span class="px-2 py-1 bg-blue-100 text-blue-800 text-xs font-medium rounded">C#</span> | |
| <span class="px-2 py-1 bg-blue-100 text-blue-800 text-xs font-medium rounded">Ruby</span> | |
| <span class="px-2 py-1 bg-blue-100 text-blue-800 text-xs font-medium rounded">JavaScript</span> | |
| <span class="px-2 py-1 bg-blue-100 text-blue-800 text-xs font-medium rounded">Kotlin</span> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Installation section --> | |
| <div class="bg-white shadow rounded-lg p-6"> | |
| <h3 class="text-lg font-medium text-gray-900 mb-4"> | |
| <i class="fas fa-download text-blue-500 mr-2"></i>Installation | |
| </h3> | |
| <div class="space-y-4"> | |
| <div> | |
| <h4 class="font-medium text-gray-800 mb-2">Java Installation</h4> | |
| <div class="code-block rounded-md p-4 text-sm overflow-x-auto"> | |
| <pre><code>// Maven dependency | |
| <dependency> | |
| <groupId>org.seleniumhq.selenium</groupId> | |
| <artifactId>selenium-java</artifactId> | |
| <version>4.8.0</version> | |
| </dependency> | |
| // Gradle dependency | |
| implementation 'org.seleniumhq.selenium:selenium-java:4.8.0'</code></pre> | |
| </div> | |
| </div> | |
| <div> | |
| <h4 class="font-medium text-gray-800 mb-2">Python Installation</h4> | |
| <div class="code-block rounded-md p-4 text-sm overflow-x-auto"> | |
| <pre><code>pip install selenium</code></pre> | |
| </div> | |
| </div> | |
| <div> | |
| <h4 class="font-medium text-gray-800 mb-2">WebDriver Setup</h4> | |
| <div class="code-block rounded-md p-4 text-sm overflow-x-auto"> | |
| <pre><code>// Download browser drivers from: | |
| // Chrome: https://sites.google.com/chromium.org/driver/ | |
| // Firefox: https://github.com/mozilla/geckodriver/releases | |
| // Edge: https://developer.microsoft.com/en-us/microsoft-edge/tools/webdriver/ | |
| // Set system property for Java | |
| System.setProperty("webdriver.chrome.driver", "/path/to/chromedriver");</code></pre> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Basic Usage section --> | |
| <div class="bg-white shadow rounded-lg p-6"> | |
| <h3 class="text-lg font-medium text-gray-900 mb-4"> | |
| <i class="fas fa-code text-blue-500 mr-2"></i>Basic Usage | |
| </h3> | |
| <div class="space-y-6"> | |
| <div> | |
| <h4 class="font-medium text-gray-800 mb-2">Java Example</h4> | |
| <div class="code-block rounded-md p-4 text-sm overflow-x-auto"> | |
| <pre><code>import org.openqa.selenium.WebDriver; | |
| import org.openqa.selenium.chrome.ChromeDriver; | |
| public class FirstTest { | |
| public static void main(String[] args) { | |
| // Set the path to chromedriver | |
| System.setProperty("webdriver.chrome.driver", "path/to/chromedriver"); | |
| // Initialize browser | |
| WebDriver driver = new ChromeDriver(); | |
| // Open Google | |
| driver.get("https://www.google.com"); | |
| // Get and print title | |
| System.out.println("Page title is: " + driver.getTitle()); | |
| // Close browser | |
| driver.quit(); | |
| } | |
| }</code></pre> | |
| </div> | |
| </div> | |
| <div> | |
| <h4 class="font-medium text-gray-800 mb-2">Python Example</h4> | |
| <div class="code-block rounded-md p-4 text-sm overflow-x-auto"> | |
| <pre><code>from selenium import webdriver | |
| from selenium.webdriver.common.by import By | |
| # Initialize Chrome driver | |
| driver = webdriver.Chrome(executable_path='/path/to/chromedriver') | |
| # Open Google | |
| driver.get("https://www.google.com") | |
| # Find search box and type query | |
| search_box = driver.find_element(By.NAME, "q") | |
| search_box.send_keys("Selenium WebDriver") | |
| search_box.submit() | |
| # Print title | |
| print("Page title is:", driver.title) | |
| # Close browser | |
| driver.quit()</code></pre> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Right column --> | |
| <div class="space-y-6"> | |
| <!-- Quick Links --> | |
| <div class="bg-white shadow rounded-lg p-6"> | |
| <h3 class="text-lg font-medium text-gray-900 mb-4"> | |
| <i class="fas fa-link text-blue-500 mr-2"></i>Quick Links | |
| </h3> | |
| <div class="space-y-2"> | |
| <a href="#" class="flex items-center text-blue-600 hover:text-blue-800"> | |
| <i class="fas fa-external-link-alt mr-2 text-sm"></i> | |
| Official Documentation | |
| </a> | |
| <a href="#" class="flex items-center text-blue-600 hover:text-blue-800"> | |
| <i class="fas fa-github mr-2 text-sm"></i> | |
| GitHub Repository | |
| </a> | |
| <a href="#" class="flex items-center text-blue-600 hover:text-blue-800"> | |
| <i class="fas fa-book mr-2 text-sm"></i> | |
| API Reference | |
| </a> | |
| <a href="#" class="flex items-center text-blue-600 hover:text-blue-800"> | |
| <i class="fas fa-users mr-2 text-sm"></i> | |
| Community Forum | |
| </a> | |
| <a href="#" class="flex items-center text-blue-600 hover:text-blue-800"> | |
| <i class="fas fa-question-circle mr-2 text-sm"></i> | |
| Stack Overflow | |
| </a> | |
| </div> | |
| </div> | |
| <!-- Related Tools --> | |
| <div class="bg-white shadow rounded-lg p-6"> | |
| <h3 class="text-lg font-medium text-gray-900 mb-4"> | |
| <i class="fas fa-tools text-blue-500 mr-2"></i>Related Tools | |
| </h3> | |
| <div class="space-y-3"> | |
| <div class="flex items-center p-2 rounded hover:bg-gray-50"> | |
| <div class="flex-shrink-0 h-10 w-10 rounded-full bg-blue-100 flex items-center justify-center"> | |
| <i class="fas fa-code text-blue-600"></i> | |
| </div> | |
| <div class="ml-4"> | |
| <h4 class="text-sm font-medium text-gray-900">Cypress</h4> | |
| <p class="text-xs text-gray-500">JavaScript testing framework</p> | |
| </div> | |
| </div> | |
| <div class="flex items-center p-2 rounded hover:bg-gray-50"> | |
| <div class="flex-shrink-0 h-10 w-10 rounded-full bg-green-100 flex items-center justify-center"> | |
| <i class="fas fa-terminal text-green-600"></i> | |
| </div> | |
| <div class="ml-4"> | |
| <h4 class="text-sm font-medium text-gray-900">Playwright</h4> | |
| <p class="text-xs text-gray-500">Cross-browser automation</p> | |
| </div> | |
| </div> | |
| <div class="flex items-center p-2 rounded hover:bg-gray-50"> | |
| <div class="flex-shrink-0 h-10 w-10 rounded-full bg-purple-100 flex items-center justify-center"> | |
| <i class="fas fa-check-circle text-purple-600"></i> | |
| </div> | |
| <div class="ml-4"> | |
| <h4 class="text-sm font-medium text-gray-900">TestNG</h4> | |
| <p class="text-xs text-gray-500">Testing framework</p> | |
| </div> | |
| </div> | |
| <div class="flex items-center p-2 rounded hover:bg-gray-50"> | |
| <div class="flex-shrink-0 h-10 w-10 rounded-full bg-yellow-100 flex items-center justify-center"> | |
| <i class="fas fa-vial text-yellow-600"></i> | |
| </div> | |
| <div class="ml-4"> | |
| <h4 class="text-sm font-medium text-gray-900">JUnit</h4> | |
| <p class="text-xs text-gray-500">Unit testing framework</p> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Best Practices --> | |
| <div class="bg-white shadow rounded-lg p-6"> | |
| <h3 class="text-lg font-medium text-gray-900 mb-4"> | |
| <i class="fas fa-star text-blue-500 mr-2"></i>Best Practices | |
| </h3> | |
| <div class="space-y-3"> | |
| <div class="flex items-start"> | |
| <div class="flex-shrink-0 mt-1"> | |
| <i class="fas fa-check-circle text-green-500"></i> | |
| </div> | |
| <p class="ml-3 text-sm text-gray-700">Use explicit waits instead of thread.sleep()</p> | |
| </div> | |
| <div class="flex items-start"> | |
| <div class="flex-shrink-0 mt-1"> | |
| <i class="fas fa-check-circle text-green-500"></i> | |
| </div> | |
| <p class="ml-3 text-sm text-gray-700">Implement Page Object Model pattern</p> | |
| </div> | |
| <div class="flex items-start"> | |
| <div class="flex-shrink-0 mt-1"> | |
| <i class="fas fa-check-circle text-green-500"></i> | |
| </div> | |
| <p class="ml-3 text-sm text-gray-700">Keep tests independent and atomic</p> | |
| </div> | |
| <div class="flex items-start"> | |
| <div class="flex-shrink-0 mt-1"> | |
| <i class="fas fa-check-circle text-green-500"></i> | |
| </div> | |
| <p class="ml-3 text-sm text-gray-700">Use proper selectors (ID, CSS, XPath)</p> | |
| </div> | |
| <div class="flex items-start"> | |
| <div class="flex-shrink-0 mt-1"> | |
| <i class="fas fa-check-circle text-green-500"></i> | |
| </div> | |
| <p class="ml-3 text-sm text-gray-700">Implement proper test reporting</p> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Version Info --> | |
| <div class="bg-white shadow rounded-lg p-6"> | |
| <h3 class="text-lg font-medium text-gray-900 mb-4"> | |
| <i class="fas fa-info-circle text-blue-500 mr-2"></i>Version Information | |
| </h3> | |
| <div class="space-y-2"> | |
| <div class="flex justify-between"> | |
| <span class="text-sm font-medium text-gray-700">Current Version</span> | |
| <span class="text-sm text-gray-500">4.8.0</span> | |
| </div> | |
| <div class="flex justify-between"> | |
| <span class="text-sm font-medium text-gray-700">Release Date</span> | |
| <span class="text-sm text-gray-500">March 2023</span> | |
| </div> | |
| <div class="flex justify-between"> | |
| <span class="text-sm font-medium text-gray-700">License</span> | |
| <span class="text-sm text-gray-500">Apache 2.0</span> | |
| </div> | |
| <div class="flex justify-between"> | |
| <span class="text-sm font-medium text-gray-700">Browser Support</span> | |
| <div class="flex space-x-1"> | |
| <i class="fab fa-chrome text-sm text-gray-500"></i> | |
| <i class="fab fa-firefox text-sm text-gray-500"></i> | |
| <i class="fab fa-edge text-sm text-gray-500"></i> | |
| <i class="fab fa-safari text-sm text-gray-500"></i> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <script> | |
| // Simple search functionality | |
| document.querySelector('input[type="text"]').addEventListener('input', function(e) { | |
| const searchTerm = e.target.value.toLowerCase(); | |
| if (searchTerm.length > 2) { | |
| document.querySelectorAll('.sidebar-link').forEach(link => { | |
| const text = link.textContent.toLowerCase(); | |
| if (text.includes(searchTerm)) { | |
| link.classList.add('bg-blue-50', 'text-blue-600'); | |
| link.innerHTML = link.innerHTML.replace( | |
| new RegExp(searchTerm, 'gi'), | |
| match => `<span class="search-highlight">${match}</span>` | |
| ); | |
| } else { | |
| link.classList.remove('bg-blue-50', 'text-blue-600'); | |
| // Remove any existing highlights | |
| const spans = link.querySelectorAll('span.search-highlight'); | |
| spans.forEach(span => { | |
| span.outerHTML = span.innerHTML; | |
| }); | |
| } | |
| }); | |
| } else { | |
| document.querySelectorAll('.sidebar-link').forEach(link => { | |
| link.classList.remove('bg-blue-50', 'text-blue-600'); | |
| // Remove any existing highlights | |
| const spans = link.querySelectorAll('span.search-highlight'); | |
| spans.forEach(span => { | |
| span.outerHTML = span.innerHTML; | |
| }); | |
| }); | |
| } | |
| }); | |
| // Tab switching functionality | |
| document.querySelectorAll('nav a').forEach(tab => { | |
| tab.addEventListener('click', function(e) { | |
| e.preventDefault(); | |
| document.querySelectorAll('nav a').forEach(t => t.classList.remove('active-tab', 'text-blue-600', 'border-blue-500')); | |
| this.classList.add('active-tab', 'text-blue-600', 'border-blue-500'); | |
| }); | |
| }); | |
| // Copy code blocks | |
| document.querySelectorAll('.code-block').forEach(block => { | |
| block.addEventListener('click', function() { | |
| const code = this.querySelector('code').textContent; | |
| navigator.clipboard.writeText(code).then(() => { | |
| const originalText = this.querySelector('code').textContent; | |
| const copyText = document.createElement('div'); | |
| copyText.className = 'absolute top-2 right-2 bg-blue-500 text-white text-xs px-2 py-1 rounded'; | |
| copyText.textContent = 'Copied!'; | |
| this.appendChild(copyText); | |
| setTimeout(() => { | |
| copyText.remove(); | |
| }, 2000); | |
| }); | |
| }); | |
| }); | |
| </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=Algeus/deepsite" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body> | |
| </html> |