Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 0cc8002347
Fetching contributors…

Cannot retrieve contributors at this time

executable file 44 lines (35 sloc) 1.427 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
<html>
<head>
<meta name = "viewport" content = "initial-scale = 1.0, user-scalable = no" />

<link rel="stylesheet" href="style.css" type="text/css"/>
<script type="text/javascript" src="NKit.js"></script>
<script type="text/javascript" src="javascript.js"></script>

        <script type="text/javascript">
        // Give Page a NKNavigationController Title
        var navController = new NKNavigationController();
        navController.setTitle("NKGetDeviceType");
        </script>

</head>

<body>
<script type="text/javascript">
// Show NKGetDeviceType ---------------------------------
// This function, when called will show a NKGetDeviceType
function showNKGetDeviceType()
{
NKAlert("DEVICE TYPE", NKGetDeviceType());
}
</script>

<div class="greybutton" onClick="showNKGetDeviceType();">Show NKGetDeviceType</div>


<div class="infobox">
<h1>NKGetDeviceType</h1>
<h2>Description</h2>
<p>NKGetDeviceType returns the device type as a string. Return values can be "iPhone", "iPad" or "iPod Touch".</p>
<h2>Usage</h2>
<p>NKGetDeviceType()</p>
<h2>Example</h2>
<p class="code">&lt;a href="#" onClick="showNKGetDeviceType();"&gt;Show NKGetDeviceType&lt;/a&gt;</p>
<p>When the link is clicked, the "showNKGetDeviceType" function is called &amp; the type of device is displayed:</p>
<p class="code">function showNKGetDeviceType()<br />{<br />NKAlert("Device Type", NKGetDeviceType());<br />}</p>
</div>


</body>
</html>
Something went wrong with that request. Please try again.