Checkout style
[wolnelektury.git] / src / wolnelektury / static / js / base.js
index 377a969..8f26db4 100644 (file)
         });
 
         $('.hoverclick').click(function() {$(this).closest('.hoverget').toggleClass('hover');});
+        $('.hoverclick').keydown(function(event){ 
+            var keyCode = (event.keyCode ? event.keyCode : event.which);   
+            if (keyCode == 13) {
+                $(this).trigger('click');
+            }
+        });
 
         $(function(){
             $("#search").search();
             $(this).addClass("active");
         });
 
+
+        $("#skiplink-search").click(function() {
+            console.log('skiplink search');
+            $("#search").focus();
+            return false;
+        });
+        
     });
 })(jQuery);