You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@taverna.apache.org by br...@apache.org on 2015/02/09 11:38:53 UTC
svn commit: r1658352 -
/incubator/taverna/site/trunk/templates/temp_scripts.html
Author: brenninc
Date: Mon Feb 9 10:38:53 2015
New Revision: 1658352
URL: http://svn.apache.org/r1658352
Log:
Test for nav bar clickable try 2
Modified:
incubator/taverna/site/trunk/templates/temp_scripts.html
Modified: incubator/taverna/site/trunk/templates/temp_scripts.html
URL: http://svn.apache.org/viewvc/incubator/taverna/site/trunk/templates/temp_scripts.html?rev=1658352&r1=1658351&r2=1658352&view=diff
==============================================================================
--- incubator/taverna/site/trunk/templates/temp_scripts.html (original)
+++ incubator/taverna/site/trunk/templates/temp_scripts.html Mon Feb 9 10:38:53 2015
@@ -1,11 +1,21 @@
<script src="/lib/jquery/jquery-1.11.1.min.js"></script>
<script src="/lib/bootstrap/js/bootstrap.min.js"></script>
-<style type='text/css'>
- .dropdown:hover .dropdown-menu {
- display: block;
- }
- .dropdown-menu {
- margin-top: 0px;
- }
-</style>
+<script>
+ jQuery(function($) {
+ if($(window).width()>769){
+ $('.navbar .dropdown').hover(function() {
+ $(this).find('.dropdown-menu').first().stop(true, true).delay(250).slideDown();
+
+ }, function() {
+ $(this).find('.dropdown-menu').first().stop(true, true).delay(100).slideUp();
+
+ });
+
+ $('.navbar .dropdown > a').click(function(){
+ location.href = this.href;
+ });
+
+ }
+ });
+</script>