diff --git a/IndexedDB/manifest.webapp b/IndexedDB/manifest.webapp
index b917dbb..70f4e27 100644
--- a/IndexedDB/manifest.webapp
+++ b/IndexedDB/manifest.webapp
@@ -9,6 +9,5 @@
"128": "/img/icons/icon-128.png"
},
"installs_allowed_from": ["*"],
- "appcache_path": "/cache.manifest",
"default_locale": "en"
}
\ No newline at end of file
diff --git a/NetworkInformation.zip b/NetworkInformation.zip
new file mode 100644
index 0000000..42e1d0e
Binary files /dev/null and b/NetworkInformation.zip differ
diff --git a/NetworkInformation/connection_bandwidth.html b/NetworkInformation/connection_bandwidth.html
index 1131d20..0bcf5be 100644
--- a/NetworkInformation/connection_bandwidth.html
+++ b/NetworkInformation/connection_bandwidth.html
@@ -5,6 +5,9 @@
+
+
+
diff --git a/NetworkInformation/connection_metered.html b/NetworkInformation/connection_metered.html
index e5ebbb6..4233765 100644
--- a/NetworkInformation/connection_metered.html
+++ b/NetworkInformation/connection_metered.html
@@ -11,10 +11,11 @@
var gIntervalId;
function poll() {
- // poll stuff
+ alert("Polling!");
}
-
- navigator.connection.addEventListener('change', function() {
+
+ var connection = navigator.connection || navigator.mozConnection || navigator.webkitConnection;
+ connection.addEventListener('change', function() {
if (gPreviousMetered == navigator.connection.metered) {
return;
}
diff --git a/NetworkInformation/images/pony.jpg b/NetworkInformation/images/pony.jpg
new file mode 100644
index 0000000..0454379
Binary files /dev/null and b/NetworkInformation/images/pony.jpg differ
diff --git a/NetworkInformation/images/pony_hd.jpg b/NetworkInformation/images/pony_hd.jpg
deleted file mode 100644
index c536596..0000000
Binary files a/NetworkInformation/images/pony_hd.jpg and /dev/null differ
diff --git a/NetworkInformation/images/pony_sd.jpg b/NetworkInformation/images/pony_sd.jpg
deleted file mode 100644
index f91a455..0000000
Binary files a/NetworkInformation/images/pony_sd.jpg and /dev/null differ
diff --git a/NetworkInformation/images/turtle.jpg b/NetworkInformation/images/turtle.jpg
new file mode 100644
index 0000000..d817050
Binary files /dev/null and b/NetworkInformation/images/turtle.jpg differ
diff --git a/NetworkInformation/manifest.webapp b/NetworkInformation/manifest.webapp
index 95bd5b4..ef0305f 100644
--- a/NetworkInformation/manifest.webapp
+++ b/NetworkInformation/manifest.webapp
@@ -1,14 +1,10 @@
{
- "version": "0.1",
"name": "NetworkInformation",
"description": "Network Information API Example App",
"launch_path": "/index.html",
"icons": {
- "16": "/img/icons/icon-16.png",
- "48": "/img/icons/icon-48.png",
- "128": "/img/icons/icon-128.png"
- },
- "installs_allowed_from": ["*"],
- "appcache_path": "/cache.manifest",
- "default_locale": "en"
+ "16": "img/icon-16.png",
+ "48": "img/icon-48.png",
+ "128": "img/icon-128.png"
+ }
}
\ No newline at end of file