From 7e6c017473c13bed9f3fb60f9a1319b31b4e5fd2 Mon Sep 17 00:00:00 2001 From: Julian Date: Tue, 3 Jan 2017 17:43:31 -0300 Subject: [PATCH] fixes #22 Arreglar funcionamiento en android 4.3 --- config.xml | 2 +- package.json | 2 +- www/css/style.css | 23 +++++++++++++++++++++++ www/index.html | 18 +++++++++++++++++- www/js/app.js | 10 ++++++---- 5 files changed, 48 insertions(+), 7 deletions(-) diff --git a/config.xml b/config.xml index 179ddcc..3e3ac9d 100644 --- a/config.xml +++ b/config.xml @@ -1,5 +1,5 @@ - + Cualbondi Aplicación para la búsqueda de recorridos de bondis, colectivos, micros, buses, trenes, tranvías, metro, subte de corta y media distancia de cualbondi. diff --git a/package.json b/package.json index d7a2ee7..2b6a88b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "cualbondi", - "version": "3.0.9", + "version": "3.0.10", "description": "cualbondi v3", "dependencies": { "gulp": "^3.5.6", diff --git a/www/css/style.css b/www/css/style.css index 94ac452..e6236a1 100644 --- a/www/css/style.css +++ b/www/css/style.css @@ -261,6 +261,7 @@ div.contextmenu-marker-icon:before { ion-pull-up-handle { border-radius: 5px 5px 0px 0px; top: -15px !important; + height: 30px !important; } .radioContainer { @@ -288,4 +289,26 @@ ion-pull-up-handle { } .item.highlight { background-color: #eef; +} + +/* leave an empty space for ads */ +html { + position: absolute; + top: 0; + bottom: 50px; + left: 0; + right: 0; + min-height: initial; + background-color: white; +} +body { + position: absolute; + height: 100%; + width: 100%; +} +.modal-backdrop { + width: initial; + height: initial; + right: 0; + bottom: 50px; } \ No newline at end of file diff --git a/www/index.html b/www/index.html index 95560b7..cf45cb4 100644 --- a/www/index.html +++ b/www/index.html @@ -22,6 +22,22 @@ alert(url+':'+linenumber+'\n\n'+msg); return true; } + + // Element.closest() polyfill + // from https://developer.mozilla.org/en-US/docs/Web/API/Element/closest + if (window.Element && !Element.prototype.closest) { + Element.prototype.closest = + function(s) { + var matches = (this.document || this.ownerDocument).querySelectorAll(s), + i, + el = this; + do { + i = matches.length; + while (--i >= 0 && matches.item(i) !== el) {}; + } while ((i < 0) && (el = el.parentElement)); + return el; + }; + } @@ -167,7 +183,7 @@

Menu

-

v3.0.9

+

v3.0.10

diff --git a/www/js/app.js b/www/js/app.js index 63db444..6064dcc 100644 --- a/www/js/app.js +++ b/www/js/app.js @@ -21,14 +21,16 @@ function init($ionicPlatform, geolocationService, $timeout) { console.log('PLUGIN NOT FOUND window.StatusBar') } if (window.AdMob) { - window.AdMob.createBanner( { + var options = { adId: 'ca-app-pub-1193419141108967/7166287944', isTesting: false, - overlap: false, + overlap: true, offsetTopBar: false, position: window.AdMob.AD_POSITION.BOTTOM_CENTER, - bgColor: 'black' - } ); + bgColor: 'white' + } + window.AdMob.setOptions(options); + window.AdMob.createBanner(options); } else { console.log('PLUGIN NOT FOUND window.AdMob')