X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/f21b763e099e749a50c577d978c7a88087d79aa2..057604ab62f70f42fe0392ee32036be81ab52d9e:/wolnelektury/static/js/catalogue.js?ds=inline diff --git a/wolnelektury/static/js/catalogue.js b/wolnelektury/static/js/catalogue.js index 9a353993f..1d90e1084 100644 --- a/wolnelektury/static/js/catalogue.js +++ b/wolnelektury/static/js/catalogue.js @@ -42,10 +42,10 @@ var LOCALE_TEXTS = { "LOADING": "Krovimas" }, "uk":{ - "DELETE_SHELF": "Translate me!", - "HIDE_DESCRIPTION": "Translate me!", - "EXPAND_DESCRIPTION": "Translate me!", - "LOADING": "Translate me!" + "DELETE_SHELF": "Ви впевнені, що хочете видалити полицю?", + "HIDE_DESCRIPTION": "Сховати опис", + "EXPAND_DESCRIPTION": "Показати опис", + "LOADING": "Завантажується" } } var BANNER_TEXTS = [ @@ -446,5 +446,31 @@ function serverTime() { $('#download-shelf-menu').slideUp('fast'); 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); + }); + + $('.widget-code').focus( + function(){ + $(this).animate({rows: '11'}, 100) + } + ).blur( + function(){ + $(this).animate({rows: '1'}, 300) + } + ); + }); })(jQuery)