Spaces:
Running
Running
Download spreadsheet.html from shuday7/spreadsheet-wizard: direct link, hf CLI and curl.
- Browser
- Download file 2.03 kB
-
https://huggingface.co/spaces/shuday7/spreadsheet-wizard/resolve/main/spreadsheet.html
- Command line
-
hf download hf://spaces/shuday7/spreadsheet-wizard/spreadsheet.html
-
curl -L -o spreadsheet.html https://huggingface.co/spaces/shuday7/spreadsheet-wizard/resolve/main/spreadsheet.html
2.03 kB
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>SpreadSheet Wizard</title> | |
| <link rel="stylesheet" href="style.css"> | |
| <script src="https://cdn.tailwindcss.com"></script> | |
| <script src="https://cdn.jsdelivr.net/npm/handsontable/dist/handsontable.full.min.js"></script> | |
| <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/handsontable/dist/handsontable.full.min.css"> | |
| </head> | |
| <body class="bg-gray-100 min-h-screen"> | |
| <custom-navbar></custom-navbar> | |
| <main class="container mx-auto px-4 py-8"> | |
| <div class="max-w-6xl mx-auto bg-white rounded-xl shadow-md overflow-hidden p-6"> | |
| <div class="text-center mb-4"> | |
| <h1 class="text-3xl font-bold text-gray-800">SpreadSheet Wizard 🧙♂️</h1> | |
| <p class="text-gray-600">Excel-like spreadsheet with formula support</p> | |
| </div> | |
| <div id="spreadsheet" class="w-full"></div> | |
| <div class="mt-4 text-sm text-gray-500"> | |
| <p>Supported formulas: SUM, AVERAGE, MAX, MIN, COUNT (e.g., =SUM(A1:B2))</p> | |
| </div> | |
| </div> | |
| </main> | |
| <script> | |
| document.addEventListener('DOMContentLoaded', () => { | |
| const container = document.getElementById('spreadsheet'); | |
| const hot = new Handsontable(container, { | |
| data: [ | |
| ['Item', 'Price', 'Quantity', 'Total'], | |
| ['Product A', 100, 2, '=B2*C2'], | |
| ['Product B', 150, 3, '=B3*C3'], | |
| ['Product C', 200, 1, '=B4*C4'], | |
| ['', '', 'SUM:', '=SUM(D2:D4)'] | |
| ], | |
| colHeaders: true, | |
| rowHeaders: true, | |
| formulas: true, | |
| licenseKey: 'non-commercial-and-evaluation' | |
| }); | |
| }); | |
| </script> | |
| <script src="components/navbar.js"></script> | |
| <script src="script.js"></script> | |
| </body> | |
| </html> |