Fixes to rendering of Webkit on browser

This commit is contained in:
Joe Bowser
2009-11-12 10:51:22 -08:00
parent 72a6748987
commit 99cdf9686d
5 changed files with 15 additions and 8 deletions
+4 -4
View File
@@ -9,11 +9,12 @@
<script type="text/javascript" charset="utf-8" src="phonegap.js"></script>
<script type="text/javascript" charset="utf-8">
var deviceInfo = function(){
console.log('setting the dom nodes');
var deviceInfo = function(){
document.getElementById("platform").innerHTML = device.platform;
document.getElementById("version").innerHTML = device.version;
document.getElementById("uuid").innerHTML = device.uuid;
console.log("Height:" + window.innerHeight);
console.log("Width:" + window.innerWidth);
}
var getLocation = function() {
@@ -103,8 +104,7 @@
function init(){
document.addEventListener("touchmove", preventBehavior, false);
document.addEventListener("deviceReady", deviceInfo, true);
console.log('we are in init');
document.addEventListener("deviceReady", deviceInfo, true);
}