From 3c5d35def16f60f72f889ef1e003b32a97450ade Mon Sep 17 00:00:00 2001 From: Jaifroid Date: Mon, 20 Sep 2021 07:38:23 +0100 Subject: [PATCH] Fix substitute start page rendering Former-commit-id: bce1fade6f9cd9b0496924d054413f0e046fda3e [formerly 18ce3d85698edcb2d487babddb5455379f7dc205] [formerly 2528dbbed3c1c49fe06cbd347fb3609d8d81ced9] [formerly b371f46055165fd23158b0bd9e13cc77fff598cb [formerly 8f3d49867497fb28764fa59bf240f6b6f1e2f953 [formerly 8158b8224784cd24b2804d00e7a99345c8a22d69]]] Former-commit-id: aae5693be20cf54b7705314c6020f1726da2a360 [formerly 01875dd59616d26efce5b0a36f95ff743d60d801 [formerly 6ca614f70b45ba9378ed72f36ec92099bcd00a7e]] Former-commit-id: f66c1b30092c8c4e2fc894cf09719cc7e6366b99 [formerly 8766de4e739e56a49e37bc610fe3444a3ce036c5] Former-commit-id: 7d6e89557ccef92c0e856d30302c66cab3e75451 --- .../Open_Textbook_of_Medicine | 698 ------------------ .../Open_Textbook_of_Medicine2 | 421 +++++++++++ www/js/app.js | 2 +- www/js/init.js | 4 +- www/js/lib/images.js | 2 +- 5 files changed, 425 insertions(+), 702 deletions(-) delete mode 100644 www/A/Wikipedia%3AWikiProject_Medicine/Open_Textbook_of_Medicine create mode 100644 www/A/Wikipedia%3AWikiProject_Medicine/Open_Textbook_of_Medicine2 diff --git a/www/A/Wikipedia%3AWikiProject_Medicine/Open_Textbook_of_Medicine b/www/A/Wikipedia%3AWikiProject_Medicine/Open_Textbook_of_Medicine deleted file mode 100644 index b9313adf..00000000 --- a/www/A/Wikipedia%3AWikiProject_Medicine/Open_Textbook_of_Medicine +++ /dev/null @@ -1,698 +0,0 @@ - - - - - - Wikipedia:WikiProject Medicine/Open Textbook of Medicine - - - - - - - - - - - - - - - - -
-
-
- -
-
-
-
-
-

- Open Textbook of Medicine -

-
-

Welcome to the Offline Medical Encyclopedia by Wikipedia’s WikiProject Medicine. - Please bear in mind that this is volunteer generated content. While we try our best to - make it as accurate as possible, it is not perfect. Thus we request that you use common - sense when consulting this app.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
-
- This article is issued from - - Wikipedia - . - The text is licensed under - Creative - Commons - Attribution - Sharealike - . - Additional terms may apply for the media files. -
-
- -
-
-
-
-
- - - - - - - - - - - - \ No newline at end of file diff --git a/www/A/Wikipedia%3AWikiProject_Medicine/Open_Textbook_of_Medicine2 b/www/A/Wikipedia%3AWikiProject_Medicine/Open_Textbook_of_Medicine2 new file mode 100644 index 00000000..3efaf05a --- /dev/null +++ b/www/A/Wikipedia%3AWikiProject_Medicine/Open_Textbook_of_Medicine2 @@ -0,0 +1,421 @@ + + + + + + Wikipedia:WikiProject Medicine/Open Textbook of Medicine + + + + + + + + + + + + + + + +
+
+
+ +
+
+
+
+
+

+ Open Textbook of Medicine +

+
+

Welcome to the Offline Medical Encyclopedia by Wikipedia’s WikiProject Medicine. + Please bear in mind that this is volunteer generated content. While we try our best to + make it as accurate as possible, it is not perfect. Thus we request that you use common + sense when consulting this app.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+
+ This article is issued from + + Wikipedia + . + The text is licensed under + Creative + Commons - Attribution - Sharealike + . + Additional terms may apply for the media files. +
+ +

 

 

 

+
+ +
+
+
+
+
+ + + + +

 

 

 

 

+ + + + \ No newline at end of file diff --git a/www/js/app.js b/www/js/app.js index 6986d246..69a3661d 100644 --- a/www/js/app.js +++ b/www/js/app.js @@ -3488,7 +3488,7 @@ define(['jquery', 'zimArchiveLoader', 'uiUtil', 'util', 'cache', 'images', 'sett // URLs that begin 'http' (i.e. non-relative URLs). It then captures the whole of the URL up until either the opening delimiter // (" or ', which is capture group \3) or a querystring or hash character (? or #). When the regex is used below, it will be further // processed to calculate the ZIM URL from the relative path. This regex can cope with legitimate single quote marks (') in the URL. - params.regexpTagsWithZimUrl = /(<(?:img|script|link)\b[^>]*?\s)(?:src|href)(\s*=\s*(["']))(?!http|app:)(.+?)(?=\3|\?|#)/ig; + params.regexpTagsWithZimUrl = /(<(?:img|script|link)\b[^>]*?\s)(?:src|href)(\s*=\s*(["']))(?!http|app:|data:)(.+?)(?=\3|\?|#)/ig; // Regex below tests the html of an article for active content [kiwix-js #466] // It inspects every