diff options
author | Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org> | 2017-12-28 16:05:43 +0200 |
---|---|---|
committer | Olivier Hallot <olivier.hallot@libreoffice.org> | 2017-12-29 12:48:55 +0100 |
commit | 50b850013374e0f711b5cded92739934d758bf1f (patch) | |
tree | 6526a7b71ec55ba6d7a736e00f6781fc31055bb1 /help3xsl/help.js | |
parent | dfdc1f55f63d4497e6bd5fa5793ba8b57d6a78fc (diff) |
Lots of changes and tweaks.
Header and footer now span 100% width even on desktop.
Font sizes were increased and content area made narrower.
We now have two separate language menus so the menu is
always visible on mobile.
Google search moved out of the accordion panel.
Accordion panel colours made darker.
On desktop, expanded accordion panels overlap content.
Change-Id: I976a67b1ca0cb2d21f0569da8d1fefd2b589d7d3
Reviewed-on: https://gerrit.libreoffice.org/47139
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
Tested-by: Olivier Hallot <olivier.hallot@libreoffice.org>
Diffstat (limited to 'help3xsl/help.js')
-rw-r--r-- | help3xsl/help.js | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/help3xsl/help.js b/help3xsl/help.js index 09ebb34b85..552022070d 100644 --- a/help3xsl/help.js +++ b/help3xsl/help.js @@ -74,19 +74,19 @@ 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, " ")); } @@ -124,14 +124,8 @@ $(document).ready(function() { $('input[name="accordion-menu"]').on('change', function(){ $('input[name="accordion-menu"]').not(this).prop('checked', false); }); - //focus Google Search input clicking on Find panel - $('#accordion-2').on('change', function(){ - if($(this).is(':checked')){ - $('#gsc-i-id1').focus(); - } - }); //focus index search input clicking on Index panel - $('#accordion-3').on('change', function(){ + $('#accordion-2').on('change', function(){ if($(this).is(':checked')){ $('#search-bar').focus(); //prevent all results to be shown |