1

I am using MadCap Flare software to create HTML output of my template document. I am using some JQuery code to be inserted in the output HTML. The code is here:

<Script>$('<link>').appendTo($('head')).attr({
    type: 'text/css', 
    rel: 'stylesheet',
    href: 'Content/Resources/Stylesheets/Tripane.css'
});</Script>

Unfortunately, after including this script in the output, the HTML somehow looses the default Toolbar in the Results pane of my HTML site. enter image description here Normally it should look like this: enter image description here and the code in Inspector tab should be like this. enter image description here However, this line is missing in my output!

In the Console tab I am not receiving anything special.

Do You have any idea why the toolbar is missing? Where am I supposed to search for this bug.

John Snow
  • 107
  • 1
  • 10
  • Have the elements in question actually disappeared from the DOM, or are they maybe just hidden by newly applied CSS now? – CBroe Sep 07 '21 at 09:14
  • In my opinion they rather dissapeared from DOM as the CSS applied contained no `class="buttons toolbar-buttons popup-container"` which dissappeared in a browser – John Snow Sep 07 '21 at 09:19

1 Answers1

0

Try this:

$('<link>')
.appendTo($('head'))
.attr({type:'text/css',rel:'stylesheet'})
.attr('href', 'Content/Resources/Stylesheets/Tripane.css');
Bernhard Beatus
  • 1,191
  • 1
  • 5
  • 6