From c0757bd7cf07f71c8324363e4ae9fec0720c1ed5 Mon Sep 17 00:00:00 2001 From: moorgar11 Date: Sun, 16 Mar 2014 12:30:15 +0100 Subject: [PATCH] still not working --- config.xml | 12 ++++-------- index.html | 16 +++++++++------- lock.js | 3 ++- main.js | 4 ++-- 4 files changed, 17 insertions(+), 18 deletions(-) diff --git a/config.xml b/config.xml index 330ec82..39a61ee 100644 --- a/config.xml +++ b/config.xml @@ -13,23 +13,19 @@ Ein Zahlenschloss mit Hilfe des Kompass - - + + BuchWei - - - - - + - + - - - - - - - + + + + + + + \ No newline at end of file diff --git a/lock.js b/lock.js index c45cad1..9347117 100644 --- a/lock.js +++ b/lock.js @@ -47,4 +47,5 @@ var drawDial = function(rot) { context.fill(); } context.restore(); -} \ No newline at end of file + +} diff --git a/main.js b/main.js index 035297c..862d92f 100644 --- a/main.js +++ b/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;