Add stresstest reload page

This commit is contained in:
Gregor
2017-06-01 22:36:30 +02:00
parent 3b0e3d0aab
commit 1a364c3585
2 changed files with 25 additions and 0 deletions

24
http/counter.html Normal file
View File

@@ -0,0 +1,24 @@
<!DOCTYPE html>
<html>
<head>
<script>
document.addEventListener("DOMContentLoaded", function ()
{
var number = window.location.search;
if ( number == '') number = 0;
else number = number.substring(1,);
number = parseInt(number) + 1;
document.getElementById('count').innerHTML = number;
window.location.search = '?' + number;
}
)
</script>
</head>
<body>
<br>This page releoads as fast as it can to test the server.</br>
<br>It is meant as a stresstest to see when and if the server fails.</br>
<h1 id="count" class="countclass">
</h1>
</body>
</html>