custom toc javascript index.html
Hi everyone,
I'm trying to customize the index.hmtl for the toc. I found a code in the community an added some informations. It looks like this:
window.addEventListener( 'moduleReadyEvent', function ( e )
{
var topIcon = document.getElementsByClassName( 'tocBookmarkHeadingStyle' )[ 0 ].style.visibility = 'hidden';
var bmIcons = document.getElementsByClassName( 'tocBookmark' );
var bmEx = document.getElementsByClassName( 'tocExpander' );
var bmText = document.getElementsByClassName( 'tocText' );
for ( var i = 0; i < bmIcons.length; i++ )
{
bmIcons[ i ].style.visibility = 'visible';
bmIcons[ i ].style.right = 2 + 'px';
bmEx[ i ].style.right = 1 + 'px';
bmEx[ i ].style.top = 6 + 'px';
bmEx[ i ].style.width = 26 + 'px';
bmEx[ i ].style.height = 26 + 'px';
bmEx[ i ].style.left = 1 + 'px';
bmText[ i ].style.right = 26 + 'px';
bmText[ i ].style.left = 47 + 'px';
}
});
The toc looks like this now:

I don't understand, why the first topic is different from the others. the class is the same. So it should react the same way, correct? Do you have any ideas/ suggestions how to fix it so that all topics are aligned left?
Thanks
Maria
