krouzek:mereni_rychlosti_internetu

<!DOCTYPE html>
<html>
<head>
<style>
div {
  width: 10px;
  height: 0px;
  background-color: black;
  float:left;
}
</style>
</head>
<body>
 <div id="result"></div>
<script>
var start_time = new Date();
 
 var xhttp = new XMLHttpRequest();
  xhttp.onreadystatechange = function() {
 
    if (this.readyState == 4 && this.status == 200) {
	 var end_time = new Date();
     var time = (end_time - start_time)/1000;
     document.getElementById("result").innerHTML = "5MB staženo za "+time+"s";
    }
  };
  xhttp.open("GET", "http://adasek.cz/velke.php?"+Math.random(), true);
  xhttp.send();
</script>
</body>
</html>
  • krouzek/mereni_rychlosti_internetu.txt
  • Poslední úprava: 2023/11/15 20:54
  • autor: 127.0.0.1