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/03/10 04:52] – 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=" | + | ====References==== |
| - | + | - {{::axial_eye_length_prediction_calculator.xlsx |Download Calculator in Excel}} | |
| - | < | + | - [[https:// |
| - | < | + | |
| - | <meta charset=" | + | |
| - | <meta name=" | + | |
| - | | + | |
| - | </ | + | |
| - | < | + | |
| - | body { | + | |
| - | font-family: Arial, sans-serif; | + | |
| - | margin: 20px; | + | |
| - | padding: 20px; | + | |
| - | max-width: 1000px; | + | |
| - | } | + | |
| - | reference | + | |
| - | | + | |
| - | | + | |
| - | | + | |
| - | } | + | |
| - | h2 { | + | |
| - | color: #333; | + | |
| - | } | + | |
| - | label { | + | |
| - | font-weight: bold; | + | |
| - | } | + | |
| - | 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) | + | |
| - | 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="https:// | + | |
| - | </div> | + | |
| - | </body> | + | |
| - | </html> | + | |
| - | ---- | + | |
| - | <pane id=" | + | |
| - | + | ||
| - | <pane id=" | + | |
| {{tag> | {{tag> | ||
| - | |||