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)){
-
if ($('.navDropMenu').is(':visible')) {
+
$('.dropToggle', this).click(function() {  
-
$('.dropToggle').removeClass('active');
+
$('.navDropMenu', this).stop(true,true).slideDown();
-
}
+
});
-
else {
+
$(document).click(function() {  
-
$('.navDropMenu', this).stop(true,true).slideDown();
+
$('.navDropMenu').slideUp();
-
}
+
});
}
}
});
});
</script>
</script>
<html>
<html>

Revision as of 14:49, 31 January 2014