I made a new implementation of the XML/Java toggle (and added a third choice for having both available). Changes to make a dynamic ToC work with content selection toggles Various asciidoc and JavaScript changes to make the dynamic ToC (tocbot) work with the content toggle (XML or Java in this case but also more options in other projects).
15 lines
673 B
Plaintext
15 lines
673 B
Plaintext
ifdef::backend-html5[]
|
|
+++
|
|
<div>
|
|
<script type="text/javascript" src="jsfiles/jquery-3.2.1.min.js"></script>
|
|
<script type="text/javascript" src="jsfiles/js.cookie.js"></script>
|
|
<script type="text/javascript" src="jsfiles/DocumentToggle.js"></script>
|
|
<div class="docToggle-button">
|
|
<input id="xmlButton" type="radio" name="docToggle" value="XML"><label for="xmlButton">XML</label>
|
|
<input id="javaButton" type="radio" name="docToggle" value="Java" checked><label for="javaButton">Java</label>
|
|
<!-- <input id="bothButton" type="radio" name="docToggle" value="Both" checked><label for="bothButton">Both</label> -->
|
|
</div>
|
|
</div>
|
|
+++
|
|
endif::backend-html5[]
|