diff options
author | Fabio Biocchetti <fbbcchtt9@gmail.com> | 2016-10-24 19:16:27 +0200 |
---|---|---|
committer | Olivier Hallot <olivier.hallot@edx.srv.br> | 2016-10-24 20:46:37 +0000 |
commit | 2f35a021df0677851b7f05522ca5b97b3992aca9 (patch) | |
tree | 004dc979092069b702bc5717dcc47ea7669eade4 /help3xsl/index.html | |
parent | b560ca36513ef209b23081dc5b971d30dd60e5f1 (diff) |
Fix comments in script and JavaScript refactor.
Comments correction in shell script
Introduced js debouncer for search bar
xml-stylesheet tag removed
Introduced parameter passing through pages
Links in XHP pages now work with js
Minor adjustments
Change-Id: Ibf5f7a74c3249fa6f1ff4d3037fe821797e88d1d
Reviewed-on: https://gerrit.libreoffice.org/30231
Reviewed-by: Olivier Hallot <olivier.hallot@edx.srv.br>
Tested-by: Olivier Hallot <olivier.hallot@edx.srv.br>
Diffstat (limited to 'help3xsl/index.html')
-rw-r--r-- | help3xsl/index.html | 34 |
1 files changed, 21 insertions, 13 deletions
diff --git a/help3xsl/index.html b/help3xsl/index.html index f326003196..ffba610479 100644 --- a/help3xsl/index.html +++ b/help3xsl/index.html @@ -1,8 +1,8 @@ <html> <head> -<link href="/default.css" rel="Stylesheet" type="text/css" /> -<script type="text/javascript" src="/jquery-3.1.1.min.js"></script> -<script type="text/javascript" src="/help.js"></script> +<link href="default.css" rel="Stylesheet" type="text/css" /> +<script type="text/javascript" src="jquery-3.1.1.min.js"></script> +<script type="text/javascript" src="help.js"></script> </head> <body> <input type="text" id="search-bar" style="margin-top:20px"/> @@ -10,22 +10,30 @@ <div id="TopLeft"> <table> <tr> - <td class="topmenu"><p onclick="displayResult('/text/scalc/main0000.xhp?Language=en-US&System=WIN&UseDB=no&DbPAR=calc','calc')">Calc</p></td> - <td class="topmenu"><p onclick="displayResult('/text/swriter/main0000.xhp?Language=en-US&System=WIN&UseDB=no&DbPAR=writer','writer')">Writer</p></td> - <td class="topmenu"><p onclick="displayResult('/text/simpress/main0000.xhp?Language=en-US&System=WIN&UseDB=no&DbPAR=simpress','impress')">Impress</p></td> - <td class="topmenu"><p onclick="displayResult('/text/sdraw/main0000.xhp?Language=en-US&System=WIN&UseDB=no&DbPAR=sdraw','draw')">Draw</p></td> - <td class="topmenu"><p onclick="displayResult('/text/schart/main0000.xhp?Language=en-US&System=WIN&UseDB=no&DbPAR=schart','chart')">Chart</p></td> - <td class="topmenu"><p onclick="displayResult('/text/sbasic/shared/main0001.xhp?Language=en-US&System=WIN&UseDB=no&DbPAR=sbasic','basic')">Basic</p></td> - <td class="topmenu"><p onclick="displayResult('/text/smath/main0000.xhp?Language=en-US&System=WIN&UseDB=no&DbPAR=smath','math')">Math</p></td> - <td class="topmenu"><p onclick="displayResult('/text/shared/explorer/database/main.xhp?Language=en-US&System=WIN&UseDB=no&DbPAR=shared','shared')">Base</p></td> - <td class="topmenu"><p onclick="displayResult('/text/shared/guide/main.xhp?Language=en-US&System=WIN&UseDB=no&DbPAR=shared','shared')">Guide</p></td> + <td class="topmenu"><p onclick="displayResult('../source/text/scalc/main0000.xhp?Language=en-US&System=WIN&UseDB=no&DbPAR=calc','calc')">Calc</p></td> + <td class="topmenu"><p onclick="displayResult('../source/text/swriter/main0000.xhp?Language=en-US&System=WIN&UseDB=no&DbPAR=writer','writer')">Writer</p></td> + <td class="topmenu"><p onclick="displayResult('../source/text/simpress/main0000.xhp?Language=en-US&System=WIN&UseDB=no&DbPAR=simpress','impress')">Impress</p></td> + <td class="topmenu"><p onclick="displayResult('../source/text/sdraw/main0000.xhp?Language=en-US&System=WIN&UseDB=no&DbPAR=sdraw','draw')">Draw</p></td> + <td class="topmenu"><p onclick="displayResult('../source/text/schart/main0000.xhp?Language=en-US&System=WIN&UseDB=no&DbPAR=schart','chart')">Chart</p></td> + <td class="topmenu"><p onclick="displayResult('../source/text/sbasic/shared/main0001.xhp?Language=en-US&System=WIN&UseDB=no&DbPAR=sbasic','basic')">Basic</p></td> + <td class="topmenu"><p onclick="displayResult('../source/text/smath/main0000.xhp?Language=en-US&System=WIN&UseDB=no&DbPAR=smath','math')">Math</p></td> + <td class="topmenu"><p onclick="displayResult('../source/text/shared/explorer/database/main.xhp?Language=en-US&System=WIN&UseDB=no&DbPAR=shared','shared')">Base</p></td> + <td class="topmenu"><p onclick="displayResult('../source/text/shared/guide/main.xhp?Language=en-US&System=WIN&UseDB=no&DbPAR=shared','shared')">Guide</p></td> </tr> </table> </div> <div id="BottomLeft"> </div> <script> -$("#BottomLeft").load('/bookmark_shared.html'); +if (window.location.href.indexOf('?') && getParameterByName('page')) { + var module = getParameterByName("DbPAR"); + var language = getParameterByName("Language"); + var system = getParameterByName("System"); + var usedb = getParameterByName("UseDB"); + displayResult('../source/text/' + getParameterByName('page') + '&DbPAR='+module+'&Language='+language+'&System='+system+'&UseDB='+usedb); +} else { + displayResult('../source/text/shared/main0108.xhp?Language=en-US&System=WIN&UseDB=no&DbPAR=shared','shared'); +} </script> </body> </html> |