Template:NavBar

From 2014.igem.org

(Difference between revisions)
m
m
Line 140: Line 140:
$(document).ready(function() {
$(document).ready(function() {
if (!!('ontouchstart' in window)){
if (!!('ontouchstart' in window)){
-
$('.dropToggle', this).click(function(event) {  
+
if ($('.navDropMenu').is(':visible')) {
-
$('.navDropMenu', this).stop(true,true).slideDown();
+
$('.dropToggle').removeClass('active');
-
e.stopPropogation();
+
}
-
});
+
else {
-
$(document).click(function() {  
+
$('.navDropMenu', this).stop(true,true).slideDown();
-
$('.navDropMenu').slideUp();
+
}
-
});
+
}
}
});
});
</script>
</script>
<html>
<html>

Revision as of 14:48, 31 January 2014