Skip to content

Instantly share code, notes, and snippets.

@egel
Last active August 29, 2015 14:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save egel/1f5c0a973527e5391a95 to your computer and use it in GitHub Desktop.
Save egel/1f5c0a973527e5391a95 to your computer and use it in GitHub Desktop.
HEAD section of simple phonegap app
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>UEK</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- CSS -->
<link rel="stylesheet" type="text/css" href="css/jquery.mobile-1.4.2.min.css">
<link rel="stylesheet" href="css/themes/purple-rainbow.min.css" />
<link rel="stylesheet" href="css/themes/jquery.mobile.icons.min.css" />
<link rel="stylesheet" href="css/extra-added-styles.css" />
<!-- phonegap -->
<script type="text/javascript" charset="utf-8" src="phonegap.js"></script>
<script>
// Wait for PhoneGap to load
//
document.addEventListener("deviceready", onDeviceReady, false);
// PhoneGap is ready
//
function onDeviceReady() {
var element = document.getElementById('deviceProperties');
element.innerHTML =
'<p class="option">Nazwa urządzenia:</p>' +
'<p class="value">' + device.name + '<p>' +
'<p class="option">Wersja PhoneGap:</p> ' +
'<p class="value">' + device.phonegap + '</p>' +
'<p class="option">Platforma urządzania:</p> ' +
'<p class="value">' + device.platform + '</p>' +
'<p class="option">UUID urządzania:</p> ' +
'<p class="value">' + device.uuid + '</p>' +
'<p class="option">Wersja oprogramowania:</p> ' +
'<p class="value">' + device.version + '</p>';
}
</script>
</head>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment