|
|
@@ -126,11 +126,13 @@ function startStop(){
|
|
|
s.abort();
|
|
|
data=null;
|
|
|
I("startStopBtn").className="";
|
|
|
+ I("startStopBtn").setAttribute("aria-label","Start");
|
|
|
I("server").disabled=false;
|
|
|
initUI();
|
|
|
}else{
|
|
|
//test is not running, begin
|
|
|
I("startStopBtn").className="running";
|
|
|
+ I("startStopBtn").setAttribute("aria-label","Abort");
|
|
|
I("shareArea").style.display="none";
|
|
|
I("server").disabled=true;
|
|
|
s.onupdate=function(data){
|
|
|
@@ -138,6 +140,7 @@ function startStop(){
|
|
|
};
|
|
|
s.onend=function(aborted){
|
|
|
I("startStopBtn").className="";
|
|
|
+ I("startStopBtn").setAttribute("aria-label","Start");
|
|
|
I("server").disabled=false;
|
|
|
updateUI(true);
|
|
|
if(!aborted){
|
|
|
@@ -404,7 +407,7 @@ function initUI(){
|
|
|
<p id="message"><span class="loadCircle"></span>Selecting a server...</p>
|
|
|
</div>
|
|
|
<div id="testWrapper" class="hidden">
|
|
|
- <button id="startStopBtn" onclick="startStop()"></button><br/>
|
|
|
+ <button id="startStopBtn" onclick="startStop()" aria-label="Start"></button><br/>
|
|
|
<a class="privacy" href="#" onclick="I('privacyPolicy').style.display=''">Privacy</a>
|
|
|
<div id="serverArea">
|
|
|
Server: <select id="server" onchange="s.setSelectedServer(SPEEDTEST_SERVERS[this.value])"></select>
|