Download index.html from fenkod2001/docsnap-smart-document-scanner: direct link, hf CLI and curl.
- Browser
- Download file 2.97 kB
-
https://huggingface.co/spaces/fenkod2001/docsnap-smart-document-scanner/resolve/main/index.html
- Command line
-
hf download hf://spaces/fenkod2001/docsnap-smart-document-scanner/index.html
-
curl -L -o index.html https://huggingface.co/spaces/fenkod2001/docsnap-smart-document-scanner/resolve/main/index.html
2.97 kB
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>DocSnap - Document Viewer</title> | |
| <link rel="stylesheet" href="style.css"> | |
| <script src="https://cdn.tailwindcss.com"></script> | |
| <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script> | |
| <script src="indexDraw.js"></script> | |
| </head> | |
| <body class="bg-gray-100 h-screen flex flex-col"> | |
| <!-- Header --> | |
| <header class="bg-blue-600 text-white p-4 shadow-md"> | |
| <div class="container mx-auto flex justify-between items-center"> | |
| <h1 class="text-2xl font-bold">DocSnap</h1> | |
| <a href="mobile.html" class="p-2 rounded-full bg-blue-500 hover:bg-blue-700 transition"> | |
| <i data-feather="smartphone"></i> | |
| </a> | |
| </div> | |
| </header> | |
| <!-- Main Content --> | |
| <main class="flex-grow container mx-auto p-4"> | |
| <div class="relative w-full h-full bg-white shadow-lg rounded-lg overflow-hidden"> | |
| <!-- Image Display Area --> | |
| <div id="imageContainer" class="relative w-full h-full flex items-center justify-center"> | |
| <img id="documentImage" class="max-w-full max-h-full object-contain" src="" alt="Scanned Document"> | |
| <canvas id="drawingCanvas" class="absolute top-0 left-0 w-full h-full touch-none"></canvas> | |
| </div> | |
| </div> | |
| </main> | |
| <!-- Toolbar --> | |
| <div class="bg-white border-t border-gray-200 p-3"> | |
| <div class="flex justify-center space-x-4"> | |
| <button id="penTool" class="p-2 rounded-full bg-blue-100 text-blue-600 tool-btn" title="Pen"> | |
| <i data-feather="edit-2"></i> | |
| </button> | |
| <button id="eraserTool" class="p-2 rounded-full bg-gray-100 text-gray-600 tool-btn" title="Eraser"> | |
| <i data-feather="eraser"></i> | |
| </button> | |
| <div class="flex items-center"> | |
| <input type="color" id="colorPicker" value="#000000" class="h-8 w-8 cursor-pointer"> | |
| </div> | |
| <div class="flex items-center"> | |
| <input type="range" id="brushSize" min="1" max="20" value="3" class="h-2 bg-gray-200 rounded-lg appearance-none cursor-pointer"> | |
| <span id="brushSizeValue" class="ml-2 text-sm">3</span> | |
| </div> | |
| <button id="clearBtn" class="p-2 rounded-full bg-red-100 text-red-600" title="Clear All"> | |
| <i data-feather="trash-2"></i> | |
| </button> | |
| </div> | |
| </div> | |
| <script> | |
| feather.replace(); | |
| // Initialize the drawing functionality | |
| document.addEventListener('DOMContentLoaded', function() { | |
| initDrawing(); | |
| checkForNewImage(); | |
| setInterval(checkForNewImage, 1000); | |
| }); | |
| </script> | |
| <script src="https://huggingface.co/deepsite/deepsite-badge.js"></script> | |
| </body> | |
| </html> |