Skip to content
Snippets Groups Projects
Select Git revision
  • bd845a86cf45a95f14f9f84b8a58d760ea80f5e8
  • main default protected
2 results

index.html

Blame
  • index.html 4.50 KiB
    <!-- //This file was written by chatGPT (3.5) with many iterations and manual corrections. -->
    <!DOCTYPE html>
    <html lang="en">
    <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title>Server Dashboard</title>
        <style>
            body {
                font-family: Arial, sans-serif;
                margin: 20px;
            }
    
            h1 {
                color: #333;
            }
    
            .server-parameters {
                margin-bottom: 20px;
            }
    
            .device-list {
                width: 50%;
                margin-top: 20px;
                border-collapse: collapse;
            }
    
            .device-list th, .device-list td {
                border: 1px solid #ddd;
                padding: 8px;
                text-align: left;
            }
    
            .device-list th {
                background-color: #f2f2f2;
            }
        </style>
    </head>
    <body>
    <h1>Server Dashboard</h1>
    
    <div class="server-parameters">
        <h2>Server Parameters</h2>
        <label for="numberOfMeasurements">Number of Measurements:</label>
        <input type="text" id="numberOfMeasurements" placeholder="Enter number of measurements">
        <br>
        <label for="intervals">Intervals:</label>
        <input type="text" id="intervals" placeholder="Enter intervals">
        <br>
        <label for="delay">Delay:</label>
        <input type="text" id="delay" placeholder="Enter delay">
        <br>
        <button onclick="updateServerConfig()">Update Server Config</button>
    </div>
    
    <h2>Device List</h2>
    <table class="device-list">
        <thead>
        <tr>
            <th>ID</th>
            <th>State</th>
        </tr>
        </thead>
        <tbody id="deviceTableBody">
        <!-- Device entries will be added dynamically here -->
        </tbody>
    </table>
    
    <script>
        async function updateServerConfig() {