Spaces:
Running
Running
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>OSINT Automation</title> | |
| <link href="https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css" rel="stylesheet"> | |
| </head> | |
| <body class="bg-gray-100 min-h-screen flex items-center justify-center"> | |
| <div class="bg-white p-8 rounded-lg shadow-md w-full max-w-md"> | |
| <h1 class="text-2xl font-bold mb-6 text-center">OSINT Automation</h1> | |
| <form id="osintForm" class="space-y-4"> | |
| <div> | |
| <label for="ico" class="block text-sm font-medium text-gray-700">ICO*</label> | |
| <input type="text" id="ico" name="ico" required class="mt-1 block w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500"> | |
| </div> | |
| <div> | |
| <label for="name" class="block text-sm font-medium text-gray-700">Meno a Priezvisko*</label> | |
| <input type="text" id="name" name="name" required class="mt-1 block w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500"> | |
| </div> | |
| <div> | |
| <label for="phone" class="block text-sm font-medium text-gray-700">Telefonne cislo</label> | |
| <input type="text" id="phone" name="phone" class="mt-1 block w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500"> | |
| </div> | |
| <div> | |
| <label for="email" class="block text-sm font-medium text-gray-700">Email</label> | |
| <input type="email" id="email" name="email" class="mt-1 block w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500"> | |
| </div> | |
| <div> | |
| <label for="address" class="block text-sm font-medium text-gray-700">Adresa</label> | |
| <input type="text" id="address" name="address" class="mt-1 block w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500"> | |
| </div> | |
| <button type="submit" class="w-full flex justify-center py-2 px-4 border border-transparent rounded-md shadow-sm text-sm font-medium text-white bg-blue-600 hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500"> | |
| Submit | |
| </button> | |
| </form> | |
| </div> | |
| <script> | |
| document.getElementById('osintForm').addEventListener('submit', function(e) { | |
| e.preventDefault(); | |
| const formData = { | |
| ico: document.getElementById('ico').value, | |
| name: document.getElementById('name').value, | |
| phone: document.getElementById('phone').value || null, | |
| email: document.getElementById('email').value || null, | |
| address: document.getElementById('address').value || null | |
| }; | |
| fetch('https://primary-production-52f55.up.railway.app/webhook/14ba7496-51b2-49f7-b330-f69309bb414d', { | |
| method: 'POST', | |
| mode: 'cors', | |
| headers: { | |
| 'Content-Type': 'application/json', | |
| 'Accept': 'application/json' | |
| }, | |
| body: JSON.stringify(formData) | |
| }) | |
| .then(response => { | |
| return response.json(); | |
| }) | |
| .then(data => { | |
| alert('Data submitted successfully!'); | |
| document.getElementById('osintForm').reset(); | |
| }) | |
| .catch(error => { | |
| alert('Error submitting data: ' + error.message); | |
| console.error('Error:', error); | |
| }); | |
| }); | |
| </script> | |
| </body> | |
| </html> |