summaryrefslogtreecommitdiff
path: root/help3xsl/help.html
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@collabora.com>2018-08-10 17:20:07 +0200
committerOlivier Hallot <olivier.hallot@libreoffice.org>2018-08-12 16:20:25 +0200
commit9e4660049b5f4c6da3c652f068186e52a360ae3b (patch)
tree813d47a0d33af308043d6ddeff60750cf534b2e5 /help3xsl/help.html
parent7ab3eded419b6fddbdd9d7a7c1f676b3720950c0 (diff)
Avoid several JS errors.
Change-Id: If0b8b4f3e8c3464f4e7f812ba727a929330438f3 Reviewed-on: https://gerrit.libreoffice.org/58864 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
Diffstat (limited to 'help3xsl/help.html')
-rw-r--r--help3xsl/help.html16
1 files changed, 15 insertions, 1 deletions
diff --git a/help3xsl/help.html b/help3xsl/help.html
index acaf55b2d1..42f1296f01 100644
--- a/help3xsl/help.html
+++ b/help3xsl/help.html
@@ -8,11 +8,25 @@
-->
<html>
<head>
- <script type="text/javascript" src="latest/help.js"></script>
<meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-inline' 'unsafe-eval' piwik.documentfoundation.org *.google.com *.googleapis.com"/>
</head>
<body>
<script type="text/javascript">
+ function getParameterByName(name, url) {
+ if (!url) {
+ url = window.location.href;
+ }
+ name = name.replace(/[\[\]]/g, "\\$&");
+ var regex = new RegExp("[?&]" + name + "(=([^&#]*)|&|#|$)");
+ var results = regex.exec(url);
+ if (!results) {
+ return null;
+ }
+ if (!results[2]) {
+ return '';
+ }
+ return decodeURIComponent(results[2].replace(/\+/g, " "));
+ }
var url = window.location.href;
var n = url.indexOf('?');
if (n != -1) {