summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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) {