Modified right menu styles.

This commit is contained in:
Svetlana Rastegina 2021-03-08 16:10:40 +01:00 committed by Georgy Litvinov
parent 0ee79ef41f
commit 0858581788
4 changed files with 8 additions and 2 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 318 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 191 B

View file

@ -22,13 +22,17 @@
}
function createTOCItem(docPart, tocElement){
var newTOCElement = document.createElement("div");
var newTOCElementName = document.createElement("div");
var anchor = docPart.getAttribute('id');
var docPartButton = docPart.previousElementSibling;
var itemName = docPartButton.textContent;
var link = document.createElement("a");
link.setAttribute("href", "javascript:goToDocumentPart(\"" + anchor + "\");" );
link.innerText = itemName;
newTOCElement.appendChild(link);
newTOCElement.appendChild(newTOCElementName);
newTOCElementName.appendChild(link);
newTOCElement.className = "tocElement";
newTOCElementName.className = "tocElementName";
tocElement.appendChild(newTOCElement);
return newTOCElement;
}

View file

@ -5,6 +5,8 @@
<button id="exportPdf"><img src="${urls.base}/themes/iph/images/exportPdf.svg"></button>
</div>
<#include "customsearchpanel.ftl" >
<div id="tocPlaceHolder"></div>
<div id="tocPlaceHolder">
<div id="tocName">Содержание</div>
</div>
</div>