Manual menu, linking to id
Sometimes manually linking the menu is needed. Simplemenu can do that too.
Manually linking can be done through id
and data-name
.
These slides explain the use of id
.
Load the Simplemenu script and make a reference to it in the Reveal plugin options.
<script src="plugin/simplemenu/simplemenu.js"></script>
<script>
Reveal.initialize({
plugins: [ Simplemenu ]
});
<script>
Make anchors in your links to the ID's of your sections. Use the #/anchor
notation that Reveal uses.
<div class="menubar">
<ul class="menu">
<li>
<a href="#/firstmenuitem">First menu item</a>
</li>
</ul>
</div>
<div class="slides">
<section id="firstmenuitem">
//...
</section>
//...
</div>