mirror of
				https://github.com/hyperion-project/hyperion.ng.git
				synced 2025-03-01 10:33:28 +00:00 
			
		
		
		
	* try ace * . * update * ... * update * update * test * - * update * fix * . * Revert "." This reverts commit631c30f8c0. * Revert "fix" This reverts commitbe3dbc9cbd. * Revert "update" This reverts commit50fc89e800. * Revert "-" This reverts commit8a6c1fdab3. * Revert "test" This reverts commit50b3641490. * update schema * update ui * flags * adjustments
		
			
				
	
	
		
			47 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			47 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
<div class="container" style="margin:20px auto;max-width:500px;">
 | 
						|
	<center>
 | 
						|
		<img src="img/hyperion/hyperionlogo.png" alt="Redefine ambient light!">
 | 
						|
		<div>
 | 
						|
			<h3  data-i18n="info_restart_title"></h3>
 | 
						|
			<h4  data-i18n="info_restart_rightback"></h4>
 | 
						|
			<p data-i18n="info_restart_contus"></p>
 | 
						|
			<a href="https://forum.hyperion-project.org?pk_campaign=WebUI&pk_kwd=failedrestart" data-i18n="info_restart_contusa"></a>
 | 
						|
		</div>
 | 
						|
	</center>
 | 
						|
</div>
 | 
						|
 | 
						|
 | 
						|
<!-- ************************************ -->
 | 
						|
 | 
						|
<script>
 | 
						|
performTranslation();
 | 
						|
var connectionLost = false;
 | 
						|
var connectionTimer;
 | 
						|
var count = 1;
 | 
						|
 | 
						|
function tryReconnect()
 | 
						|
{
 | 
						|
	if(count > 25)
 | 
						|
		window.clearInterval(connectionTimer);
 | 
						|
	
 | 
						|
	$.ajax({ url: "/" }).done(function(data) {
 | 
						|
		window.clearInterval(connectionTimer);
 | 
						|
		window.location.href ="/";
 | 
						|
	})
 | 
						|
	.fail( function( jqXHR, textStatus ) {
 | 
						|
		count++;
 | 
						|
	});
 | 
						|
}
 | 
						|
 | 
						|
function restartAction()
 | 
						|
{
 | 
						|
	if(!connectionLost)
 | 
						|
	{
 | 
						|
		window.clearInterval(cronId);
 | 
						|
		connectionLost = true;
 | 
						|
		connectionTimer = window.setInterval(tryReconnect, 1000);
 | 
						|
	}
 | 
						|
}
 | 
						|
 | 
						|
</script>
 |