Template:NavBar

From 2014.igem.org

(Difference between revisions)
m
m
Line 135: Line 135:
</nav>
</nav>
</header>
</header>
-
 
-
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
 
-
<script>
 
-
$(document).ready(function() {
 
-
if (!!('ontouchstart' in window)){
 
-
$('.dropToggle').click(function(e) {
 
-
$('.navDropMenu', this).stop(true,true).slideDown();
 
-
$('.dropToggle').toggleClass('active');
 
-
e.stopPropagation();
 
-
});
 
-
$(document).click(function() {
 
-
if ($('.navDropMenu').is(':visible')) {
 
-
$('.navDropMenu', this).stop(true,true).slideUp();
 
-
$('.dropToggle').removeClass('active');
 
-
}
 
-
});
 
-
}
 
-
});
 
-
</script>
 
<html>
<html>

Revision as of 15:26, 31 January 2014