mirror of
https://github.com/kiwix/kiwix-js-pwa.git
synced 2025-09-14 06:47:57 -04:00
Added more padding for content hidden under bottom bar #52
Former-commit-id: 847069a3cd3025087dc962a90fa541b5e95ca4b1 [formerly daf85c419955f15f00dbb070e89ffde171a7bd76] Former-commit-id: 17dc1141fa364861007e75326beed3b6c77cc54f
This commit is contained in:
parent
ce2fd1a300
commit
0c49aaec19
@ -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<p> </p><p> </p><p> </p><p> </p><p> </p>\r\n");
|
||||
htmlArticle = htmlArticle.replace(/(<\/body>)/i, "\r\n<p> </p><p> </p><p> </p><p> </p>\r\n$1");
|
||||
htmlArticle = htmlArticle.replace(/(dditional terms may apply for the media files[^<]+<\/div>\s*)/i, "$1\r\n<p> </p><p> </p><p> </p>\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, "<a href=\"$1.html\">$2</a>");
|
||||
|
Loading…
x
Reference in New Issue
Block a user