X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/8e2e65fd5f86516e7d15df0c1106a0b861bfb011..a049fc7cdcc2615fdab51d17bbc10c9cb07d3952:/wolnelektury/static/js/catalogue.js?ds=sidebyside diff --git a/wolnelektury/static/js/catalogue.js b/wolnelektury/static/js/catalogue.js index b495ee535..1eede5c90 100644 --- a/wolnelektury/static/js/catalogue.js +++ b/wolnelektury/static/js/catalogue.js @@ -446,5 +446,34 @@ function serverTime() { $('#download-shelf-menu').slideUp('fast'); return false; }); + + $('.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)