From 3cf5e5a97afe8fc7877b528cf19130bef0d68bad Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Thu, 10 Sep 2020 14:35:21 +0200 Subject: build the app --- StoneIsland/platforms/ios/www/cordova_plugins.js | 18 ++- StoneIsland/platforms/ios/www/css/blogs.css | 5 +- StoneIsland/platforms/ios/www/css/index.css | 6 +- StoneIsland/platforms/ios/www/css/nav.css | 23 +++- .../platforms/ios/www/css/vendor/imageviewer.css | 2 +- StoneIsland/platforms/ios/www/index.html | 6 +- .../platforms/ios/www/js/lib/etc/accessibility.js | 3 +- StoneIsland/platforms/ios/www/js/lib/etc/push.js | 2 +- StoneIsland/platforms/ios/www/js/lib/etc/scroll.js | 9 +- .../www/SocialSharing.js | 143 +++++++++++++++++++++ .../www/plugins/es6-promise-plugin/www/promise.js | 13 ++ 11 files changed, 208 insertions(+), 22 deletions(-) create mode 100644 StoneIsland/platforms/ios/www/plugins/cordova-plugin-x-socialsharing/www/SocialSharing.js create mode 100644 StoneIsland/platforms/ios/www/plugins/es6-promise-plugin/www/promise.js (limited to 'StoneIsland/platforms/ios/www') diff --git a/StoneIsland/platforms/ios/www/cordova_plugins.js b/StoneIsland/platforms/ios/www/cordova_plugins.js index 74e8a3a4..a5fc9f49 100644 --- a/StoneIsland/platforms/ios/www/cordova_plugins.js +++ b/StoneIsland/platforms/ios/www/cordova_plugins.js @@ -79,6 +79,20 @@ cordova.define('cordova/plugin_list', function(require, exports, module) { "clobbers": [ "navigator.geolocation" ] + }, + { + "id": "es6-promise-plugin.Promise", + "file": "plugins/es6-promise-plugin/www/promise.js", + "pluginId": "es6-promise-plugin", + "runs": true + }, + { + "id": "cordova-plugin-x-socialsharing.SocialSharing", + "file": "plugins/cordova-plugin-x-socialsharing/www/SocialSharing.js", + "pluginId": "cordova-plugin-x-socialsharing", + "clobbers": [ + "window.plugins.socialsharing" + ] } ]; module.exports.metadata = { @@ -92,6 +106,8 @@ cordova.define('cordova/plugin_list', function(require, exports, module) { "cordova-plugin-firebasex": "10.2.0-cli", "cordova-plugin-ionic-keyboard": "2.2.0", "cordova-plugin-sim": "1.3.3", - "cordova-plugin-geolocation": "4.0.2" + "cordova-plugin-geolocation": "4.0.2", + "es6-promise-plugin": "4.2.2", + "cordova-plugin-x-socialsharing": "5.1.8" }; }); \ No newline at end of file diff --git a/StoneIsland/platforms/ios/www/css/blogs.css b/StoneIsland/platforms/ios/www/css/blogs.css index ee54a31f..f56ec474 100755 --- a/StoneIsland/platforms/ios/www/css/blogs.css +++ b/StoneIsland/platforms/ios/www/css/blogs.css @@ -36,7 +36,8 @@ text-decoration: underline; } #story .content > div { - display:none; + display: none; + padding-bottom: env(safe-area-inset-bottom); } #story .content div.active { display:block; @@ -340,7 +341,7 @@ ul.links { #archive .scroll { top: 0; left: 0; - height: calc(100% - 125px); + height: 100%; } #archive .row:first-of-type { margin-top: 7em; diff --git a/StoneIsland/platforms/ios/www/css/index.css b/StoneIsland/platforms/ios/www/css/index.css index 2130c675..496a0ee4 100755 --- a/StoneIsland/platforms/ios/www/css/index.css +++ b/StoneIsland/platforms/ios/www/css/index.css @@ -2,8 +2,8 @@ -webkit-tap-highlight-color: rgba(0,0,0,0); } body, html { - height: 100%; - width: 100%; + height: 100vh; + width: 100vw; margin: 0px; padding: 0px; overflow: hidden; @@ -18,7 +18,6 @@ body { background: #fff; font-family: pfd, sans-serif; font-size: 0.875rem; - padding-top: constant(safe-area-inset-top); } a, a:visited { color: #000; @@ -60,6 +59,7 @@ a, a:visited { } .vscroll .scroll { width: 100%; + overflow-x: hidden; /* height: calc(100vh - 2.5rem); overflow: scroll; -webkit-overflow-scrolling: touch; diff --git a/StoneIsland/platforms/ios/www/css/nav.css b/StoneIsland/platforms/ios/www/css/nav.css index 8ae57921..bd6747b1 100755 --- a/StoneIsland/platforms/ios/www/css/nav.css +++ b/StoneIsland/platforms/ios/www/css/nav.css @@ -3,7 +3,9 @@ #nav { position: fixed; - top: 0; left: 0; + top: env(safe-area-inset-top); + left: 0; + height: calc(100vh - env(safe-area-inset-top)); width: 249px; -webkit-transform: translateZ(0) translateX(-249px); -webkit-transition: -webkit-transform 0.1s; @@ -11,8 +13,10 @@ } #content { position: fixed; - top: 0; left: 0; - width: 100%; height: 100%; + top: env(safe-area-inset-top); + left: 0; + width: 100%; + height: calc(100vh - env(safe-area-inset-top)); overflow: hidden; -webkit-transform: translateZ(0) translateX(0px); -webkit-transition: -webkit-transform 0.1s; @@ -88,7 +92,7 @@ position: absolute; width: 100%; padding: 20px 0; - top:0; + top: 0; border-top: 1px solid #ddd; } @@ -102,9 +106,10 @@ #nav .social { position: absolute; - top: calc(100vh - 48px); + bottom: env(safe-area-inset-bottom); left: 0; border-top: 1px solid #ddd; + border-bottom: 1px solid #ddd; display: flex; flex-direction: row; } @@ -162,7 +167,7 @@ #nav-container { display:flex; - height:calc(100vh - 40px); + height: 100%; width:100%; position:absolute; flex-direction: column; @@ -343,9 +348,13 @@ padding-bottom:0px; #footer { display: block; position: fixed; - bottom: 0; left: 0; width: 100%; + bottom: 0; + left: 0; + width: 100%; background: #fff; border-top: 1px solid #ddd; + border-bottom: 1px solid #ddd; + margin-bottom: env(safe-area-inset-bottom); z-index: 1; } #footer div { diff --git a/StoneIsland/platforms/ios/www/css/vendor/imageviewer.css b/StoneIsland/platforms/ios/www/css/vendor/imageviewer.css index 739c37a1..90d80fde 100644 --- a/StoneIsland/platforms/ios/www/css/vendor/imageviewer.css +++ b/StoneIsland/platforms/ios/www/css/vendor/imageviewer.css @@ -26,7 +26,7 @@ height: 48px; position: fixed; right: 20px; - top: 20px; + top: calc(20px + env(safe-area-inset-top)); cursor: pointer; text-align: center; overflow: hidden; diff --git a/StoneIsland/platforms/ios/www/index.html b/StoneIsland/platforms/ios/www/index.html index d8065176..46c79c98 100755 --- a/StoneIsland/platforms/ios/www/index.html +++ b/StoneIsland/platforms/ios/www/index.html @@ -15,7 +15,7 @@ - + @@ -122,7 +122,9 @@

STORY

- +
+ +