mirror of
				https://gitea.augustin64.fr/piair/MsRewards-Reborn.git
				synced 2025-11-04 15:43:53 +01:00 
			
		
		
		
	bah voila a quoi ca sert
This commit is contained in:
		@@ -18,7 +18,9 @@
 | 
				
			|||||||
            document.getElementById('iframe').contentWindow.location.reload();
 | 
					            document.getElementById('iframe').contentWindow.location.reload();
 | 
				
			||||||
        });
 | 
					        });
 | 
				
			||||||
        
 | 
					        
 | 
				
			||||||
        window.setInterval(function() {document.getElementById('iframe').contentWindow.scrollTo(0, myIframe.contentDocument.body.scrollHeight);}, 500);
 | 
					        window.setInterval(function() {
 | 
				
			||||||
 | 
					            document.getElementById('iframe').contentWindow.scrollTo(0, myIframe.contentDocument.body.scrollHeight);
 | 
				
			||||||
 | 
					        }, 500);
 | 
				
			||||||
        
 | 
					        
 | 
				
			||||||
    </script>
 | 
					    </script>
 | 
				
			||||||
{% endif %}
 | 
					{% endif %}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -7,7 +7,24 @@
 | 
				
			|||||||
{%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 %}
 | 
				
			||||||
    <iframe src="/novnc/vnc.html?resize=scale&path=novnc/websockify&view_only" width="100%" height="100%" frameborder="0"></iframe>
 | 
					<iframe id="iframe" src="{{url_for('static', filename='logs/dev.txt')}}" width="20%" height="80%"></iframe>
 | 
				
			||||||
 | 
					<iframe src="/novnc/vnc.html?resize=scale&path=novnc/websockify&view_only" width="80%" height="100%" frameborder="0"></iframe>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					<script>
 | 
				
			||||||
 | 
					    var myIframe = document.getElementById('iframe');
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    myIframe.addEventListener("load", async () => {
 | 
				
			||||||
 | 
					        myIframe.contentDocument.body.innerHTML = myIframe.contentDocument.body.innerHTML + '<style>html{color:white;}</style>';
 | 
				
			||||||
 | 
					        await delay(2000);
 | 
				
			||||||
 | 
					        document.getElementById('iframe').contentWindow.location.reload();
 | 
				
			||||||
 | 
					    });
 | 
				
			||||||
 | 
					    
 | 
				
			||||||
 | 
					    window.setInterval(function() {
 | 
				
			||||||
 | 
					        document.getElementById('iframe').contentWindow.scrollTo(0, myIframe.contentDocument.body.scrollHeight);
 | 
				
			||||||
 | 
					    }, 500);
 | 
				
			||||||
 | 
					    
 | 
				
			||||||
 | 
					</script>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
{% endif %}
 | 
					{% endif %}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
{%endblock %}
 | 
					{%endblock %}
 | 
				
			||||||
		Reference in New Issue
	
	Block a user