Skip to content
Browse files

Add device

  • Loading branch information...
1 parent fa77026 commit 44b7e9f18b3fe653dfd5d41508d03460174ce7a0 @mwbrooks mwbrooks committed
Showing with 28 additions and 0 deletions.
  1. +2 −0 www/device.html
  2. +18 −0 www/js/api/device.js
  3. +8 −0 www/js/phonegap.0.9.4.js
View
2 www/device.html
@@ -26,6 +26,8 @@
</ul>
</div>
+ <script type="text/javascript" src="js/api/device.js"></script>
+
</div>
</body>
</html>
View
18 www/js/api/device.js
@@ -0,0 +1,18 @@
+(function() {
+
+ var content = '';
+
+ [
+ { name: 'Device Name', value: window.device.name },
+ { name: 'Device UUID', value: window.device.uuid },
+ { name: 'Platform Name', value: window.device.platform },
+ { name: 'Platform Version', value: window.device.version },
+ { name: 'PhoneGap Version', value: window.device.phonegap }
+ ].forEach(function(obj) {
+ content += '<li>' + obj.name +
+ '<p class="ui-li-aside ul-li-desc">' + obj.value + '</p>' +
+ '</li>';
+ });
+
+ $('#device ul[data-role="listview"]').html(content).listview('refresh');
+})();
View
8 www/js/phonegap.0.9.4.js
@@ -44,6 +44,14 @@
}
};
+ window.device = {
+ name: 'iPhone',
+ uuid: 'adssfd888',
+ platform: 'iOS 4.3',
+ version: '4.3',
+ phonegap: '0.9.4'
+ };
+
window.ContactFindOptions = function() {};
})();

0 comments on commit 44b7e9f

Please sign in to comment.
Something went wrong with that request. Please try again.