From d238f7e0190c49c0f07c24f2f4ef9a50577c389b Mon Sep 17 00:00:00 2001 From: Topi Reinio Date: Tue, 7 Apr 2015 11:20:37 +0200 Subject: Doc: Update online documentation template MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This change brings the online template up to date with recent changes: - Update links in header and footer. - To improve page load time and reduce load on qt.io, do not load images from the main site. - Fix auto-scroll/highlight jQuery to work on anchors containing full stop ('.') characters - Responsiveness: Fix menu issues with narrow views - Fix styling of subscript/superscript HTML tags - Make script URIs protocol-agnostic Change-Id: I219e8ce6ff2e70f9374ad5e037ceda8f710a6a10 Reviewed-by: Topi Reiniƶ --- doc/global/template/scripts/main.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'doc/global/template/scripts/main.js') diff --git a/doc/global/template/scripts/main.js b/doc/global/template/scripts/main.js index 79de4ea5b2..823cebecf8 100644 --- a/doc/global/template/scripts/main.js +++ b/doc/global/template/scripts/main.js @@ -36,7 +36,7 @@ function load_sdk(s, id, src) { fjs.parentNode.insertBefore(js, fjs); } $(document).ready(function($) { - if (document.documentElement.clientWidth < 1220) { + if (document.documentElement.clientWidth < 1280) { oneQt.extraLinksToMain(); } @@ -76,7 +76,7 @@ $(document).ready(function($) { $(window).resize(function() { oneQt.stickySidebar(); oneQt.footerPosition(); - if (document.documentElement.clientWidth < 1220) { + if (document.documentElement.clientWidth < 1280) { oneQt.extraLinksToMain(); } else { oneQt.mainLinkstoExtra(); @@ -216,7 +216,7 @@ var oneQt = { var extramenuLinks = $('#menuextras').find('li'); var mainmenu = $('#mainmenu'); var count = 0; - if ($(extramenuLinks).length > 3) { + if ($(extramenuLinks).length > 2) { $(extramenuLinks).each(function() { if (count < 3) { var newLink = $(this); -- cgit v1.2.3