Skip to content

Commit

Permalink
2_hardware_info section
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesgpearce committed Jun 21, 2011
1 parent 536b712 commit 9db2572
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Expand Up @@ -8,4 +8,5 @@
/HelloNKAppDelegate.m
/iPad/
/iPhone/
/main.m
/main.m
/HTML/lib/touch/sencha-touch-debug.js
19 changes: 16 additions & 3 deletions HTML/app/app.js
Expand Up @@ -10,9 +10,22 @@ new Ext.Application({
ui:'light'
},
items: [{
title: 'One'
}, {
title: 'Two'
title: 'Info',
html:
'<table>' +
'<tr><th>Device</th><td>' +
NKGetDeviceType() +
'</td></tr>' +
'<tr><th>ID</th><td>' +
NKGetUniqueIdentifier() +
'</td></tr>' +
'<tr><th>Cellular</th><td>' +
NKIsInternetAvailableViaCellularNetwork() +
'</td></tr>' +
'<tr><th>WiFi</th><td>' +
NKIsInternetAvailableViaWifi() +
'</td></tr>' +
'</table>'
}]
});
}
Expand Down
23 changes: 23 additions & 0 deletions HTML/index.html
Expand Up @@ -6,9 +6,32 @@

<script src="lib/touch/sencha-touch.js" type="text/javascript"></script>
<script type="text/javascript" src="app/app.js"></script>
<script type="text/javascript" src="NKit.js"></script>

<link href="lib/touch/resources/css/sencha-touch.css" rel="stylesheet" type="text/css" />

<style>
table {
border-collapse: separate;
border-spacing: 4px;
}
td, th {
padding:4px;
vertical-align:top;
}
th {
background: #ddd;
font-weight: bold;
}
td {
background: #fff;
}
.x-button {
margin:12px auto 0;
width:50%;
}
</style>

</head>
<body></body>
</html>

0 comments on commit 9db2572

Please sign in to comment.