Added Slides Dropdown to select dark or light

This commit is contained in:
Walker Waylon Scott 2017-07-26 08:07:05 -05:00
parent d294af0fd2
commit 22e39949bc

View file

@ -34,8 +34,6 @@
('/enthusiast', 'enthusiast', 'Enthusiast'), ('/enthusiast', 'enthusiast', 'Enthusiast'),
('/Exploritory', 'exploritory', 'Exploritory'), ('/Exploritory', 'exploritory', 'Exploritory'),
('/api/doc/#/pyDataVizDay', 'api', 'api'), ('/api/doc/#/pyDataVizDay', 'api', 'api'),
('/slides', 'slides', 'Slides'),
('/slides_light', 'slides_light', 'light slides'),
] -%} ] -%}
{% set active_page = active_page|default('index') -%} {% set active_page = active_page|default('index') -%}
@ -53,9 +51,20 @@
<a href="{{ href|e }}">{{ caption|e }}</a></li> <a href="{{ href|e }}">{{ caption|e }}</a></li>
{% endfor %} {% endfor %}
<li class="dropdown">
<a href='/slides' class='active dropdown-toggle navbar-inverse' data-toggle="dropdown">Slides<b class="caret"></b></a>
<ul class='dropdown-menu'>
<li>
<a href='/slides'>dark</a>
</li>
<li>
<a href='/slides_light'>light</a>
</li>
</ul>
</li>
</ul> </ul>
</div> </div>
</div> </div>
</nav> </nav>
@ -87,7 +96,13 @@
</script> </script>
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a></noscript> <noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a></noscript>
<script>
$('ul.nav li.dropdown').hover(function() {
$(this).find('.dropdown-menu').stop(true, true).delay(100).fadeIn(200);
}, function() {
$(this).find('.dropdown-menu').stop(true, true).delay(100).fadeOut(200);
});
</script>
</html> </html>