Modified right menu styles.
This commit is contained in:
parent
0ee79ef41f
commit
0858581788
4 changed files with 8 additions and 2 deletions
BIN
webapp/src/main/webapp/themes/iph/images/arrow-down-small.png
Normal file
BIN
webapp/src/main/webapp/themes/iph/images/arrow-down-small.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 318 B |
BIN
webapp/src/main/webapp/themes/iph/images/small-dot.png
Normal file
BIN
webapp/src/main/webapp/themes/iph/images/small-dot.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 191 B |
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue