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>Flowtest Editor</title>7 <link href="https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css" rel="stylesheet">8 </head>9 <body class="bg-gray-100">10 <div class="container mx-auto p-4">11 <form class="space-y-6">12 <!-- Variables Section -->13 <div class="bg-white p-6 rounded-lg shadow-md">14 <h2 class="text-xl font-semibold mb-4">Variables</h2>15 <ul id="variables-list" class="space-y-4 mb-4">16 <!-- Example variable row -->17 <li class="flex space-x-4 items-center">18 <input type="text" placeholder="Variable Name" class="flex-1 p-2 border border-gray-300 rounded" />19 <input type="text" placeholder="Variable Value" class="flex-1 p-2 border border-gray-300 rounded" />20 <button type="button" onclick="removeVariable(this)" class="text-red-500">x</button>21 </li>22 </ul>23 <button type="button" onclick="addVariable()" class="bg-blue-500 text-white px-4 py-2 rounded flex items-center">24 <span class="mr-2">+</span> Add Variable25 </button>26 </div>27 28 <!-- Save Button -->29 <div class="flex justify-end">30 <button type="button" onclick="saveTest()" class="bg-green-500 text-white px-4 py-2 rounded">Save Test</button>31 </div>32 </form>33 </div>34 35 <script src="script.js"></script>36 </body>37 </html>38
Enlace
El enlace para compartir es: