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/10 12:00:31 UTC

svn commit: r1658670 - /incubator/taverna/site/trunk/templates/default_scripts.html

Author: brenninc
Date: Tue Feb 10 11:00:31 2015
New Revision: 1658670

URL: http://svn.apache.org/r1658670
Log:
Added dropdown top level

Modified:
    incubator/taverna/site/trunk/templates/default_scripts.html

Modified: incubator/taverna/site/trunk/templates/default_scripts.html
URL: http://svn.apache.org/viewvc/incubator/taverna/site/trunk/templates/default_scripts.html?rev=1658670&r1=1658669&r2=1658670&view=diff
==============================================================================
--- incubator/taverna/site/trunk/templates/default_scripts.html (original)
+++ incubator/taverna/site/trunk/templates/default_scripts.html Tue Feb 10 11:00:31 2015
@@ -1,2 +1,21 @@
 <script src="/lib/jquery/jquery-1.11.1.min.js"></script>
 <script src="/lib/bootstrap/js/bootstrap.min.js"></script>
+
+<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>