mirror of
				https://gitea.augustin64.fr/piair/MsRewards-Reborn.git
				synced 2025-11-03 23:23:53 +01:00 
			
		
		
		
	normalement ca marche
This commit is contained in:
		@@ -23,6 +23,10 @@ function change_discord(value, data, len) {
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
function delay(ms) {
 | 
			
		||||
    return new Promise(resolve => setTimeout(resolve, ms));
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
function change_config(value, data, len) {
 | 
			
		||||
    console.log(data[2]);
 | 
			
		||||
    document.getElementById("delete").style.visibility = "hidden";
 | 
			
		||||
 
 | 
			
		||||
@@ -10,9 +10,6 @@
 | 
			
		||||
    <iframe id="iframe" src="{{url_for('static', filename='logs/dev.txt')}}" width="100%" height="80%"></iframe>
 | 
			
		||||
 | 
			
		||||
    <script>
 | 
			
		||||
        function delay(ms) {
 | 
			
		||||
            return new Promise(resolve => setTimeout(resolve, ms));
 | 
			
		||||
        }
 | 
			
		||||
        var myIframe = document.getElementById('iframe');
 | 
			
		||||
 | 
			
		||||
        myIframe.addEventListener("load", async () => {
 | 
			
		||||
@@ -20,8 +17,8 @@
 | 
			
		||||
            await delay(2000);
 | 
			
		||||
            document.getElementById('iframe').contentWindow.location.reload();
 | 
			
		||||
        });
 | 
			
		||||
        function descendre() {myIframe.contentWindow.scrollTo(0, myIframe.contentDocument.body.scrollHeight);}
 | 
			
		||||
        window.setInterval(descendre(), 500);
 | 
			
		||||
        
 | 
			
		||||
        window.setInterval(function() {document.getElementById('iframe').contentWindow.scrollTo(0, myIframe.contentDocument.body.scrollHeight);}, 500);
 | 
			
		||||
        
 | 
			
		||||
    </script>
 | 
			
		||||
{% endif %}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user