From 383f9c4105ba03f86aa722b4881e7f690e017baa Mon Sep 17 00:00:00 2001 From: Olivier Hallot Date: Thu, 10 Nov 2016 19:27:26 -0200 Subject: Cleanups and debug info for online help Add display of help page filename on top right Normalize media files (part) Change-Id: Ib6123efde1113adeb1470565a036e605a9d82b7e Reviewed-on: https://gerrit.libreoffice.org/30765 Reviewed-by: Jan Holesovsky Reviewed-by: Olivier Hallot Tested-by: Olivier Hallot --- source/default.css | 28 ++++++++++++------------ source/help.js | 3 +++ source/index.html | 4 ++-- source/online_transform.xsl | 53 +++++++++------------------------------------ 4 files changed, 29 insertions(+), 59 deletions(-) diff --git a/source/default.css b/source/default.css index 8863bbe030..3df6e8aabf 100644 --- a/source/default.css +++ b/source/default.css @@ -33,7 +33,7 @@ body, p, h1, h2, h3, h4, h5, h6, .listitem, .listitemintable, .tablecontent, .ta pre, .code, .codeintable, .example, .exampleintable, .literal, .literalintable, .path, .pathintable { font-family: "Cumberland AMT",Cumberland,"Courier New","Nimbus Mono L","Bitstream Vera Sans Mono",Courier,"Lucida Sans Typewriter","Lucida Typewriter",Monaco,Monospaced; margin-top: 1pt; margin-bottom: 1pt;} -.acronym +.acronym { font-weight: bold; } .related @@ -69,7 +69,7 @@ h4, h5, h6 .relatedtopics { font-weight: normal; } -.relatedbody +.relatedbody { margin-top: 2px; margin-bottom: 2px; margin-left: 5px; } .howtoget @@ -78,13 +78,13 @@ h4, h5, h6 .howtogetbody { background:#EEEEEE; margin: 0px;} -.wide +.wide { width: 100%; } .topalign { vertical-align: top; border: 1px;} -.bug +.bug { color: red; border: 1px solid red;} .debug @@ -94,7 +94,7 @@ h4, h5, h6 .identifier, .unknown { color: green;} -.keyword +.keyword { color: blue;} .comment @@ -102,7 +102,7 @@ h4, h5, h6 .number, .string { color: red;} - + .operator, .parameter { color: black;} @@ -118,7 +118,7 @@ h4, h5, h6 .topmenu{ color: green; background-color: white; - font-size:16pt; + font-size:24pt; font-weight:bold; } .indexlink{font-size: 10pt; margin-top: 2px; margin-bottom: 2px;} @@ -126,8 +126,8 @@ h4, h5, h6 #DisplayArea{ position: fixed; bottom: 5px; -right: 5px; -overflow:auto; +right: 5px; +overflow:auto; width: 70%; height: 90%; } @@ -135,8 +135,8 @@ height: 90%; #BottomLeft { position: fixed; bottom: 5px; -left: 5px; -overflow:auto; +left: 5px; +overflow:auto; width: 29%; height: 90%; } @@ -164,9 +164,9 @@ left:25%; background-color: green; font-family: Arial; font-weight: bold; -font-size: 24pt; -border: 1px solid black; -padding-bottom: 6px; +font-size: 24pt; +border: 1px solid black; +padding-bottom: 6px; margin-bottom: 6px; } .embedded { diff --git a/source/help.js b/source/help.js index 03b7e6fec5..7cc7157546 100644 --- a/source/help.js +++ b/source/help.js @@ -66,6 +66,7 @@ function displayResult(file, moduleName, language, system) var usedb = urlVars["UseDB"]; document.getElementById("DisplayArea").innerHTML= null; document.getElementById("BottomLeft").innerHTML= null; + document.getElementById("TopRight").innerHTML= null; if (window.ActiveXObject || xhttp.responseType == "msxml-document") { // code for IE @@ -86,6 +87,7 @@ function displayResult(file, moduleName, language, system) var xml = loadXMLDoc($(this).attr('href'), 1); var resultDocument = xsltProcessor.transformToFragment(xml, document); $("#DisplayArea").html($(resultDocument).find('#DisplayArea').html()); + $("#TopRight").html('

Contents displayed is: '+$(this).attr('href')+'

'); return false; }); @@ -94,6 +96,7 @@ function displayResult(file, moduleName, language, system) $("#DisplayArea").html($(resultDocument).find('#DisplayArea').html()); // Handle bookmar panel $("#BottomLeft").load('bookmark_'+moduleName+'.html'); + $("#TopRight").html('

Contents displayed is: '+$(this).attr('href')+'

'); } } diff --git a/source/index.html b/source/index.html index 90b5726f3c..0ed44edc1d 100644 --- a/source/index.html +++ b/source/index.html @@ -31,8 +31,8 @@ -
-
+
+