still not working

This commit is contained in:
moorgar11 2014-03-16 12:30:15 +01:00
parent d02052fb87
commit c0757bd7cf
4 changed files with 17 additions and 18 deletions

View file

@ -13,23 +13,19 @@
Ein Zahlenschloss mit Hilfe des Kompass Ein Zahlenschloss mit Hilfe des Kompass
</description> </description>
<author email=""> <author email="clara1@aon.at">
BuchWei
</author> </author>
<icon src="images/icon.png" />
<access origin="http://sis.htlinn.ac.at"/>
<access origin="http://sis.htlinn.ac.at/*"/>
<preference name="permissions" value="none"/> <preference name="permissions" value="none"/>
<preference name="fullscreen" value="true" /> <!-- all: hides the status bar at the top of the screen --> <preference name="fullscreen" value="true" /> <!-- all: hides the status bar at the top of the screen -->
<preference name="webviewbounce" value="true" /> <!-- ios: control whether <preference name="webviewbounce" value="true" /> <!-- ios: control whether
the screen 'bounces' when scrolled beyond the top --> the screen 'bounces' when scrolled beyond the top -->
<preference name="android-installLocation" value="preferExternal" /> <preference name="android-installLocation" value="preferExternal" />
<preference name="EnableViewportScale" value="true" /> <preference name="EnableViewportScale" value="true" />
<preference name="orientation" value="portrait" />
<gap:plugin name="org.apache.cordova.device-orientation" />
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.android.myap" android:versionCode="1"> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.android.myap" android:versionCode="1">
<supports-screens <supports-screens

View file

@ -1,10 +1,12 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html> <html>
<head> <head>
<script src="lock.js"></script> <script src="lock.js">
<script src="main.js"></script> </script>
</head> <script src="main.js">
<body> </script>
<canvas id="canvas" width="200px" height="200px" style="background-color: #fff;"></canvas> </head>
</body> <body>
<canvas id="canvas" width="200px" height="200px" style="background-color: #fff;"></canvas>
</body>
</html> </html>

View file

@ -47,4 +47,5 @@ var drawDial = function(rot) {
context.fill(); context.fill();
} }
context.restore(); context.restore();
}
}

View file

@ -1,4 +1,4 @@
var onSucess = function(heading) { var onSuccess = function(heading) {
var element = document.getElementById('heading'); var element = document.getElementById('heading');
element.innerHTML = 'Heading: ' + heading; element.innerHTML = 'Heading: ' + heading;
}; };
@ -8,7 +8,7 @@ var onErrors = function() {
}; };
var startup = function(){ var startup = function(){
var watchID = navigator.compass.watchHeading(onSuccess, onErrors); var watchID = navigator.compass.getCurrentHeading(onSuccess, onErrors);
lockinit(); lockinit();
} }
window.onload = startup; window.onload = startup;