X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/0ee9de179914aa395f4b7475b7b9b6229c42b760..40cd6c55a145d4a21fc4d0705a70c4ed825ddc89:/wolnelektury/static/js/catalogue.js?ds=inline

diff --git a/wolnelektury/static/js/catalogue.js b/wolnelektury/static/js/catalogue.js
index 076ae4eeb..1eede5c90 100644
--- a/wolnelektury/static/js/catalogue.js
+++ b/wolnelektury/static/js/catalogue.js
@@ -447,6 +447,33 @@ function serverTime() {
             return false;
         });
 
-        $('marquee').marquee()
+        $('.sponsors').cycle({timeout: 3000});
+
+        $('.widget-code').focus(
+            function(){
+                $(this).animate({rows: '11'}, 100, function(){
+                    this.select();
+                    $(this).click(function(){
+                        this.select();
+                    });
+                })
+                
+            } 
+        ).blur(
+            function(){
+                $(this).animate({rows: '1'}, 300, function(){
+                    $(this).unbind('click');
+                })
+            } 
+        );
+        
+        $('.book-list-index').click(function(){
+            $('.book-list-show-index').hide('slow');
+            if($(this).parent().next('ul:not(:hidden)').length == 0){
+		$(this).parent().next('ul').toggle('slow');
+	    }
+            return false;
+        });
+
     });
 })(jQuery)