X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/9f7eae15d3e7d9f2e6879325556059e2311eb5a5..6c0acafa4b7bdc0cf3d5efe05e69a4315a2a18df:/wolnelektury/static/js/catalogue.js?ds=inline diff --git a/wolnelektury/static/js/catalogue.js b/wolnelektury/static/js/catalogue.js index 4b09de8fd..1eede5c90 100644 --- a/wolnelektury/static/js/catalogue.js +++ b/wolnelektury/static/js/catalogue.js @@ -447,20 +447,7 @@ function serverTime() { return false; }); - $('marquee').marquee().mouseover(function () { - $(this).trigger('stop'); - }).mouseout(function () { - $(this).trigger('start'); - $(this).data('drag', false); - }).mousemove(function (event) { - if ($(this).data('drag') == true) { - this.scrollLeft = $(this).data('scrollX') + ($(this).data('x') - event.clientX); - } - }).mousedown(function (event) { - $(this).data('drag', true).data('x', event.clientX).data('scrollX', this.scrollLeft); - }).mouseup(function () { - $(this).data('drag', false); - }); + $('.sponsors').cycle({timeout: 3000}); $('.widget-code').focus( function(){ @@ -479,6 +466,14 @@ function serverTime() { }) } ); + + $('.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)