Spaces:
Running
Running
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Quote Search β Client-side, Offline</title> | |
| <meta name="description" content="Quote Search: Fast, private quote search that runs entirely in your browser. Embeddings-based, client-side, and offline-capable for secure local usage."> | |
| <meta name="keywords" content="quote search, client-side search, offline search, embeddings, privacy, local model, quotes"> | |
| <meta name="author" content="Rui Diao"> | |
| <!-- Open Graph / Facebook --> | |
| <meta property="og:title" content="Quote Search β Client-side, Offline"> | |
| <meta property="og:description" content="Fast, private quote search that runs in your browser. No data leaves your device."> | |
| <meta property="og:type" content="website"> | |
| <!-- Twitter --> | |
| <meta name="twitter:card" content="summary"> | |
| <meta name="twitter:title" content="Quote Search β Client-side, Offline"> | |
| <meta name="twitter:description" content="Fast, private quote search that runs in your browser. No data leaves your device."> | |
| <script src="https://cdn.tailwindcss.com"></script> | |
| </head> | |
| <body class="bg-gray-100 flex items-center justify-center min-h-screen"> | |
| <div class="container mx-auto p-8 bg-white rounded-lg shadow-lg w-full max-w-2xl relative"> | |
| <!-- Top controls row: icons on the left, delete button on the right. Row always visible; button visibility controlled by #delete-button-container --> | |
| <div id="top-controls" class="flex items-center justify-between mb-4"> | |
| <div id="icons-row" class="flex items-center gap-3"> | |
| <!-- Icons from icons/ folder (wrapped in links that open in a new tab) --> | |
| <a href="https://www.linkedin.com/in/ruidiao" target="_blank" rel="noopener noreferrer" aria-label="LinkedIn profile" title="LinkedIn"> | |
| <img src="icons/linkedin.svg" alt="LinkedIn" class="h-6 w-6" /> | |
| </a> | |
| <a href="https://ruidiao.substack.com/" target="_blank" rel="noopener noreferrer" aria-label="Substack" title="Substack"> | |
| <img src="icons/substack.svg" alt="Substack" class="h-6 w-6" /> | |
| </a> | |
| <a href="https://x.com/ruidiaox" target="_blank" rel="noopener noreferrer" aria-label="X (Twitter) profile" title="X"> | |
| <img src="icons/x.svg" alt="X" class="h-6 w-6" /> | |
| </a> | |
| </div> | |
| <div id="delete-button-container" class="flex justify-end"> | |
| <button id="delete-data-button" class="bg-red-500 text-white px-3 py-1 rounded-lg text-sm hover:bg-red-600 focus:outline-none focus:ring-2 focus:ring-red-500">Delete Cached Data</button> | |
| </div> | |
| </div> | |
| <h1 class="text-3xl font-bold text-center text-gray-800 mb-2">Quote Search</h1> | |
| <p class="text-center text-sm text-gray-600 mb-4">Runs locally in your browser β Private & Offline</p> | |
| <div id="data-info" class="text-center text-gray-600 mb-2"></div> | |
| <div id="status" class="text-center text-gray-600 mb-4"></div> | |
| <div id="progress-container" class="w-full bg-gray-200 rounded-full h-4 mb-4 hidden"> | |
| <div id="progress-bar" class="bg-blue-500 h-4 rounded-full" style="width: 0%"></div> | |
| </div> | |
| <div class="flex gap-2 mb-4"> | |
| <textarea id="search-input" class="w-full p-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:outline-none" placeholder="Enter your query..."></textarea> | |
| <button id="search-button" class="bg-blue-500 text-white px-4 py-2 rounded-lg hover:bg-blue-600 focus:outline-none focus:ring-2 focus:ring-blue-500">Search</button> | |
| </div> | |
| <div id="results"></div> | |
| </div> | |
| <script src="main.js"></script> | |
| </body> | |
| </html> |