cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bennma...@apache.org
Subject [1/4] Removed example project
Date Mon, 03 Jun 2013 20:28:53 GMT
Updated Branches:
  refs/heads/master 8d0ae9793 -> d4ca7f62f


http://git-wip-us.apache.org/repos/asf/cordova-wp7/blob/7835028a/example/www/events.html
----------------------------------------------------------------------
diff --git a/example/www/events.html b/example/www/events.html
deleted file mode 100644
index da0d17e..0000000
--- a/example/www/events.html
+++ /dev/null
@@ -1,146 +0,0 @@
-<!DOCTYPE html>
-<!--
- Licensed to the Apache Software Foundation (ASF) under one
- or more contributor license agreements.  See the NOTICE file
- distributed with this work for additional information
- regarding copyright ownership.  The ASF licenses this file
- to you under the Apache License, Version 2.0 (the
- "License"); you may not use this file except in compliance
- with the License.  You may obtain a copy of the License at
-
-   http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing,
- software distributed under the License is distributed on an
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, either express or implied.  See the License for the
- specific language governing permissions and limitations
- under the License. 
--->
-<html>
-  <head>
-    <!-- meta name="viewport" content="width=device-width, height=device-height, user-scalable=yes,
initial-scale=2.0, maximum-scale=4.0, minimum-scale=1.0" / -->
-    <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no;"
/>
-    <meta http-equiv="Content-type" content="text/html; charset=utf-8"/> <!-- ISO-8859-1
-->
-    <title>Cordova</title>
-
-
-    <link rel="stylesheet" href="master.css" type="text/css" media="screen"/>
-    <script type="text/javascript" charset="utf-8" src="cordova.js"></script>
-
-
-<script type="text/javascript" charset="utf-8">
-
-
-    function interceptBackbutton() {
-    	eventOutput("Back button intercepted");
-    }
-    function interceptMenubutton() {
-    	eventOutput("Menu button intercepted");
-    }
-    function interceptSearchbutton() {
-    	eventOutput("Search button intercepted");
-    }
-
-    var eventOutput = function(s) {
-		console.log("eventOutput :: " + s);
-        var el = document.getElementById("results");
-        el.innerHTML = el.innerHTML + s + "<br/>";
-    };
-
-
-    /**
-     * Function called when page has finished loading.
-     */
-    function init()
-    {
-        document.addEventListener("deviceready", function() {
-                console.log("Device="+device.platform+" "+device.version);
-                eventOutput("deviceready event: "+device.platform+" "+device.version);
-            }, false);
-
-
-        document.addEventListener("resume", function() {eventOutput("resume event");}, false);
-        document.addEventListener("pause", function() {eventOutput("pause event");}, false);
-        window.addEventListener("online", function() {eventOutput("online event");});
-        window.addEventListener("offline", function() {eventOutput("offline event");});
-
-        window.addEventListener("orientationchange", onOrientationChangedA);
-
-        window.onorientationchange  = onOrientationChangedB;
-
-        console.log("window.orientation = " + window.orientation);
-    }
-
-    function tryCallback(orientation)
-    {
-        var evt = document.createEvent('HTMLEvents')
-        evt.initEvent( 'orientationchange', true, false );
-        window.dispatchEvent(evt);
-    }
-
-    function onOrientationChangedA(e)
-    {
-      console.log("A OrientationChange event received!!!!!! " + window.orientation);
-    }
-
-    function onOrientationChangedB(e)
-    {
-      console.log("B OrientationChange event received!!!!!! " + window.orientation);
-    }
-
-	function onInterceptClicked(bAdd)
-	{
-		console.log("onInterceptClicked " + bAdd);
-		if(bAdd)
-		{
-			document.addEventListener('backbutton', interceptBackbutton, false);
-		}
-		else
-		{
-			document.removeEventListener('backbutton', interceptBackbutton, false);
-		}
-	}
-
-	function goBack()
-	{
-		document.location = "index.html";
-	}
-
-	function doBlur()
-	{
-		console.log("doBlur");
-	}
-
-	function doUnload()
-	{
-		console.log("doUnload");
-	}
-
-	function doFocus()
-	{
-		console.log("doFocus");
-	}
-
-</script>
-
-  </head>
-  <body onLoad="init();" onBlur="doBlur()" onUnload="doUnload()" onFocus="doFocus()" id="stage"
class="theme">
-
-    <h1>Events</h1>
-    <div id="info">
-        Results:<br/>
-        <span id="results"></span>
-    </div>
-
-    <h2>Action</h2>
-    <div class="btn large" onclick="onInterceptClicked(1);">Intercept backbutton</div>
-    <div class="btn large" onclick="onInterceptClicked(0);">Stop intercept of backbutton</div>
-    <div class="btn large" onclick="document.addEventListener('menubutton', interceptMenubutton,
false);">Intercept menubutton</div>
-    <div class="btn large" onclick="document.removeEventListener('menubutton', interceptMenubutton,
false);">Stop intercept of menubutton</div>
-    <div class="btn large" onclick="document.addEventListener('searchbutton', interceptSearchbutton,
false);">Intercept searchbutton</div>
-    <div class="btn large" onclick="document.removeEventListener('searchbutton', interceptSearchbutton,
false);">Stop intercept of searchbutton</div>
-    <div/>
-    <a href="index.html" class="backBtn">Back</a>
-  </body>
-</html>

http://git-wip-us.apache.org/repos/asf/cordova-wp7/blob/7835028a/example/www/file.html
----------------------------------------------------------------------
diff --git a/example/www/file.html b/example/www/file.html
deleted file mode 100644
index 753eb3a..0000000
--- a/example/www/file.html
+++ /dev/null
@@ -1,284 +0,0 @@
-<!DOCTYPE html>
-<!--
- Licensed to the Apache Software Foundation (ASF) under one
- or more contributor license agreements.  See the NOTICE file
- distributed with this work for additional information
- regarding copyright ownership.  The ASF licenses this file
- to you under the Apache License, Version 2.0 (the
- "License"); you may not use this file except in compliance
- with the License.  You may obtain a copy of the License at
-
-   http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing,
- software distributed under the License is distributed on an
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, either express or implied.  See the License for the
- specific language governing permissions and limitations
- under the License. 
--->
-<html>
-  <head>
-    <!-- meta name="viewport" content="width=device-width, height=device-height, user-scalable=yes,
initial-scale=2.0, maximum-scale=4.0, minimum-scale=1.0" / -->
-    <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no;"
/>
-    <meta http-equiv="Content-type" content="text/html; charset=utf-8"/> <!-- ISO-8859-1
-->
-    <title>Cordova</title>
-    <link rel="stylesheet" href="master.css" type="text/css" media="screen"/>
-
-
-    <script type="text/javascript" charset="utf-8" src="cordova.js"></script>
-
-
-<script type="text/javascript" charset="utf-8">
-
-    var deviceReady = false;
-    var persistent_root;
-
-    var getFileSystemRoot = (function () {
-
-        var onError = function (error) {
-            console.log('unable to retrieve file system: ' + error.code);
-        };
-
-        // one-time retrieval of the root file system entry
-        if (typeof persistent_root === 'undefined') {
-            window.requestFileSystem(LocalFileSystem.PERSISTENT, 0,
-                function (fileSystem) {
-                    persistent_root = fileSystem.root;
-                }, onError);
-        }
-
-        // public function returns private root entry
-        return persistent_root;
-
-    });
-
-
-    /**
-    * Gets file or directory
-    */
-    function getEntry(isFile, onSuccess, options) {
-
-        var root = getFileSystemRoot();
-        //TODO
-        console.log(typeof root);
-        var filePath = document.getElementById('filePath');
-
-        var onGetEntryError = function (fileError) {
-        console.log("Error creating/opening file/directory: " + fileError.code);
-        document.getElementById('file_status').innerHTML = "Error creating/opening file/directory:
" + fileError.code;
-        };
-
-        if (isFile == true) {
-            console.log('Creating file');
-            root.getFile(
-            filePath.value,
-            options,
-            onSuccess,
-            onGetEntryError);
-        } else {
-            console.log('Creating directory');
-            root.getDirectory(
-            filePath.value,
-            options,
-            onSuccess,
-            onGetEntryError);
-        }
-    };
-
-    /**
-    * Creates or opens file/directory
-    */
-    function createOrOpen(isFile) {
-        var onGetEntrySuccess = function (fileEntry) {
-        document.getElementById('file_status').innerHTML = "isFile: " + fileEntry.isFile
+ "; isDirectory: " + fileEntry.isDirectory + "; name: " + fileEntry.name + "; path: " + fileEntry.fullPath;
-        entry = fileEntry;
-        };
-        getEntry(isFile, onGetEntrySuccess, {create: true, exclusive: true});
-    };
-
-    /**
-    * Check if file/directory exists
-    */
-    function isExists(isFile) {
-
-        console.log("Start checking...");
-
-        var root = getFileSystemRoot();
-
-        var onError = function (fileError) {
-            console.log("Error checking file/directory: " + fileError.code);
-            document.getElementById('file_status').innerHTML = "Error checking file/directory:
" + fileError.code;
-        };
-
-        var onSuccess = function (isExist) {
-            document.getElementById('file_status').innerHTML = "is exists: " + isExist;
-        };
-
-        var filePath = document.getElementById('filePath');
-
-        if (isFile == true) {
-            console.log('check if file exists');
-            navigator.fileMgr.testFileExists(
-            filePath.value,
-            onSuccess,
-            onError);
-        } else {
-            navigator.fileMgr.testDirectoryExists(
-            filePath.value,
-            onSuccess,
-            onError);
-        }
-    };
-
-
-
-    /**
-    * Remove file or directory
-    */
-    function remove(isFile) {
-
-        var onSuccess = function (fileEntry) {
-
-            var onRemoveError = function (fileError) {
-            console.log("Error removing file/directory: " + fileError.code);
-            document.getElementById('file_status').innerHTML = "Error removing file/directory:
" + fileError.code;
-            };
-
-            var onRemoveSuccess = function () {
-                document.getElementById('file_status').innerHTML = "file/directory was removed";
-            };
-
-            fileEntry.remove(onRemoveSuccess, onRemoveError);
-        };
-
-        getEntry(isFile, onSuccess, {create: false});
-
-    };
-
-    /**
-    * Writes data in file
-    */
-    function writeInFile() {
-        var onSuccess = function (fileEntry) {
-
-            var writer = new FileWriter(fileEntry);
-
-            writer.onwrite = function (evt) {
-                console.log("End writing...");
-                document.getElementById('file_status').innerHTML = writer.length + " bytes
was written";
-            };
-            writer.onerror = function (evt) {
-                console.log("writing error");
-                document.getElementById('file_status').innerHTML = "writing error: " + evt.target.error;
-            };
-            writer.write(textToWrite.value);
-            console.log("End writing");
-        };
-        console.log("Start getting entry");
-        getEntry(true, onSuccess, { create: false });
-    };
-
-    /**
-    * Reads file as base64 string
-    */
-    function readAsBase64() {
-        var onSuccess = function (fileEntry) {
-            var reader = new FileReader();
-            reader.onloadend = function (evt) {
-                console.log("read success");
-                document.getElementById('file_status').innerHTML = evt.target.result;
-            };
-            reader.onerror = function (evt) {
-                console.log("read error");
-                document.getElementById('file_status').innerHTML = "read error: " + evt.target.error;
-            };
-
-            reader.readAsDataURL(fileEntry);
-        };
-
-        console.log("Start getting entry");
-        getEntry(true, onSuccess, { create: false });
-
-    };
-
-    /**
-    * Uploads selected file to specified server
-    */
-    function uploadFile() {
-
-        var onSuccess = function (fileUploadResult) {
-            console.log("Upload success");
-            document.getElementById('file_status').innerHTML = "Code: " + fileUploadResult.responseCode
+ "; Sent = " + fileUploadResult.bytesSent + "; Response:  " + fileUploadResult.response;
-        };
-
-        var onError = function (error) {
-            document.getElementById('file_status').innerHTML = "Upload error: " + error.code;
-        };
-
-        console.log("Set upload parameters");
-        var options = new FileUploadOptions();
-
-        options.fileKey = "file";
-        options.fileName = "newFile.txt";
-        options.mimeType = "text/plain";
-        var filePath = document.getElementById('filePath').value;
-        var server = document.getElementById('server').value;
-
-        var params = new Object();
-        params.key1 = "value1";
-        params.key2 = "value2";
-        options.params = params;
-
-        var fileTransfer = new FileTransfer();
-
-        fileTransfer.upload(filePath, server, onSuccess, onError, options);
-    };
-
-    /**
-    * Function called when page has finished loading.
-    */
-    function init() {
-        document.addEventListener("deviceready", function () {
-            deviceReady = true;
-            console.log("Device=" + device.platform + " " + device.version);
-            getFileSystemRoot();
-        }, false);
-        window.setTimeout(function () {
-            if (!deviceReady) {
-                alert("Error: Cordova did not initialize.  Demo will not run correctly.");
-            }
-        }, 1000);
-    }
-
-</script>
-
-  </head>
-  <body onLoad="init();" id="stage" class="theme">
-
-    <h1>File</h1>
-    <div id="info">
-        <span class='tb-label'>Enter file/directory name here:</span> <span
id="Span1"></span>
-        <input type="text" id="filePath" style="width:250px;height:20px;"/>
-        <br/>
-        <span class='tb-label'>Enter text to write in file :</span> <span
id="Span2"></span>
-        <input type="text" id="textToWrite" style="width:250px;height:20px;"/>
-        <br/>
-        <span class='tb-label'>Enter URL to upload file to: </span> <span
id="Span3"></span>
-        <input type="text" id="server" value='http://posttestserver.com/post.php?dir=cordovaTest'
style="width:250px;height:20px;"/>
-        <br/>
-        Result: <span id="file_status"></span>
-    </div>
-    <h2>Action</h2>
-    <a href="#" class="btn large" onclick="createOrOpen(true);">Create/Open file</a>
-    <a href="#" class="btn large" onclick="createOrOpen(false);">Create/Open directory</a>
-    <a href="#" class="btn large" onclick="isExists(true);">Check if file exists</a>
-    <a href="#" class="btn large" onclick="isExists(false);">Check if directory exists</a>
-    <a href="#" class="btn large" onclick="remove(true);">Remove file</a>
-    <a href="#" class="btn large" onclick="remove(false);">Remove directory</a>
-    <a href="#" class="btn large" onclick="writeInFile();">Write in file (type text
in the second field)</a>
-    <a href="#" class="btn large" onclick="readAsBase64();">Read file as base64</a>
-    <a href="#" class="btn large" onclick="uploadFile();">Upload file</a>
-    <h2> </h2><a href="index.html" class="backBtn">Back</a>
-  </body>
-</html>

http://git-wip-us.apache.org/repos/asf/cordova-wp7/blob/7835028a/example/www/index.html
----------------------------------------------------------------------
diff --git a/example/www/index.html b/example/www/index.html
deleted file mode 100644
index ee804b1..0000000
--- a/example/www/index.html
+++ /dev/null
@@ -1,108 +0,0 @@
-<!DOCTYPE html>
-<!--
- Licensed to the Apache Software Foundation (ASF) under one
- or more contributor license agreements.  See the NOTICE file
- distributed with this work for additional information
- regarding copyright ownership.  The ASF licenses this file
- to you under the Apache License, Version 2.0 (the
- "License"); you may not use this file except in compliance
- with the License.  You may obtain a copy of the License at
-
-   http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing,
- software distributed under the License is distributed on an
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, either express or implied.  See the License for the
- specific language governing permissions and limitations
- under the License. 
--->
-<html>
-  <head>
-    <meta name="viewport" content="width=device-width, height=device-height, initial-scale=1.0,
maximum-scale=1.0, user-scalable=no;" />
-    <meta http-equiv="Content-type" content="text/html; charset=utf-8"/>
-
-    <title>Cordova WP7</title>
-
-	  <link rel="stylesheet" href="master.css" type="text/css" media="screen" title="no title"
charset="utf-8"/>
-
-
-    <script type="text/javascript" charset="utf-8" src="cordova.js"></script>
-
-      <script type="text/javascript">
-
-
-        document.addEventListener("deviceready",onDeviceReady,false);
-        document.addEventListener("backbutton",onBackButton,false);
-
-        // once the device ready event fires, you can safely do your thing! -jm
-        function onDeviceReady()
-        {
-        // IE does NOT provide an alert method, you can patch it with this line after deviceready.
-        window.alert = window.alert || navigator.notification.alert;
-
-        console.log("onDeviceReady. You should see this message in Visual Studio's output
window.");
-        updateDeviceInfo();
-
-        }
-
-        function onBackButton()
-        {
-        console.log("onBackButton");
-        }
-
-        function updateDeviceInfo()
-        {
-        document.getElementById("platform").innerHTML = device.platform;
-        document.getElementById("version").innerHTML = device.version;
-        document.getElementById("uuid").innerHTML = device.uuid;
-        document.getElementById("name").innerHTML = device.name;
-        document.getElementById("width").innerHTML = screen.width;
-        document.getElementById("height").innerHTML = screen.height;
-        document.getElementById("colorDepth").innerHTML = screen.colorDepth;
-        };
-
-      </script>
-
-
-
-
-  </head>
-  <body>
-    <h1>Cordova Tests</h1>
-    <div id="info">
-      <h4>
-        Platform: <span id="platform"> </span>
-      </h4>
-      <h4>
-        Version: <span id="version"></span>
-      </h4>
-      <h4>
-        UUID: <span id="uuid"> </span>
-      </h4>
-      <h4>
-        Name: <span id="name"></span>
-      </h4>
-      <h4>
-        Width: <span id="width"></span>,   Height: <span id="height">
-          
-        </span>, Color Depth: <span id="colorDepth"></span>
-      </h4>
-    </div>
-
-    <a href="accelerometer.html" class="btn large">Accelerometer</a>
-    <a href="accelerometer2.html" class="btn large">Accel Game</a>
-    <a href="audio.html" class="btn large">Audio Play/Record</a>
-    <a href="camera.html" class="btn large">Camera</a>
-    <a href="capture.html" class="btn large">Capture</a>
-    <a href="compass.html" class="btn large">Compass</a>
-    <a href="network.html" class="btn large">Connection</a>
-    <a href="contacts.html" class="btn large">Contacts</a>
-    <a href="events.html" class="btn large">Events</a>
-    <a href="file.html" class="btn large">File</a>
-    <a href="location.html" class="btn large">Location</a>
-    <a href="notification.html" class="btn large">Notification</a>
-    <a href="storage.html" class="btn large">Local Storage</a>
-    <a href="calculator.html" class="btn large">Calculator (custom plugin)</a>
-  </body>
-</html>

http://git-wip-us.apache.org/repos/asf/cordova-wp7/blob/7835028a/example/www/location.html
----------------------------------------------------------------------
diff --git a/example/www/location.html b/example/www/location.html
deleted file mode 100644
index 11c3c30..0000000
--- a/example/www/location.html
+++ /dev/null
@@ -1,165 +0,0 @@
-<!DOCTYPE html>
-<!--
- Licensed to the Apache Software Foundation (ASF) under one
- or more contributor license agreements.  See the NOTICE file
- distributed with this work for additional information
- regarding copyright ownership.  The ASF licenses this file
- to you under the Apache License, Version 2.0 (the
- "License"); you may not use this file except in compliance
- with the License.  You may obtain a copy of the License at
-
-   http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing,
- software distributed under the License is distributed on an
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, either express or implied.  See the License for the
- specific language governing permissions and limitations
- under the License. 
--->
-<html>
-  <head>
-    <!-- meta name="viewport" content="width=device-width, height=device-height, user-scalable=yes,
initial-scale=2.0, maximum-scale=4.0, minimum-scale=1.0" / -->
-    <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no;"
/>
-    <meta http-equiv="Content-type" content="text/html; charset=utf-8"/>
-    <title>Cordova</title>
-    <link rel="stylesheet" href="master.css" type="text/css" media="screen"/>
-
-
-    <script type="text/javascript" charset="utf-8" src="cordova.js"></script>
-
-
-
-
-<script type="text/javascript" charset="utf-8">
-
-    var deviceReady = false;
-
-    //-------------------------------------------------------------------------
-    // Location
-    //-------------------------------------------------------------------------
-    var watchLocationId = null;
-
-    /**
-     * Start watching location
-     */
-    var watchLocation = function() {
-        console.log("watchLocation()");
-
-        // Success callback
-        var success = function(p){
-            document.getElementById('latitude').innerHTML = p.coords.latitude;
-            document.getElementById('longitude').innerHTML = p.coords.longitude;
-
-			document.getElementById('tdAlt').innerHTML = p.coords.altitude;
-			document.getElementById('tdAcc').innerHTML = p.coords.accuracy;
-			document.getElementById('tdAltAcc').innerHTML = p.coords.altitudeAccuracy;
-			document.getElementById('tdHeading').innerHTML = p.coords.heading;
-			document.getElementById('tdSpeed').innerHTML = p.coords.speed;
-        };
-
-        // Fail callback
-        var fail = function(e){
-            console.log("watchLocation fail callback with error code "+e);
-            stopLocation();
-        };
-
-        // Get location
-        watchLocationId = navigator.geolocation.watchPosition(success, fail, {enableHighAccuracy:
true});
-        setLocationStatus("Running");
-    };
-
-    /**
-     * Stop watching the location
-     */
-    var stopLocation = function() {
-        setLocationStatus("Stopped");
-        if (watchLocationId) {
-            navigator.geolocation.clearWatch(watchLocationId);
-            watchLocationId = null;
-        }
-    };
-
-    /**
-     * Get current location
-     */
-    var getLocation = function() {
-        console.log("getLocation()");
-
-        // Stop location if running
-        stopLocation();
-
-        // Success callback
-        var success = function(p)
-		{
-            document.getElementById('latitude').innerHTML = p.coords.latitude;
-            document.getElementById('longitude').innerHTML = p.coords.longitude;
-
-			document.getElementById('tdAlt').innerHTML = p.coords.altitude;
-			document.getElementById('tdAcc').innerHTML = p.coords.accuracy;
-			document.getElementById('tdAltAcc').innerHTML = p.coords.altitudeAccuracy;
-			document.getElementById('tdHeading').innerHTML = p.coords.heading;
-			document.getElementById('tdSpeed').innerHTML = p.coords.speed;
-
-            setLocationStatus("Done");
-        };
-
-        // Fail callback
-        var fail = function(e){
-            console.log("getLocation fail callback with error code "+e.code);
-            setLocationStatus("Error: "+e.code);
-        };
-
-        // Get location
-        navigator.geolocation.getCurrentPosition(success, fail, {enableHighAccuracy: true});
//, {timeout: 10000});
-        setLocationStatus("Retrieving location...");
-
-    };
-
-    /**
-     * Set location status
-     */
-    var setLocationStatus = function(status) {
-        document.getElementById('location_status').innerHTML = status;
-    };
-
-    /**
-     * Function called when page has finished loading.
-     */
-    function init() {
-        document.addEventListener("deviceready", function() {
-                deviceReady = true;
-                console.log("Device="+device.platform+" "+device.version);
-            }, false);
-        window.setTimeout(function() {
-        	if (!deviceReady) {
-        		alert("Error: Cordova did not initialize.  Demo will not run correctly.");
-        	}
-        },1000);
-    }
-
-</script>
-
-  </head>
-  <body onLoad="init();" id="stage" class="theme">
-
-    <h1>Location</h1>
-    <div id="info">
-        <b>Status:</b> <span id="location_status">Stopped</span>
-        <table width="100%">
-            <tr><td><b>Latitude:</b></td><td id="latitude">
</td></tr>
-            <tr><td><b>Longitude:</b></td><td id="longitude">
</td></tr>
-            <tr><td><b>Altitude:</b></td><td id="tdAlt">
</td></tr>
-            <tr><td><b>Accuracy:</b></td><td id="tdAcc">
</td></tr>
-            <tr><td><b>Altitude Accuracy:</b></td><td id="tdAltAcc">
</td></tr>
-            <tr><td><b>Heading:</b></td><td id="tdHeading">
</td></tr>
-            <tr><td><b>Speed:</b></td><td id="tdSpeed">
</td></tr>
-        </table>
-    </div>
-    <h2>Action</h2>
-    <a href="#" class="btn large" onClick="getLocation();">Get Location</a>
-    <a href="#" class="btn large" onClick="watchLocation();">Start Watching Location</a>
-    <a href="#" class="btn large" onClick="stopLocation();">Stop Watching Location</a>
-    <h2> </h2><a href="index.html" class="backBtn">Back</a>
-  </body>
-</html>

http://git-wip-us.apache.org/repos/asf/cordova-wp7/blob/7835028a/example/www/master.css
----------------------------------------------------------------------
diff --git a/example/www/master.css b/example/www/master.css
deleted file mode 100644
index cddbf7a..0000000
--- a/example/www/master.css
+++ /dev/null
@@ -1,175 +0,0 @@
-/*
-Licensed to the Apache Software Foundation (ASF) under one
-or more contributor license agreements.  See the NOTICE file
-distributed with this work for additional information
-regarding copyright ownership.  The ASF licenses this file
-to you under the Apache License, Version 2.0 (the
-"License"); you may not use this file except in compliance
-with the License.  You may obtain a copy of the License at
-
-  http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing,
-software distributed under the License is distributed on an
-"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-KIND, either express or implied.  See the License for the
-specific language governing permissions and limitations
-under the License.
-*/
-
-/**
-    PhoneFontSizeSmall=14pt
-    PhoneFontSizeNormal = 15pt
-    PhoneFontSizeMedium=17pt
-    PhoneFontSizeMediumLarge=19pt
-    PhoneFontSizeLarge=24pt
-    PhoneFontSizeExtraLarge=32pt
-    PhoneFontSizeExtraExtraLarge=54pt
-    PhoneFontSizeHuge=140pt
-*/
-
-/** 
-
-main wp7 color and fonts 
-
-*/
-  
-body, input, div
-{
-    background: black;
-    color: White;
-    font-family: Segoe WP;
-    font-size: 15pt; /* PhoneFontSizeNormal */
-    margin-left:0.1em;
-    filter: progid:DXImageTransform.Microsoft.Shadow(color=#000000,direction=45);
-}
-
-h1, h2, h3, h4 
-{    
-    display: block;
-    font-family: Segoe WP Light;
-    font-weight: bold;
-    margin: 0 0.1em;
-    min-height: 1.1em;
-    outline: 0 none;
-    overflow: hidden;
-    padding: 0;
-    text-align: left;
-    white-space: nowrap;
- }
-
-h1
-{
-    font-size: 32pt; /* PhoneFontSizeExtraLarge */ 
-}
-
-h2
-{
-    font-size: 24pt; /* PhoneFontSizeLarge */
-    font-weight: normal;
-}
-
-h3
-{
-    font-size: 17pt; /* PhoneFontSizeMedium */
-}
-
-h4
-{
-    font-size: 15pt; /* PhoneFontSizeNormal */
-    font-weight: normal;
-}
-
-h4 > span
-{
-    color: gray;
-}
-
-/** 
-
-Buttons
-
-*/
-
-a.btn, div.btn
-{
-    background: black;
-    color: white;
-    text-decoration: none;
-    display:block;
-    font-size: 15pt;
-    text-decoration:none;
-    padding:0.7em 0;
-    margin:3px 0px 3px 5px;
-}
-
-a.backBtn, input[type="button"], input[type="submit"]
-{
-    background: black;
-    color: white;
-    border-color: white;
-    border-style: solid;
-    padding: 4px 10px;
-    border-width: 3px; /* PhoneBorderThickness */
-    font-size: 17pt; /* PhoneFontSizeMedium */
-    display: block;
-    text-decoration:none;
-    text-transform:lowercase;
-  
-}
-
-input[type="button"]:active, input[type="submit"]:active
-{
-    background: white;
-    color: black;
-}
-
-/** 
-
-Input fields 
-
-*/
-
-input[type="text"]
-{
-    width: 150px;
-    padding:4px;
-    margin-bottom: 14px;
-    box-shadow: 0px 0px 12px #387bbe;
-    background-color: #8c8e8b;
-    border: 1px solid #B3B3B3;
-    color: #3e3e3e;
-    text-shadow: 0 1px 0 #FFFFFF;
-}
-
-input[type="text"]:focus,
-input[type="text"]:active {
-    box-shadow: 0 0 12px #387BBE;
-    background-color: #f0f0f0;
-}
-
-span.tb-label
-{
-    padding: 4px 10px 8px 4px;
-    font-size: 12pt;
-    color: grey; 
-    display: block;
-}
-
-/** 
-
-application specific styles
-
-*/
-
-#info {
-    border-bottom: 1px solid #666666;
-    border-top: 1px solid #666666;
-}
-
-#info table
-{
-    font-family: Segoe WP Light;
-}
-
-  

http://git-wip-us.apache.org/repos/asf/cordova-wp7/blob/7835028a/example/www/network.html
----------------------------------------------------------------------
diff --git a/example/www/network.html b/example/www/network.html
deleted file mode 100644
index 4215ff7..0000000
--- a/example/www/network.html
+++ /dev/null
@@ -1,96 +0,0 @@
-<!DOCTYPE html>
-<!--
- Licensed to the Apache Software Foundation (ASF) under one
- or more contributor license agreements.  See the NOTICE file
- distributed with this work for additional information
- regarding copyright ownership.  The ASF licenses this file
- to you under the Apache License, Version 2.0 (the
- "License"); you may not use this file except in compliance
- with the License.  You may obtain a copy of the License at
-
-   http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing,
- software distributed under the License is distributed on an
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, either express or implied.  See the License for the
- specific language governing permissions and limitations
- under the License. 
--->
-<html>
-  <head>
-    <!-- meta name="viewport" content="width=device-width, height=device-height, user-scalable=yes,
initial-scale=2.0, maximum-scale=4.0, minimum-scale=1.0" / -->
-    <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no;"
/>
-    <meta http-equiv="Content-type" content="text/html; charset=utf-8"/> <!-- ISO-8859-1
-->
-    <title>Cordova</title>
-    <link rel="stylesheet" href="master.css" type="text/css" media="screen" title="no
title" charset="utf-8"/>
-
-    <script type="text/javascript" charset="utf-8" src="cordova.js"></script>
-
-
-    <script type="text/javascript" charset="utf-8">
-
-    var deviceReady = false;
-
-    //-------------------------------------------------------------------------
-    // Notifications
-    //-------------------------------------------------------------------------
-
-    function getConnectionState()
-	{
-        var networkState = navigator.network.connection.type;
-
-        var states = {};
-        states[Connection.UNKNOWN]  = 'Unknown connection';
-        states[Connection.ETHERNET] = 'Ethernet connection';
-        states[Connection.WIFI]     = 'WiFi connection';
-        states[Connection.CELL_2G]  = 'Cell 2G connection';
-        states[Connection.CELL_3G]  = 'Cell 3G connection';
-        states[Connection.CELL_4G]  = 'Cell 4G connection';
-        states[Connection.NONE]     = 'No network connection';
-
-
-        document.getElementById("info").innerHTML = 'Connection type: ' + networkState;
-    };
-
-
-
-
-
-
-    /**
-     * Function called when page has finished loading.
-     */
-    function init() {
-
-
-
-        document.addEventListener("deviceready", function() {
-                deviceReady = true;
-                console.log("Device="+device.platform+" "+device.version);
-
-				Cordova.onCordovaConnectionReady.subscribeOnce(getConnectionState);
-
-            }, false);
-        window.setTimeout(function() {
-        	if (!deviceReady) {
-        		console.log("Error: Cordova did not initialize.  Demo will not run correctly.");
-        	}
-        },1000);
-    }
-
-</script>
-
-  </head>
-  <body onLoad="init();" id="stage" class="theme">
-
-    <h1>Network Connection</h1>
-    <div id="info">
-    </div>
-
-    <h2>Action</h2>
-    <a href="#" class="btn large" onClick="getConnectionState();">Get Connection State</a>
-
-    <a href="index.html" class="backBtn">Back</a>
-  </body>
-</html>

http://git-wip-us.apache.org/repos/asf/cordova-wp7/blob/7835028a/example/www/notification.html
----------------------------------------------------------------------
diff --git a/example/www/notification.html b/example/www/notification.html
deleted file mode 100644
index 5fbe9d9..0000000
--- a/example/www/notification.html
+++ /dev/null
@@ -1,112 +0,0 @@
-<!DOCTYPE html>
-<!--
- Licensed to the Apache Software Foundation (ASF) under one
- or more contributor license agreements.  See the NOTICE file
- distributed with this work for additional information
- regarding copyright ownership.  The ASF licenses this file
- to you under the Apache License, Version 2.0 (the
- "License"); you may not use this file except in compliance
- with the License.  You may obtain a copy of the License at
-
-   http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing,
- software distributed under the License is distributed on an
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, either express or implied.  See the License for the
- specific language governing permissions and limitations
- under the License. 
--->
-<html>
-  <head>
-    <!-- meta name="viewport" content="width=device-width, height=device-height, user-scalable=yes,
initial-scale=2.0, maximum-scale=4.0, minimum-scale=1.0" / -->
-    <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no;"
/>
-    <meta http-equiv="Content-type" content="text/html; charset=utf-8"/> <!-- ISO-8859-1
-->
-    <title>Cordova</title>
-    <link rel="stylesheet" href="master.css" type="text/css" media="screen" title="no
title" charset="utf-8"/>
-
-
-    <script type="text/javascript" charset="utf-8" src="cordova.js"></script>
-
-    <script type="text/javascript" charset="utf-8">
-
-      var deviceReady = false;
-
-      //-------------------------------------------------------------------------
-      // Notifications
-      //-------------------------------------------------------------------------
-
-      function doBeep(x)
-      {
-
-      navigator.notification.beep(x || 1);
-      };
-
-      function doVibrate()
-      {
-      navigator.notification.vibrate(0);
-      };
-
-      function doAlert()
-      {
-      var message = "This is an Alert dialog";
-      var title = "Attention!";
-
-      navigator.notification.alert(message,
-      function()
-      {
-      console.log("Alert dismissed.");
-      },
-      title);
-
-      console.log("After alert");
-      };
-
-      function doConfirm()
-      {
-      var message = "This is a confirm dialog";
-      var title = "Please Confirm";
-      var buttons = "OK,Cancel";
-      navigator.notification.confirm(message,
-      function(r) {
-      console.log("You selected " + r);
-
-      },
-      title,
-      buttons);
-      }
-
-
-      /**
-      * Function called when page has finished loading.
-      */
-      function init() {
-      document.addEventListener("deviceready", function() {
-      deviceReady = true;
-      console.log("Device="+device.platform+" "+device.version);
-      }, false);
-      window.setTimeout(function() {
-      if (!deviceReady) {
-      console.log("Error: Cordova did not initialize.  Demo will not run correctly.");
-      }
-      },3000);
-      }
-
-    </script>
-
-  </head>
-  <body onLoad="init();" id="stage" class="theme">
-
-    <h1>Notifications and Dialogs</h1>
-    <div id="info">
-    </div>
-
-    <h2>Action</h2>
-    <a class="btn large" onClick="doBeep();">Beep Once</a>
-    <a class="btn large" onClick="doBeep(3);">Beep 3X</a>
-    <a class="btn large" onClick="doVibrate();">Vibrate</a>
-    <a class="btn large" onClick="doAlert();">Show Alert Dialog</a>
-    <a class="btn large" onClick="doConfirm();">Show Confirm Dialog</a>
-    <h2> </h2><a href="index.html" class="backBtn">Back</a>
-  </body>
-</html>

http://git-wip-us.apache.org/repos/asf/cordova-wp7/blob/7835028a/example/www/storage.html
----------------------------------------------------------------------
diff --git a/example/www/storage.html b/example/www/storage.html
deleted file mode 100644
index 4946c84..0000000
--- a/example/www/storage.html
+++ /dev/null
@@ -1,78 +0,0 @@
-<!DOCTYPE html>
-<!--
- Licensed to the Apache Software Foundation (ASF) under one
- or more contributor license agreements.  See the NOTICE file
- distributed with this work for additional information
- regarding copyright ownership.  The ASF licenses this file
- to you under the Apache License, Version 2.0 (the
- "License"); you may not use this file except in compliance
- with the License.  You may obtain a copy of the License at
-
-   http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing,
- software distributed under the License is distributed on an
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, either express or implied.  See the License for the
- specific language governing permissions and limitations
- under the License. 
--->
-<html>
-  <head>
-    <!-- meta name="viewport" content="width=device-width, height=device-height, user-scalable=yes,
initial-scale=2.0, maximum-scale=4.0, minimum-scale=1.0" / -->
-    <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no;"
/>
-    <meta http-equiv="Content-type" content="text/html; charset=utf-8"/>
-    <title>Cordova</title>
-    <link rel="stylesheet" href="master.css" type="text/css" media="screen"/>
-
-
-    <script type="text/javascript" charset="utf-8" src="cordova.js"></script>
-
-
-<script type="text/javascript" charset="utf-8">
-
-    var deviceReady = false;
-
-    /**
-     * Function called when page has finished loading.
-     */
-    function init() {
-        document.addEventListener("deviceready", function() {
-                deviceReady = true;
-                console.log("Device="+device.platform+" "+device.version);
-            }, false);
-        window.setTimeout(function() {
-        	if (!deviceReady) {
-        		alert("Error: Cordova did not initialize.  Demo will not run correctly.");
-        	}
-        },1000);
-    }
-
-</script>
-
-  </head>
-  <body onLoad="init();" id="stage" class="theme">
-
-    <h1>Local Storage</h1>
-    <div id="info">
-        You have loaded this view <span id="count">an untold number of</span>
time(s).
-    </div>
-
-    <script>
-
-	    console.log("sessionStorage = " + (  'sessionStorage' in window && window.sessionStorage
!= null ));
-	    console.log("localStorage = " + (  'localStorage' in window && window.localStorage
!= null ));
-
-      if (!localStorage.pageLoadCount)
-      {
-        localStorage.setItem("pageLoadCount",0);
-      }
-
-      localStorage.setItem("pageLoadCount",parseInt(localStorage.pageLoadCount) + 1);
-
-      document.getElementById('count').textContent = localStorage.pageLoadCount;
-    </script>
-
-      <h2> </h2><a href="index.html" class="backBtn">Back</a>
-  </body>
-</html>


Mime
View raw message