|
| 1 | +<!DOCTYPE html> |
| 2 | +<html lang="en"> |
| 3 | +<head> |
| 4 | + <meta charset="UTF-8"> |
| 5 | + <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
| 6 | + <title>IVIM MRI Algorithm Fitting Dashboard</title> |
| 7 | + <!-- Load Plotly.js into the DOM --> |
| 8 | + <script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.7.1/jszip.min.js"></script> |
| 9 | + <script src="https://cdn.plot.ly/plotly-2.30.0.min.js"></script> |
| 10 | + <script src="https://cdnjs.cloudflare.com/ajax/libs/PapaParse/5.3.0/papaparse.min.js"></script> |
| 11 | + <script src="index.js"></script> |
| 12 | + <link rel="stylesheet" href="index.css"> |
| 13 | +</head> |
| 14 | +<body> |
| 15 | + <div id="root"> |
| 16 | + <div class="loading-overlay hidden" id="loadingOverlay"> |
| 17 | + <div class="spinner"></div> |
| 18 | + </div> |
| 19 | + <header> |
| 20 | + <h1 class="bar-title">IVIM MRI Algorithm Fitting Dashboard</h1> |
| 21 | + <hr class="divider" /> |
| 22 | + </header> |
| 23 | + <main> |
| 24 | + <div class="filter-wrapper"> |
| 25 | + <label for="algorithm-select">Algorithm:</label> |
| 26 | + <select id="algorithm-select" class="filter-menu"> |
| 27 | + <!-- Options will be populated dynamically --> |
| 28 | + </select> |
| 29 | + |
| 30 | + <label for="snr-select">SNR:</label> |
| 31 | + <select id="snr-select" class="filter-menu"> |
| 32 | + <!-- Options will be populated dynamically --> |
| 33 | + </select> |
| 34 | + |
| 35 | + <label for="type-select">Type: </label> |
| 36 | + <select id="type-select" class="filter-menu"> |
| 37 | + <option value="D_fitted">Diffusion</option> |
| 38 | + <option value="Dp_fitted">Perfusion</option> |
| 39 | + <option value="f_fitted">Perfusion Fraction</option> |
| 40 | + </select> |
| 41 | + |
| 42 | + <div class="slider-container"> |
| 43 | + <span class="slider-label">Upper Range:</span> |
| 44 | + <button id="decrement-range" class="slider-button">-</button> |
| 45 | + <input type="range" id="range-slider" class="slider" min="2" max="100" step="1" value="2"> |
| 46 | + <button id="increment-range" class="slider-button">+</button> |
| 47 | + <span id="range-value" class="slider-value">2</span> |
| 48 | + </div> |
| 49 | + <div id="lower-slider" class="slider-container"> |
| 50 | + <span class="slider-label">Lower Range:</span> |
| 51 | + <button id="decrement-lower-range" class="slider-button">+</button> |
| 52 | + <input type="range" id="lower-range-slider" class="slider" min="2" max="100" step="2" value="2"> |
| 53 | + <button id="increment-lower-range" class="slider-button">-</button> |
| 54 | + <span id="lower-range-value" class="slider-value">2</span> |
| 55 | + </div> |
| 56 | + </div> |
| 57 | + <div class="chart-card" id="myDiv"> |
| 58 | + <!-- Chart will be rendered here --> |
| 59 | + </div> |
| 60 | + |
| 61 | + |
| 62 | + <!-- New section for region-based plot --> |
| 63 | + <div class="filter-wrapper"> |
| 64 | + <label for="region-select">Region:</label> |
| 65 | + <select id="region-select" class="filter-menu"> |
| 66 | + <!-- Options will be populated dynamically --> |
| 67 | + </select> |
| 68 | + |
| 69 | + <label for="snr-region-select">SNR:</label> |
| 70 | + <select id="snr-region-select" class="filter-menu"> |
| 71 | + <!-- Options will be populated dynamically --> |
| 72 | + </select> |
| 73 | + |
| 74 | + <label for="type-region-select">Type: </label> |
| 75 | + <select id="type-region-select" class="filter-menu"> |
| 76 | + <option value="D_fitted">Diffusion</option> |
| 77 | + <option value="Dp_fitted">Perfusion</option> |
| 78 | + <option value="f_fitted">Perfusion Fraction</option> |
| 79 | + </select> |
| 80 | + |
| 81 | + <div class="slider-container"> |
| 82 | + <span class="slider-label">Upper Range:</span> |
| 83 | + <button id="decrement-range-region" class="slider-button">-</button> |
| 84 | + <input type="range" id="range-slider-region" class="slider" min="2" max="100" step="2" value="2"> |
| 85 | + <button id="increment-range-region" class="slider-button">+</button> |
| 86 | + <span id="range-value-region" class="slider-value">2</span> |
| 87 | + </div> |
| 88 | + <div id="region-lower-slider" class="slider-container"> |
| 89 | + <span class="slider-label">Lower Range:</span> |
| 90 | + <button id="decrement-lower-range-region" class="slider-button">+</button> |
| 91 | + <input type="range" id="lower-range-slider-region" class="slider" min="2" max="100" step="2" value="2"> |
| 92 | + <button id="increment-lower-range-region" class="slider-button">-</button> |
| 93 | + <span id="lower-range-value-region" class="slider-value">2</span> |
| 94 | + </div> |
| 95 | + </div> |
| 96 | + <div class="chart-card" id="regionDiv"> |
| 97 | + <!-- New chart will be rendered here --> |
| 98 | + </div> |
| 99 | + |
| 100 | + |
| 101 | + </main> |
| 102 | + </div> |
| 103 | +</body> |
| 104 | +</html> |
0 commit comments