mirror of
https://github.com/sigmasternchen/combinationLockPG
synced 2025-03-15 11:38:55 +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
|
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
|
||||||
|
|
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">
|
<!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>
|
3
lock.js
3
lock.js
|
@ -47,4 +47,5 @@ var drawDial = function(rot) {
|
||||||
context.fill();
|
context.fill();
|
||||||
}
|
}
|
||||||
context.restore();
|
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');
|
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;
|
||||||
|
|
Loading…
Reference in a new issue