mirror of
https://github.com/sigmasternchen/combinationLockPG
synced 2025-03-15 03:38:53 +00:00
still not working
This commit is contained in:
parent
d02052fb87
commit
c0757bd7cf
4 changed files with 17 additions and 18 deletions
12
config.xml
12
config.xml
|
@ -13,23 +13,19 @@
|
|||
Ein Zahlenschloss mit Hilfe des Kompass
|
||||
</description>
|
||||
|
||||
<author email="">
|
||||
|
||||
<author email="clara1@aon.at">
|
||||
BuchWei
|
||||
</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="fullscreen" value="true" /> <!-- all: hides the status bar at the top of the screen -->
|
||||
<preference name="webviewbounce" value="true" /> <!-- ios: control whether
|
||||
the screen 'bounces' when scrolled beyond the top -->
|
||||
<preference name="android-installLocation" value="preferExternal" />
|
||||
<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">
|
||||
<supports-screens
|
||||
|
|
16
index.html
16
index.html
|
@ -1,10 +1,12 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<script src="lock.js"></script>
|
||||
<script src="main.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<canvas id="canvas" width="200px" height="200px" style="background-color: #fff;"></canvas>
|
||||
</body>
|
||||
<head>
|
||||
<script src="lock.js">
|
||||
</script>
|
||||
<script src="main.js">
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<canvas id="canvas" width="200px" height="200px" style="background-color: #fff;"></canvas>
|
||||
</body>
|
||||
</html>
|
3
lock.js
3
lock.js
|
@ -47,4 +47,5 @@ var drawDial = function(rot) {
|
|||
context.fill();
|
||||
}
|
||||
context.restore();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
4
main.js
4
main.js
|
@ -1,4 +1,4 @@
|
|||
var onSucess = function(heading) {
|
||||
var onSuccess = function(heading) {
|
||||
var element = document.getElementById('heading');
|
||||
element.innerHTML = 'Heading: ' + heading;
|
||||
};
|
||||
|
@ -8,7 +8,7 @@ var onErrors = function() {
|
|||
};
|
||||
|
||||
var startup = function(){
|
||||
var watchID = navigator.compass.watchHeading(onSuccess, onErrors);
|
||||
var watchID = navigator.compass.getCurrentHeading(onSuccess, onErrors);
|
||||
lockinit();
|
||||
}
|
||||
window.onload = startup;
|
||||
|
|
Loading…
Reference in a new issue