You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by pu...@apache.org on 2012/11/01 11:53:29 UTC
[14/51] [abbrv] cleanup leftovers
http://git-wip-us.apache.org/repos/asf/incubator-cordova-windows/blob/ee53a824/windows8/samples/Notification Test/Notification Test/cordova.js
----------------------------------------------------------------------
diff --git a/windows8/samples/Notification Test/Notification Test/cordova.js b/windows8/samples/Notification Test/Notification Test/cordova.js
new file mode 100644
index 0000000..1f2c353
--- /dev/null
+++ b/windows8/samples/Notification Test/Notification Test/cordova.js
@@ -0,0 +1,27 @@
+(function () {
+
+ var VERSION = '2.2.0',
+ currentScript = 'cordova-' + VERSION + '.js',
+ scripts = document.getElementsByTagName('script');
+
+ for (var n = 0; n < scripts.length; n++) {
+ if (scripts[n].src.indexOf('cordova.js') > -1) {
+ var cordovaPath = scripts[n].src.replace('cordova.js', currentScript);
+ var scriptElem = document.createElement("script");
+ scriptElem.src = cordovaPath;
+ document.head.appendChild(scriptElem);
+ }
+ }
+
+})();
+
+function backHome() {
+ if (window.device && device.platform && device.platform.toLowerCase() == 'android') {
+ navigator.app.backHistory();
+ }
+ else {
+ window.history.go(-1);
+ }
+}
+
+window.alert = window.alert || function (msg, title, btn) { console.log("Alert::" + msg); };
http://git-wip-us.apache.org/repos/asf/incubator-cordova-windows/blob/ee53a824/windows8/samples/Notification Test/Notification Test/default.html
----------------------------------------------------------------------
diff --git a/windows8/samples/Notification Test/Notification Test/default.html b/windows8/samples/Notification Test/Notification Test/default.html
deleted file mode 100644
index 92ba73b..0000000
Binary files a/windows8/samples/Notification Test/Notification Test/default.html and /dev/null differ
http://git-wip-us.apache.org/repos/asf/incubator-cordova-windows/blob/ee53a824/windows8/samples/Notification Test/Notification Test/index.html
----------------------------------------------------------------------
diff --git a/windows8/samples/Notification Test/Notification Test/index.html b/windows8/samples/Notification Test/Notification Test/index.html
new file mode 100644
index 0000000..361bcf8
Binary files /dev/null and b/windows8/samples/Notification Test/Notification Test/index.html differ