You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="de">
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8">
|
|
|
|
<link href="styles.css" rel="stylesheet">
|
|
|
|
<title>University eSports Mainz</title>
|
|
|
|
<script>
|
|
|
|
let eventSource = new EventSource("elotracker/update.php");
|
|
|
|
eventSource.onopen = evt => console.log("Open: ", evt);
|
|
|
|
eventSource.addEventListener("progress", evt => {
|
|
|
|
console.log("Progress: ", evt.data);
|
|
|
|
})
|
|
|
|
eventSource.addEventListener("forbidden", evt => {
|
|
|
|
console.log("Forbidden: ", evt.data);
|
|
|
|
eventSource.close();
|
|
|
|
})
|
|
|
|
eventSource.onerror = evt => {
|
|
|
|
console.log("Error: ", evt);
|
|
|
|
eventSource.close();
|
|
|
|
}
|
|
|
|
eventSource.addEventListener("done", evt => {
|
|
|
|
console.log("done: ", evt);
|
|
|
|
eventSource.close();
|
|
|
|
})
|
|
|
|
</script>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<a href="elotracker">Zum Elo Tracker</a>
|
|
|
|
</body>
|
|
|
|
</html>
|