Return-Path: X-Original-To: apmail-cordova-commits-archive@www.apache.org Delivered-To: apmail-cordova-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id DEFC9DA09 for ; Thu, 1 Nov 2012 10:53:34 +0000 (UTC) Received: (qmail 27310 invoked by uid 500); 1 Nov 2012 10:53:34 -0000 Delivered-To: apmail-cordova-commits-archive@cordova.apache.org Received: (qmail 27190 invoked by uid 500); 1 Nov 2012 10:53:34 -0000 Mailing-List: contact commits-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: callback-dev@cordova.apache.org Delivered-To: mailing list commits@cordova.apache.org Received: (qmail 26223 invoked by uid 500); 1 Nov 2012 10:53:30 -0000 Delivered-To: apmail-incubator-callback-commits@incubator.apache.org Received: (qmail 26184 invoked by uid 99); 1 Nov 2012 10:53:30 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Nov 2012 10:53:30 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id D6BAC516C3; Thu, 1 Nov 2012 10:53:29 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: purplecabbage@apache.org To: callback-commits@incubator.apache.org X-Mailer: ASF-Git Admin Mailer Subject: [14/51] [abbrv] cleanup leftovers Message-Id: <20121101105329.D6BAC516C3@tyr.zones.apache.org> Date: Thu, 1 Nov 2012 10:53:29 +0000 (UTC) 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