@Title{Desktop}@
@JavaScript{
	function wakeSuccess(data){
		$("#wakeSuccess").html(data);
		$("#wakeSuccess").show();
	}
	
	function hwmSuccess(data){
		$("#hwmOutput").html(data);
		console.log(data);
	}
	
	function GetHWM(timeout){
		setTimeout(function(){
			$("#hwmForm").submit();
		},timeout);
	}
	
	$(function(){
		$("#wakeButton").click(function(e){
			GetHWM(1000);
		});
	});
}@
@Body{
<div class="row col-lg-2">
	<div class="col">
		<h2>Wake Desktop</h2>
		<form ajaxForm action="/desktop/wake" method="post" style="text-align: center" onsuccess="wakeSuccess">
			<button type="submit" name="wake" id="wakeButton" title="Send wake command">
				<img src="/images/power.svg" width="128" alt="Wake" />
			</button>
			<div id="wakeSuccess" style="display:none"></div>
		</form>
	</div>
	<div class="col">
		<h2>Desktop Hardware Monitor</h2>
		<form id="hwmForm" ajaxForm action="/desktop/GetDesktopMonitor" method="post" onsuccess="hwmSuccess"></form>
		<div id="hwmOutput">Wake desktop to get data</div>
	</div>
</div>
}@