30 lines
		
	
	
		
			661 B
		
	
	
	
		
			HTML
		
	
	
	
			
		
		
	
	
			30 lines
		
	
	
		
			661 B
		
	
	
	
		
			HTML
		
	
	
	
<!DOCTYPE html>
 | 
						|
<html lang="en">
 | 
						|
<head>
 | 
						|
    <meta charset="UTF-8">
 | 
						|
    <title>Multiworld {{ filename }}</title>
 | 
						|
</head>
 | 
						|
<body>
 | 
						|
Log:
 | 
						|
<div id="logger"></div>
 | 
						|
<script>
 | 
						|
    var xmlhttp = new XMLHttpRequest();
 | 
						|
    var url = '{{ url_for('display_log', filename = filename) }}';
 | 
						|
 | 
						|
    xmlhttp.onreadystatechange = function () {
 | 
						|
        if (this.readyState == 4 && this.status == 200) {
 | 
						|
            document.getElementById("logger").innerText = this.responseText;
 | 
						|
        }
 | 
						|
    };
 | 
						|
 | 
						|
    function request_new() {
 | 
						|
        xmlhttp.open("GET", url, true);
 | 
						|
        xmlhttp.send();
 | 
						|
    }
 | 
						|
 | 
						|
 | 
						|
    request_new();
 | 
						|
    window.setInterval(request_new, 3000);
 | 
						|
</script>
 | 
						|
</body>
 | 
						|
</html> |