What I have is:
<div class="fixed"> <nav class="top-bar" data-topbar role="navigation"> <section class="top-bar-section"> <!-- Right Nav Section --> <ul class="right"> <li class="has-dropdown"> <a target='_blank' href="#">Theme</a> <ul class="dropdown" id="theme-dropdown"> <li><a target='_blank' href="#">Light</a></li> <li><a target='_blank' href="#">Dark</a></li> </ul> </li> </ul> </section> </nav> </div>
these are of course contained in the topbar
<nav>, etc and the dropdown on the topbar works great in basic HTML mode.
What I am struggling with is how do I make the 2
setTheme(themeName) when they are clicked?
I cannot seem to find any examples where someone wants to call js from a topbar rather than a URL.