Spaces:
Running
Running
File size: 5,331 Bytes
52375dd |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>URL Notes Extractor</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="https://unpkg.com/feather-icons"></script>
</head>
<body class="bg-gray-50 min-h-screen">
<div class="container mx-auto px-4 py-8 max-w-4xl">
<header class="mb-8">
<h1 class="text-3xl font-bold text-gray-800 flex items-center">
<i data-feather="file-text" class="mr-2"></i>
URL Notes Extractor
</h1>
<p class="text-gray-600">Extract location, name and notes from URLs</p>
</header>
<main>
<div class="bg-white rounded-lg shadow-md p-6 mb-8">
<div class="mb-6">
<label for="url-input" class="block text-sm font-medium text-gray-700 mb-1">Enter URL</label>
<div class="flex">
<input type="text" id="url-input" placeholder="https://example.com/location/name?notes=optional"
class="flex-1 px-4 py-2 border border-gray-300 rounded-l-md focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500">
<button id="extract-btn" class="bg-blue-500 hover:bg-blue-600 text-white px-4 py-2 rounded-r-md transition duration-200">
Extract
</button>
</div>
</div>
<div class="space-y-4">
<div>
<label class="block text-sm font-medium text-gray-700 mb-1">Extracted Data</label>
<div class="bg-gray-50 p-4 rounded-md">
<div class="grid grid-cols-1 md:grid-cols-2 gap-4">
<div>
<p class="text-sm text-gray-500">Location:</p>
<p id="location" class="font-medium">-</p>
</div>
<div>
<p class="text-sm text-gray-500">Name:</p>
<p id="name" class="font-medium">-</p>
</div>
<div class="md:col-span-2">
<p class="text-sm text-gray-500">Notes:</p>
<p id="notes" class="font-medium italic">-</p>
</div>
</div>
</div>
</div>
<div>
<label for="notes-input" class="block text-sm font-medium text-gray-700 mb-1">Add/Edit Notes (optional)</label>
<textarea id="notes-input" rows="3" placeholder="Add your notes here..."
class="w-full px-4 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500"></textarea>
<div class="flex justify-end mt-2">
<button id="save-notes-btn" class="bg-blue-500 hover:bg-blue-600 text-white px-4 py-2 rounded-md transition duration-200">
Save Notes
</button>
</div>
</div>
</div>
</div>
<div class="bg-white rounded-lg shadow-md p-6">
<h2 class="text-xl font-bold text-gray-800 mb-4 flex items-center">
<i data-feather="info" class="mr-2"></i>
How It Works
</h2>
<ul class="space-y-3 text-gray-700">
<li class="flex items-start">
<i data-feather="chevron-right" class="text-blue-500 mr-2 mt-0.5"></i>
<span>Enter a URL with location, name and optional notes parameters</span>
</li>
<li class="flex items-start">
<i data-feather="chevron-right" class="text-blue-500 mr-2 mt-0.5"></i>
<span>The tool extracts the values automatically</span>
</li>
<li class="flex items-start">
<i data-feather="chevron-right" class="text-blue-500 mr-2 mt-0.5"></i>
<span>You can add or edit notes which will be appended to the URL</span>
</li>
<li class="flex items-start">
<i data-feather="chevron-right" class="text-blue-500 mr-2 mt-0.5"></i>
<span>Example URL: <code class="text-sm bg-gray-100 px-1">https://example.com/new-york/central-park?notes=beautiful-park</code></span>
</li>
</ul>
</div>
</main>
</div>
<script src="script.js"></script>
<script>
feather.replace();
</script>
<script src="https://huggingface.co/deepsite/deepsite-badge.js"></script>
</body>
</html> |