|
1 | | -.. raw:: html |
2 | | - |
3 | | - <div class="feedbackLink"><a id="feedbackLinkBottom" target=_blank>Do you have any feedback on this page?</b></a></div> |
4 | | - |
5 | 1 | ---- |
6 | 2 |
|
7 | 3 | .. raw:: html |
8 | 4 |
|
9 | | - <script> |
10 | | -
|
11 | | - var url_string = window.location.href; |
12 | | - var a = document.getElementById('feedbackLinkBottom'); |
13 | | - a.setAttribute("href", "https://artifex.com/contributor/feedback.php?utm_source=rtd-pymupdf&utm_medium=rtd&utm_content=footer-link&url="+url_string); |
14 | | -
|
15 | | - </script> |
16 | | - |
17 | 5 | <p style="color:#999" id="footerDisclaimer">This software is provided AS-IS with no warranty, either express or implied. This software is distributed under license and may not be copied, modified or distributed except as expressly authorized under the terms of that license. Refer to licensing information at <a href="https://www.artifex.com?utm_source=rtd-pymupdf&utm_medium=rtd&utm_content=footer-link">artifex.com</a> or contact Artifex Software Inc., 39 Mesa Street, Suite 108A, San Francisco CA 94129, United States for further information.</p> |
18 | 6 |
|
19 | | - |
20 | | - |
21 | 7 | <script> |
22 | 8 |
|
23 | 9 | let docLanguage = document.getElementsByTagName('html')[0].getAttribute('lang'); |
24 | 10 |
|
25 | 11 | function getHeaderAndFooterTranslation(str) { |
26 | 12 | if (docLanguage == "ja") { |
27 | | - if (str == "Do you have any feedback on this page?") { |
28 | | - return "このページに関するご意見はありますか?"; |
29 | | - } else if (str == "Find <b>#pymupdf</b> on <b>Discord</b>") { |
| 13 | + if (str == "Find <b>#pymupdf</b> on <b>Discord</b>") { |
30 | 14 | return "<b>Discord</b>の <b>#pymupdf</b> を見つける"; |
31 | 15 | } else if (str == "This software is provided AS-IS with no warranty, either express or implied. This software is distributed under license and may not be copied, modified or distributed except as expressly authorized under the terms of that license. Refer to licensing information at <a href='https://www.artifex.com?utm_source=rtd-pymupdf&utm_medium=rtd&utm_content=footer-link'>artifex.com</a> or contact Artifex Software Inc., 39 Mesa Street, Suite 108A, San Francisco CA 94129, United States for further information.") { |
32 | 16 |
|
|
39 | 23 | } |
40 | 24 |
|
41 | 25 | document.getElementById("findOnDiscord").innerHTML = getHeaderAndFooterTranslation("Find <b>#pymupdf</b> on <b>Discord</b>"); |
42 | | - document.getElementById("feedbackLinkTop").innerHTML = getHeaderAndFooterTranslation("Do you have any feedback on this page?"); |
43 | | - document.getElementById("feedbackLinkBottom").innerHTML = getHeaderAndFooterTranslation("Do you have any feedback on this page?"); |
44 | 26 | document.getElementById("footerDisclaimer").innerHTML = getHeaderAndFooterTranslation("This software is provided AS-IS with no warranty, either express or implied. This software is distributed under license and may not be copied, modified or distributed except as expressly authorized under the terms of that license. Refer to licensing information at <a href='https://www.artifex.com?utm_source=rtd-pymupdf&utm_medium=rtd&utm_content=footer-link'>artifex.com</a> or contact Artifex Software Inc., 39 Mesa Street, Suite 108A, San Francisco CA 94129, United States for further information."); |
45 | 27 |
|
46 | 28 |
|
|
0 commit comments