CoolFace
Apppublic

31Ke-ctrl/graph-wizard-deluxe

sourceHugging Faceupdated 10mo agoView on Hugging Face
0likes
index.html82 linesDownload Raw Back to root
1<!DOCTYPE html>2<html lang="en">3<head>4    <meta charset="UTF-8">5    <meta name="viewport" content="width=device-width, initial-scale=1.0">6    <title>Point Plotter Pro</title>7    <link rel="stylesheet" href="style.css">8    <script src="https://cdn.tailwindcss.com"></script>9    <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>10    <script src="https://unpkg.com/feather-icons"></script>11</head>12<body class="bg-gray-100 min-h-screen">13    <div class="container mx-auto px-4 py-8">14        <header class="text-center mb-12">15            <h1 class="text-4xl font-bold text-indigo-700 mb-2">Point Plotter Pro</h1>16            <p class="text-gray-600">Visualize any (x, y) coordinate on a beautiful grid</p>17        </header>18 19        <main class="grid grid-cols-1 lg:grid-cols-2 gap-8">20            <div class="bg-white rounded-xl shadow-lg p-6">21                <h2 class="text-2xl font-semibold text-gray-800 mb-4">Input Coordinates</h2>22                <div class="space-y-4">23                    <div>24                        <label for="x-coordinate" class="block text-sm font-medium text-gray-700 mb-1">X Coordinate</label>25                        <input type="number" id="x-coordinate" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500" placeholder="Enter X value">26                    </div>27                    <div>28                        <label for="y-coordinate" class="block text-sm font-medium text-gray-700 mb-1">Y Coordinate</label>29                        <input type="number" id="y-coordinate" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500" placeholder="Enter Y value">30                    </div>31                    <div class="flex items-center justify-between">32                        <label for="grid-resolution" class="block text-sm font-medium text-gray-700">Grid Resolution</label>33                        <span id="resolution-value" class="text-sm text-gray-600">40px</span>34                    </div>35                    <input type="range" id="grid-resolution" min="20" max="80" step="5" value="40" class="w-full h-2 bg-gray-200 rounded-lg appearance-none cursor-pointer">36<button id="plot-btn" class="w-full bg-indigo-600 text-white py-2 px-4 rounded-lg hover:bg-indigo-700 transition duration-200 flex items-center justify-center">37                        <i data-feather="map-pin" class="mr-2"></i> Plot Point38                    </button>39                    <button id="clear-btn" class="w-full bg-gray-200 text-gray-800 py-2 px-4 rounded-lg hover:bg-gray-300 transition duration-200 flex items-center justify-center">40                        <i data-feather="trash-2" class="mr-2"></i> Clear41                    </button>42                </div>43            </div>44 45            <div class="bg-white rounded-xl shadow-lg p-6">46                <h2 class="text-2xl font-semibold text-gray-800 mb-4">Coordinate Grid</h2>47                <div class="relative bg-gray-50 rounded-lg overflow-hidden" id="grid-container">48                    <canvas id="coordinate-grid" class="w-full h-96"></canvas>49                    <div id="point-display" class="absolute top-4 right-4 bg-white/90 px-3 py-2 rounded-lg shadow-sm text-sm hidden">50                        <span class="font-medium">Current Point:</span> 51                        <span id="current-point">(0, 0)</span>52                    </div>53                </div>54            </div>55        </main>56 57        <div class="mt-12 bg-white rounded-xl shadow-lg p-6">58            <h2 class="text-2xl font-semibold text-gray-800 mb-4">Recent Points</h2>59            <div class="overflow-x-auto">60                <table class="min-w-full divide-y divide-gray-200">61                    <thead class="bg-gray-50">62                        <tr>63                            <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">X</th>64                            <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Y</th>65                            <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Quadrant</th>66                        </tr>67                    </thead>68                    <tbody id="points-table" class="bg-white divide-y divide-gray-200">69                        <!-- Points will be added here dynamically -->70                    </tbody>71                </table>72            </div>73        </div>74    </div>75 76    <script src="script.js"></script>77    <script>78        feather.replace();79    </script>80<script src="https://huggingface.co/deepsite/deepsite-badge.js"></script>81</body>82</html>