-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
102 lines (83 loc) · 2.46 KB
/
Copy pathindex.html
File metadata and controls
102 lines (83 loc) · 2.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>Scotoma Mapping Tool</title>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<!-- INTRO -->
<div id="intro">
<h1>Scotoma Mapping Tool</h1>
<p>
This experimental tool helps you map visual blind spots using dynamic noise.
</p>
<h3>Instructions</h3>
<ul>
<li>Use one eye at a time (cover the other)</li>
<li>Keep your gaze fixed on the center cross</li>
<li>Click where you perceive distortions, missing or unstable areas</li>
<li>Maintain a consistent viewing distance</li>
</ul>
<h3>What you may notice</h3>
<ul>
<li><b>Central blind spot</b>: missing or altered area near fixation</li>
<li><b>Distortions</b>: noise appears warped or unstable</li>
<li><b>Faded zones</b>: reduced contrast, blurry gray spots or a flickering sensation. You may see some sparkling stars</li>
</ul>
<!-- OPTIONAL SETTINGS -->
<div style="margin-top:20px;">
<label>
Eye:
<select id="eyeSelect">
<option value="left">Left eye</option>
<option value="right">Right eye</option>
</select>
</label>
<br><br>
<label>
Distance (cm):
<input type="number" id="distanceInput" placeholder="e.g. 50">
</label>
</div>
<br>
<button id="startBtn">Start Test</button>
</div>
<!-- CANVAS -->
<canvas id="canvas"></canvas>
<!-- CONTROLS -->
<div id="controls">
<button id="exportBtn">Export Data</button>
<button id="resetBtn">Reset</button>
<button id="exitBtn">Exit</button>
</div>
<!-- INFO POST TEST -->
<div id="info" style="display:none;">
<p>
You can export your results and repeat the test over time to track changes.
</p>
<p>
For consistency, use the same screen, distance, and test conditions.
</p>
<p>
You may share the exported file with your eye specialist if needed.
</p>
<p style="font-size:12px;color:#FFFF00;">
This is not a medical diagnostic tool.
</p>
</div>
<!-- FOOTER -->
<footer>
<div id="donate">
<div class="donate-box">
<p>If this tool was useful, consider supporting its development</p>
<a href="https://paypal.me/dariogiannessi" target="_blank" class="donate-btn">
Support the project
</a>
</div>
</div>
</footer>
<script src="script.js"></script>
</body>
</html>