From 0c49aaec198aeef98d29581d4ab28f9d8128f15a Mon Sep 17 00:00:00 2001 From: Jaifroid Date: Tue, 13 Feb 2018 08:05:14 +0000 Subject: [PATCH] Added more padding for content hidden under bottom bar #52 Former-commit-id: 847069a3cd3025087dc962a90fa541b5e95ca4b1 [formerly daf85c419955f15f00dbb070e89ffde171a7bd76] Former-commit-id: 17dc1141fa364861007e75326beed3b6c77cc54f --- www/js/app.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/www/js/app.js b/www/js/app.js index 94354196..9b2d0c66 100644 --- a/www/js/app.js +++ b/www/js/app.js @@ -1654,7 +1654,8 @@ define(['jquery', 'zimArchiveLoader', 'util', 'uiUtil', 'cookies', 'q', 'module' //Some documents (e.g. Ray Charles Index) can't be scrolled to the very end, as some content remains benath the footer //so add some whitespace at the end of the document - htmlArticle = htmlArticle.replace(/(dditional terms may apply for the media files[^<]+<\/div>\s*)/i, "$1\r\n

 

 

 

 

 

\r\n"); + htmlArticle = htmlArticle.replace(/(<\/body>)/i, "\r\n

 

 

 

 

\r\n$1"); + htmlArticle = htmlArticle.replace(/(dditional terms may apply for the media files[^<]+<\/div>\s*)/i, "$1\r\n

 

 

 

\r\n"); //@TODO - remove this when issue fixed: VERY DIRTY PATCH FOR HTML IN PAGE TITLES on Wikivoyage htmlArticle = htmlArticle.replace(/<a href[^"]+"\/wiki\/([^"]+)[^<]+>([^<]+)<\/a>/ig, "$2");