mirror of
				https://gitea.augustin64.fr/piair/MsRewards-Reborn.git
				synced 2025-11-03 23:23:53 +01:00 
			
		
		
		
	vraiment bizarre cet page de logs
This commit is contained in:
		@@ -68,5 +68,6 @@ function change_proxy(value, data, len) {
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
function change_logs(value) {
 | 
			
		||||
    console.log("new value : " + value);
 | 
			
		||||
    document.getElementById("embed").src = "/static/logs/" + value + ".txt";
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -9,6 +9,17 @@
 | 
			
		||||
    <button class="unselected" onclick="location.href = '/login';">login</button>
 | 
			
		||||
{% else %}
 | 
			
		||||
<embed type="text/html" src="{{url_for('static', filename='logs/dev.txt')}}"  width="100%" height="85%" id="embed">
 | 
			
		||||
    <iframe id="iframe" src="{{url_for('static', filename='logs/dev.txt')}}"></iframe>
 | 
			
		||||
 | 
			
		||||
    <script>
 | 
			
		||||
        window.setInterval(function() {
 | 
			
		||||
            reloadIFrame()
 | 
			
		||||
        }, 3000);
 | 
			
		||||
 | 
			
		||||
        function reloadIFrame() {
 | 
			
		||||
            console.log('reloading..');
 | 
			
		||||
            document.getElementById('iframe').contentWindow.location.reload();
 | 
			
		||||
        }
 | 
			
		||||
    </script>
 | 
			
		||||
{% endif %}
 | 
			
		||||
{% endblock %}
 | 
			
		||||
		Reference in New Issue
	
	Block a user