cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From purplecabb...@apache.org
Subject [11/51] [abbrv] remove old test project
Date Thu, 01 Nov 2012 10:53:29 GMT
http://git-wip-us.apache.org/repos/asf/incubator-cordova-windows/blob/ae5ef076/windows8/samples/TestAppCordova/TestAppCordova/js/script.js
----------------------------------------------------------------------
diff --git a/windows8/samples/TestAppCordova/TestAppCordova/js/script.js b/windows8/samples/TestAppCordova/TestAppCordova/js/script.js
deleted file mode 100644
index 4b92c2e..0000000
--- a/windows8/samples/TestAppCordova/TestAppCordova/js/script.js
+++ /dev/null
@@ -1,154 +0,0 @@
-´╗┐function alert(message) {
-    navigator.notification.alert(message, function () { });
-};
-
-function id(elementId) {
-    return document.getElementById(elementId);
-}
-
-function getGeoQuick() {
-    // onSuccess Callback
-    //   This method accepts a `Position` object, which contains
-    //   the current GPS coordinates
-    //
-    var onSuccess = function (position) {
-        id('geoLatQuick').innerText = position.coords.latitude;
-        id('geoLongQuick').innerText = position.coords.longitude;
-        id('geoAccQuick').innerText = position.coords.accuracy;
-        id('geoAltQuick').innerText = position.coords.altitude;
-        id('geoAltAccQuick').innerText = position.coords.altitudeAccuracy;
-        id('geoHeadQuick').innerText = position.coords.heading;
-        id('geoVelQuick').innerText = position.coords.speed;
-        id('geoTimeQuick').innerText = new Date(position.timestamp);
-    };
-
-    // onError Callback receives a PositionError object
-    //
-    function onError(error) {
-        alert('code: ' + error.code + '\n' +
-              'message: ' + error.message + '\n');
-    }
-
-    navigator.geolocation.getCurrentPosition(onSuccess, onError);
-};
-
-function getAccelQuick() {
-    function onSuccess(acceleration) {
-        id('accXQuick').innerText = acceleration.x;
-        id('accYQuick').innerText = acceleration.y;
-        id('accZQuick').innerText = acceleration.z;
-        id('accTimeQuick').innerText = acceleration.timestamp;
-    };
-
-    function onError() {
-        alert('onError!');
-    };
-
-    navigator.accelerometer.getCurrentAcceleration(onSuccess, onError);
-
-};
-
-function getCompQuick() {
-    function onSuccess(heading) {
-        id('compHeadQuick').innerText = heading.magneticHeading;
-        id('compTimeQuick').innerText = new Date(heading.timestamp);
-    };
-
-    function onError(error) {
-        alert('CompassError: ' + error.code);
-    };
-
-    navigator.compass.getCurrentHeading(onSuccess, onError);
-
-};
-
-
-var geoPersist = false;
-var accelPersist = false;
-var compPersist = false;
-var geoWatchID;
-var accWatchID;
-var compWatchID;
-
-function hitGeoPersist() {
-    if (geoPersist) {
-        geoPersist = false;
-        id('btnGeoPersist').innerHTML = 'Watch Gelocation';
-
-        navigator.geolocation.clearWatch(geoWatchID);
-    } else {
-        geoPersist = true;
-        id('btnGeoPersist').innerHTML = 'Stop Gelocation';
-
-        var onSuccess = function (position) {
-            id('geoLatPersist').innerText = position.coords.latitude;
-            id('geoLongPersist').innerText = position.coords.longitude;
-            id('geoAccPersist').innerText = position.coords.accuracy;
-            id('geoAltPersist').innerText = position.coords.altitude;
-            id('geoAltAccPersist').innerText = position.coords.altitudeAccuracy;
-            id('geoHeadPersist').innerText = position.coords.heading;
-            id('geoVelPersist').innerText = position.coords.speed;
-            id('geoTimePersist').innerText = new Date(position.timestamp);
-        };
-
-        function onError(error) {
-            alert('code: ' + error.code + '\n' +
-                  'message: ' + error.message + '\n');
-        }
-
-        geoWatchID = navigator.geolocation.watchPosition(onSuccess, onError, {frequency:
2000});
-    }
-};
-
-function hitAccelPersist() {
-    if (accelPersist) {
-        accelPersist = false;
-        id('btnAccPersist').innerHTML = 'Watch Acceleration';
-        
-        navigator.accelerometer.clearWatch(accWatchID);
-    } else {
-        accelPersist = true;
-        id('btnAccPersist').innerHTML = 'Stop Acceleration';
-        
-        function onSuccess(acceleration) {
-            id('accXPersist').innerText = acceleration.x;
-            id('accYPersist').innerText = acceleration.y;
-            id('accZPersist').innerText = acceleration.z;
-            id('accTimePersist').innerText = acceleration.timestamp;
-        };
-
-        function onError() {
-            alert('onError!');
-        };
-
-        navigator.accelerometer.getCurrentAcceleration(onSuccess, onError);
-
-        accWatchID = navigator.accelerometer.watchAcceleration(onSuccess, onError, { frequency:
100 });
-    }
-
-};
-
-function hitCompPersist() {
-    if (compPersist) {
-        compPersist = false;
-        id('btnCompPersist').innerHTML = 'Watch Compass';
-
-        navigator.compass.clearWatch(compWatchID);
-    } else {
-        compPersist = true;
-        id('btnCompPersist').innerHTML = 'Stop Compass';
-        
-        function onSuccess(heading) {
-            id('compHeadPersist').innerText = heading.magneticHeading;
-            id('compTimePersist').innerText = new Date(heading.timestamp);
-        };
-
-        function onError(error) {
-            alert('CompassError: ' + error.code);
-        };
-
-        navigator.compass.getCurrentHeading(onSuccess, onError);
-
-        compWatchID = navigator.compass.watchHeading(onSuccess, onError, { frequency: 100
});
-    }
-};
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-cordova-windows/blob/ae5ef076/windows8/samples/TestAppCordova/TestAppCordova/package.appxmanifest
----------------------------------------------------------------------
diff --git a/windows8/samples/TestAppCordova/TestAppCordova/package.appxmanifest b/windows8/samples/TestAppCordova/TestAppCordova/package.appxmanifest
deleted file mode 100644
index ebaf9c9..0000000
--- a/windows8/samples/TestAppCordova/TestAppCordova/package.appxmanifest
+++ /dev/null
@@ -1,74 +0,0 @@
-´╗┐<?xml version="1.0" encoding="utf-8"?>
-<Package xmlns="http://schemas.microsoft.com/appx/2010/manifest">
-  <Identity Name="a2bef493-a029-424e-b455-47c772af0d0e" Version="1.0.0.0" Publisher="CN=Cordova"
/>
-  <Properties>
-    <DisplayName>Cordova-Metro</DisplayName>
-    <PublisherDisplayName>Cordova</PublisherDisplayName>
-    <Logo>images\storelogo.png</Logo>
-  </Properties>
-  <Prerequisites>
-    <OSMinVersion>6.2.0</OSMinVersion>
-    <OSMaxVersionTested>6.2.0</OSMaxVersionTested>
-  </Prerequisites>
-  <Resources>
-    <Resource Language="x-generate" />
-  </Resources>
-  <Applications>
-    <Application Id="App" StartPage="default.html">
-      <VisualElements DisplayName="Cordova-MetroApp" Logo="images\logo.png" SmallLogo="images\smalllogo.png"
Description="Cordova-MetroApp" ForegroundText="light" BackgroundColor="#464646">
-        <DefaultTile ShowName="allLogos" />
-        <SplashScreen Image="images\splashscreen.png" />
-      </VisualElements>
-      <Extensions>
-        <Extension Category="windows.fileOpenPicker">
-          <FileOpenPicker>
-            <SupportedFileTypes>
-              <SupportsAnyFileType />
-            </SupportedFileTypes>
-          </FileOpenPicker>
-        </Extension>
-        <Extension Category="windows.fileSavePicker">
-          <FileSavePicker>
-            <SupportedFileTypes>
-              <SupportsAnyFileType />
-            </SupportedFileTypes>
-          </FileSavePicker>
-        </Extension>
-        <Extension Category="windows.fileTypeAssociation">
-          <FileTypeAssociation Name="all">
-            <EditFlags OpenIsSafe="true" />
-            <SupportedFileTypes>
-              <FileType>.uri</FileType>
-              <FileType>.txt</FileType>
-              <FileType>.file</FileType>
-              <FileType>.methods</FileType>
-              <FileType>.createWriter</FileType>
-              <FileType>.dir</FileType>
-              <FileType>.empty</FileType>
-              <FileType>.err</FileType>
-              <FileType>.xml</FileType>
-              <FileType>.json</FileType>
-              <FileType>.js</FileType>
-              <FileType>.jpg</FileType>
-              <FileType>.png</FileType>
-              <FileType>.mp4</FileType>
-              <FileType>.mp3</FileType>
-              <FileType>.path</FileType>
-            </SupportedFileTypes>
-          </FileTypeAssociation>
-        </Extension>
-      </Extensions>
-    </Application>
-  </Applications>
-  <Capabilities>
-    <Capability Name="documentsLibrary" />
-    <Capability Name="videosLibrary" />
-    <Capability Name="picturesLibrary" />
-    <Capability Name="musicLibrary" />
-    <Capability Name="enterpriseAuthentication" />
-    <Capability Name="internetClient" />
-    <DeviceCapability Name="microphone" />
-    <DeviceCapability Name="location" />
-    <DeviceCapability Name="webcam" />
-  </Capabilities>
-</Package>
\ No newline at end of file


Mime
View raw message