Skip to content

Instantly share code, notes, and snippets.

@anak10thn
Created February 18, 2013 12:22
Show Gist options
  • Save anak10thn/4976986 to your computer and use it in GitHub Desktop.
Save anak10thn/4976986 to your computer and use it in GitHub Desktop.
Sysinfo use IGNSDK API
<!DOCTYPE html>
<html>
<head>
<script src="qrc:///js/jquery.js"></script>
<script src="qrc:///js/bootstrap.js"></script>
<script src="qrc:///js/bootstrap-reponsive.js"></script>
<link href="qrc:///css/bootstrap.css" rel="stylesheet">
<meta charset=utf-8 />
<title>System Info</title>
<script>
ign.setDev(true);
ign.WidgetSizeMax(300,450);
$(function(){
$('.release').html('Release: '+ign.cliOut('cat /etc/ign-release'));
$('.arc').html('Arch: '+ign.cliOut('uname -m'));
$('.kernel').html('Kernel: '+ign.cliOut('uname -r'));
})
</script>
</head>
<body style='background:transparent;background-color:rgba(255,255,255,0.5)'>
<div class="container span4">
<p><strong class='release'></strong></p>
<p><strong class='arc'></strong></p>
<p><strong class='kernel'></strong></p>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment