gpt-4o-2024-05-13· OpenAI
WildChat-4.8M (AI2)
the the following code correct: <!DOCTYPE html> <html lang="en"> <head> <title>Steel…
- User
the the following code correct:
<title>Steel Construction Cost Estimate</title> <style> .form-container { max-width: 800px; margin: auto; padding: 10px; border: 1px solid #ccc; border-radius: 5px; } label, input, button, select { display: flexblock; padding: 5px; margin: 3px 0; } .dropdown-group { margin-bottom: 5px; } .dropdown-group label { display: block; /* Makes the label appear on a new line */ } button { background-color: orangered; color: white; cursor: pointer; } label.required::after { content: "*"; color: orangered; margin-left: 5px; } #estimatedCost { font-weight: bold; margin-top: 5px; } .radio-group label { display: inline-block; margin-right: 10px; /* Adjust the margin between radio buttons */ } .radio-group input[type="radio"] { display: inline-block; margin-right: 5px; /* Adjust the margin between radio buttons */ } </style><div class="form-container"> <form id="fd88d2c" onsubmit="return calculateCost()"> <fieldset> <label for="name-764" class="required">Name:</label> [text* name-764 id:name-764] <label for="email-254" class="required">Email:</label> [email* email-254 id:email-254] <label for="tel-784" class="required">Telephone Number:</label> [tel* tel-784 id:tel-784] </fieldset> <div class="radio-group"> <label>Select Material:</label> <label><input type="radio" name="material" value="chromadek" checked> Chromadek</label> <label><input type="radio" name="material" value="galvanized"> Galvanized</label> </div> <div class="dropdown-group"> <label for="lengthInput">Enter Length (in meters):</label> <input type="number" id="lengthInput" name="length" min="5" max="100" oninput="checkFormValidity()"> </div> <div class="dropdown-group"> <label for="widthDropdown">Select Width (in meters):</label> <select id="widthDropdown" name="width" onchange="checkFormValidity()"> <option value="">Select Width</option> <option value="40">40m</option> <option value="35">35m</option> <option value="30">30m</option> <option value="25">25m</option> <option value="20">20m</option> <option value="18">18m</option> <option value="15">15m</option> <option value="12">12m</option> </select> </div> <div class="dropdown-group"> <label for="sourceDropdown">Where did you hear about us?</label> <select id="sourceDropdown" name="source" onchange="checkFormValidity()"> <option value="">Select Source</option> <option value="website">Website</option> <option value="referral">Referral from someone</option> <option value="onsite">Saw us on site</option> <option value="linkedin">LinkedIn</option> <option value="facebook">Facebook</option> <option value="instagram">Instagram</option> <option value="vehicle">Vehicle branding</option> <option value="other">Other</option> </select> </div> <button type="submit" id="calculateButton" onclick="calculateCost()">Calculate Cost</button> <input type="hidden" id="hiddenCost" name="hiddenCost" value=""> </form> <div id="estimatedCost"></div> </div> <script> // Function to get the price for Chromadek material based on width and length - Assistant