Thread:LionHeartKIng/@comment-1426382-20180806194837

After this, this will likely be the last time I'll bother you with this. I'm wondering if you'd be able to add more JavaScript code to the JavaScript source. I'm trying out a template that would let the user navigate through characters' information like the character template; but it's kinda wonky.

I'm wondering if you could please copy and paste the following code for me:

$( '.infobox-container2' ).each( function { var infoboxContainer2 = $( this ); var startInfobox = $( '.infobox' + infoboxContainer2.attr( 'data-start-infobox' ) ); var maxHeight = 0; infoboxContainer2.children( '.infobox' ).each( function { if ( maxHeight < $( this ).outerHeight ) { maxHeight = $( this ).outerHeight; } $( this ).hide.css( "height", "100%" ); } ); infoboxContainer2.css( "height", maxHeight ); startInfobox.show; } ); $( '.infobox-tab' ).click( function { var infoboxContainer2 = $( this ).closest( '.infobox-container2' ); var infoboxToShow = infoboxContainer2.children( '.infobox' + $( this ).attr( 'data-target' ) ); infoboxContainer2.children( '.infobox' ).hide.css( "height", "100%" ); infoboxToShow.show; } );

Also, be sure it's submitted to Wikia staff. Please, and thank you! 