Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
optic_nerve_diameter_calculator [2025/02/21 04:26] Scott Larsonoptic_nerve_diameter_calculator [2025/02/21 05:41] (current) – removed Scott Larson
Line 1: Line 1:
-====== Optic Nerve Diameter Calculator ====== 
-- use to estimate optic nerve size with the Heidelberg Spectralis OCT optic nerve scan report.  
  
-[[optic_nerve_diameter_calculator|to reload calculator→ Click HERE]] 
- 
-<html> 
-<head> 
-  <meta charset="UTF-8"> 
-  <meta name="viewport" content="width=device-width, initial-scale=1.0"> 
-  <title>Calculate Optic Nerve Diameter</title> 
-</head> 
-<body> 
-  <h3>Calculate optic nerve diameter Using Heidelberg Spectralis OCT optic nerve report</h3> 
- 
-  <label for="a">Measure green ring diameter from OCT report and enter here (mm):</label> 
-  <input type="number" id="a" step="any" placeholder="Ring Diameter"><br><br> 
- 
-  <label for="b">Measure optic nerve diameter from OCT report and enter here (mm):</label> 
-  <input type="number" id="b" step="any" placeholder="Optic Nerve Diameter"><br><br> 
- 
-  <button onclick="calculateC()">Calculate</button> 
-  <br><br> 
-  <p id="result"></p> 
- 
-  <script> 
-    function calculateC() { 
-      // Get input values 
-      const a = parseFloat(document.getElementById("a").value); 
-      const b = parseFloat(document.getElementById("b").value); 
- 
-      // Check if inputs are valid numbers 
-      if (isNaN(a) || isNaN(b) || a === 0) { 
-        document.getElementById("result").textContent = "Please enter valid numbers. They must not be zero."; 
-        return; 
-      } 
- 
-      // Calculate C using the formula 
-      const c = (b / a) * 3.5; 
- 
-      // Display the result in bold 
-      document.getElementById("result").innerHTML = `The optic nerve diameter is: <strong>${c.toFixed(2)} mm</strong>`; 
-    } 
-  </script> 
-</body> 
-</html> 
- 
-{{tag>calculator}}