review script <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta…
- User
review script
header { background-color: #2196F3; padding: 10px; display: flex; align-items: center; } header img { height: 50px; margin-right: 10px; } header h1 { color: #fff; margin: 0; } .container { display: flex; flex: 1; } .left-panel { flex: 1; padding: 20px; box-sizing: border-box; } form { background-color: #fff; border-radius: 8px; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); padding: 20px; margin-bottom: 20px; } label { display: block; margin-bottom: 8px; } input, select { width: 100%; padding: 8px; margin-bottom: 16px; box-sizing: border-box; border: 1px solid #ccc; border-radius: 4px; } button { background-color: #4caf50; color: #fff; padding: 10px 15px; border: none; border-radius: 4px; cursor: pointer; } button:hover { background-color: #45a049; } .middle-panel { flex: 1; padding: 20px; box-sizing: border-box; text-align: left; } .log-item { border: 1px solid #ccc; border-radius: 4px; padding: 10px; margin-bottom: 10px; } .download-btn { background-color: #2196F3; color: #fff; padding: 10px 15px; border: none; border-radius: 4px; cursor: pointer; margin-top: 20px; } .download-btn:hover { background-color: #0b7dda; } </style><div class="container"> <div class="left-panel"> <form id="callLogForm"> <label for="name">Name:</label> <input type="text" id="name" name="name" required> <label for="company">Company:</label> <input type="text" id="company" name="company" required> <label for="site">Site:</label> <input type="text" id="site" name="site" required> <label for="tower">Tower:</label> <input type="text" id="tower" name="tower" required> <label for="resolution">Resolution:</label> <select id="resolution" name="resolution" required> <option value="ALC Support">ALC Support</option> <option value="Blade Support">Blade Support</option> <option value="BOP">BOP</option> <option value="External Toolbox Request">External Toolbox Request</option> <option value="Internal Toolbox Request">Internal Toolbox Request</option> <option value="Start/Stop">Start/Stop</option> <option value="Status Check">Status Check</option> <option value="Wind Speed">Wind Speed</option> <option value="Yaw">Yaw</option> <option value="Repair/Maintenance">Repair/Maintenance</option> </select> <button type="button" onclick="submitForm()">Submit</button> </form> </div> <div class="middle-panel"> <h2>Call Log</h2> <div id="callLog"> <!-- Log items will appear here --> </div> <button class="download-btn" onclick="downloadCSV()">Download as CSV</button> </div> </div> <script> function submitForm() { const name = document.getElementById('name').value; const site = document.getElementById('site').value; const tower = document.getElementById('tower').value; const resolution = document.getElementById('resolution').value; const logDiv = document.getElementById('callLog'); const logItem = document.createElement('div'); logItem.className = 'log-item'; logItem.innerHTML = `<strong>Name:</strong> ${name} | <strong>Site:</strong> ${site} | <strong>Tower:</strong> ${tower} | <strong>Resolution:</strong> ${resolution}`; logDiv.appendChild(logItem); // Clear form fields after submission document.getElementById('callLogForm').reset(); } function downloadCSV() { const logItems = document.querySelectorAll('.log-item'); const csvContent = ['Name, Site, Tower, Resolution']; logItems.forEach(item => { const itemText = item.innerText.replace(/\s+/g, ' ').trim(); // remove extra spaces csvContent.push(itemText); }); const csvData = csvContent.join('\n'); const blob = new Blob([csvData], { type: 'text/csv' }); const link = document.createElement('a'); link.href = URL.createObjectURL(blob); link.download = 'call_log.csv'; link.click(); } </script> - Assistant
The provided script is an HTML file that creates a web page for a Wind Turbine Call Log. Here is a review of the script:
-
HTML Structure: The HTML structure is well-formed with proper tags, including DOCTYPE, html, head, and body.
-
CSS Styling: The CSS styling defines the layout and appearance of the page. It uses flexbox for a responsive design and applies various styles to different elements. The styling is clean and consistent.
-
Header: The header section contains a logo image and a title for the call log. However, the image source is not valid, and the alt text is not meaningful.
-
Form: The form section allows users to input information such as name, company, site, tower, and resolution. The form is well-designed with appropriate labels and input fields. The required attribute is used to enforce input validation.
-
- User
want to add a checkbox for load shutdown under resolution section and list in the call log if checked
- Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.