Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <title>Ping Tool</title>
- <script src="https://cdn.jsdelivr.net/npm/flowbite@2.5.1/dist/flowbite.min.js"></script>
- <link href="https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css" rel="stylesheet">
- </head>
- <body class="bg-gray-100">
- <div class="container mx-auto py-10">
- <div class="max-w-lg mx-auto bg-white p-8 rounded-lg shadow-md">
- <h1 class="text-2xl font-bold mb-6 text-center">Ping Tool</h1>
- <form action="/" method="POST" class="space-y-4">
- <div>
- <label for="ip" class="block text-sm font-medium text-gray-700">Enter the IP address</label>
- <input type="text" name="ip" id="ip" required
- class="mt-1 p-2 block w-full border border-gray-300 rounded-md shadow-sm focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm">
- </div>
- <div>
- <button type="submit"
- class="w-full text-white bg-indigo-600 hover:bg-indigo-700 focus:ring-4 focus:outline-none focus:ring-indigo-200 font-medium rounded-lg text-sm px-5 py-2.5 text-center">Ping
- Me</button>
- </div>
- </form>
- <div id="output" class="mt-8 bg-gray-50 p-4 rounded-md shadow-inner">
- <!-- Output of ping command will be injected here -->
- </div>
- </div>
- </div>
- <!-- Optional Flowbite JavaScript for additional UI components -->
- <script src="https://cdn.jsdelivr.net/npm/flowbite@2.5.1/dist/flowbite.min.js"></script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement