mirror of
				https://gitea.augustin64.fr/piair/MsRewards-Reborn.git
				synced 2025-11-03 23:23:53 +01:00 
			
		
		
		
	j'aime toujours pas le js mais ca commence a marcher
This commit is contained in:
		@@ -8,10 +8,14 @@
 | 
				
			|||||||
{%if not current_user.is_authenticated %}
 | 
					{%if not current_user.is_authenticated %}
 | 
				
			||||||
    <button class="unselected" onclick="location.href = '/login';">login</button>
 | 
					    <button class="unselected" onclick="location.href = '/login';">login</button>
 | 
				
			||||||
{% else %}
 | 
					{% 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')}}" width="100%" height="80%"></iframe>
 | 
				
			||||||
    <iframe id="iframe" src="{{url_for('static', filename='logs/dev.txt')}}"></iframe>
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
    <script>
 | 
					    <script>
 | 
				
			||||||
 | 
					        var myIframe = document.getElementById('iframe');
 | 
				
			||||||
 | 
					        myIframe.addEventListener("load", function() {
 | 
				
			||||||
 | 
					            myIframe.contentWindow.scrollTo(0, myIframe.contentDocument.body.scrollHeight);
 | 
				
			||||||
 | 
					        });
 | 
				
			||||||
 | 
					        
 | 
				
			||||||
        window.setInterval(function() {
 | 
					        window.setInterval(function() {
 | 
				
			||||||
            reloadIFrame()
 | 
					            reloadIFrame()
 | 
				
			||||||
        }, 500);
 | 
					        }, 500);
 | 
				
			||||||
@@ -19,8 +23,6 @@
 | 
				
			|||||||
        function reloadIFrame() {
 | 
					        function reloadIFrame() {
 | 
				
			||||||
            console.log('reloading..');
 | 
					            console.log('reloading..');
 | 
				
			||||||
            document.getElementById('iframe').contentWindow.location.reload();
 | 
					            document.getElementById('iframe').contentWindow.location.reload();
 | 
				
			||||||
            var myIframe = document.getElementById('iframe');
 | 
					 | 
				
			||||||
            myIframe.contentWindow.scrollTo(0, myIframe.contentDocument.body.scrollHeight);
 | 
					 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
    </script>
 | 
					    </script>
 | 
				
			||||||
{% endif %}
 | 
					{% endif %}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user