Skip to content

Commit a3ed066

Browse files
Copilotsstidl
andauthored
Add alt attribute to speed test results image for accessibility (#731)
* Initial plan * Add ALT attribute to SpeedTest result image for accessibility Co-authored-by: sstidl <[email protected]> * Add alt attribute to docker/ui.php for accessibility Co-authored-by: sstidl <[email protected]> --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: sstidl <[email protected]>
1 parent 17e4554 commit a3ed066

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

docker/ui.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@ function startStop(){
163163
if(testId!=null){
164164
var shareURL=window.location.href.substring(0,window.location.href.lastIndexOf("/"))+"/results/?id="+testId;
165165
I("resultsImg").src=shareURL;
166+
I("resultsImg").alt="Download: "+uiData.dlStatus+" Mbps, Upload: "+uiData.ulStatus+" Mbps, Ping: "+uiData.pingStatus+" ms, Jitter: "+uiData.jitterStatus+" ms";
166167
I("resultsURL").value=shareURL;
167168
I("testId").innerHTML=testId;
168169
I("shareArea").style.display="";

examples/example-multipleServers-full.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@
147147
if(testId!=null){
148148
var shareURL=window.location.href.substring(0,window.location.href.lastIndexOf("/"))+"/results/?id="+testId;
149149
I("resultsImg").src=shareURL;
150+
I("resultsImg").alt="Download: "+uiData.dlStatus+" Mbps, Upload: "+uiData.ulStatus+" Mbps, Ping: "+uiData.pingStatus+" ms, Jitter: "+uiData.jitterStatus+" ms";
150151
I("resultsURL").value=shareURL;
151152
I("testId").innerHTML=testId;
152153
I("shareArea").style.display="";

index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@
155155
if(testId!=null){
156156
var shareURL=window.location.href.substring(0,window.location.href.lastIndexOf("/"))+"/results/?id="+testId;
157157
I("resultsImg").src=shareURL;
158+
I("resultsImg").alt="Download: "+uiData.dlStatus+" Mbps, Upload: "+uiData.ulStatus+" Mbps, Ping: "+uiData.pingStatus+" ms, Jitter: "+uiData.jitterStatus+" ms";
158159
I("resultsURL").value=shareURL;
159160
I("testId").innerHTML=testId;
160161
I("shareArea").style.display="";

0 commit comments

Comments
 (0)