Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| axial_eye_length_prediction_calculator [2025/06/05 02:55] – Scott Larson | axial_eye_length_prediction_calculator [2025/06/06 23:24] (current) – Scott Larson | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ======Axial Eye Length Prediction Calculator====== | ======Axial Eye Length Prediction Calculator====== | ||
| + | [[https:// | ||
| - | <button type=" | ||
| - | |||
| - | < | ||
| - | < | ||
| - | <meta charset=" | ||
| - | <meta name=" | ||
| - | < | ||
| - | </ | ||
| - | < | ||
| - | body { | ||
| - | font-family: | ||
| - | margin: 20px; | ||
| - | padding: 20px; | ||
| - | max-width: 1000px; | ||
| - | } | ||
| - | reference | ||
| - | | ||
| - | | ||
| - | | ||
| - | } | ||
| - | h2 { | ||
| - | color: #333; | ||
| - | } | ||
| - | label { | ||
| - | font-weight: | ||
| - | } | ||
| - | input, button { | ||
| - | margin-top: 5px; | ||
| - | padding: 8px; | ||
| - | font-size: 16px; | ||
| - | } | ||
| - | p { | ||
| - | font-size: 18px; | ||
| - | font-weight: | ||
| - | color: blue; | ||
| - | margin-top: 10px; | ||
| - | } | ||
| - | </ | ||
| - | < | ||
| - | < | ||
| - | |||
| - | <label for=" | ||
| - | <input type=" | ||
| - | |||
| - | <label for=" | ||
| - | <input type=" | ||
| - | |||
| - | <button onclick=" | ||
| - | < | ||
| - | <p id=" | ||
| - | |||
| - | < | ||
| - | function calculateA() { | ||
| - | // Get input values | ||
| - | const b = parseFloat(document.getElementById(" | ||
| - | const c = parseFloat(document.getElementById(" | ||
| - | |||
| - | // Check if inputs are valid numbers | ||
| - | if (isNaN(b) || isNaN(c)) { | ||
| - | document.getElementById(" | ||
| - | return; | ||
| - | } | ||
| - | |||
| - | // Check if C is greater than 2 but less than 20 | ||
| - | if (c < 2) { | ||
| - | document.getElementById(" | ||
| - | return; | ||
| - | } | ||
| - | if (c > 20) { | ||
| - | | ||
| - | | ||
| - | } | ||
| - | |||
| - | // Calculate A using the formula | ||
| - | const a = 1.93 + (0.91 * b) - (0.07 * c) + 2.8 - (0.1 * c); | ||
| - | |||
| - | // Display the result | ||
| - | document.getElementById(" | ||
| - | } | ||
| - | </ | ||
| - | < | ||
| - | <div class=" | ||
| - | <a href=" | ||
| - | </ | ||
| - | </ | ||
| - | </ | ||
| - | ---- | ||
| ====References==== | ====References==== | ||
| - {{:: | - {{:: | ||
| Line 94: | Line 8: | ||
| {{tag> | {{tag> | ||
| - | |||