X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/65c55a07a1ed0605f8059809281ca69320363964..f670db2a0f9a08e834e89a3f0b76208b9be6c795:/wolnelektury/static/js/catalogue.js?ds=sidebyside diff --git a/wolnelektury/static/js/catalogue.js b/wolnelektury/static/js/catalogue.js index 88d4b0761..31bad6eac 100644 --- a/wolnelektury/static/js/catalogue.js +++ b/wolnelektury/static/js/catalogue.js @@ -6,46 +6,46 @@ var LOCALE_TEXTS = { "LOADING": "Ładowanie" }, "de": { - "DELETE_SHELF": "Translate me!", - "HIDE_DESCRIPTION": "Translate me!", - "EXPAND_DESCRIPTION": "Translate me!", - "LOADING": "Translate me!" + "DELETE_SHELF": "Möchtest du wirklich dieses Bücherregal entfernen?", + "HIDE_DESCRIPTION": "Beschreibung zuklappen", + "EXPAND_DESCRIPTION": "Beschreibung aufklappen", + "LOADING": "Herunterladen" }, "fr": { - "DELETE_SHELF": "Translate me!", - "HIDE_DESCRIPTION": "Translate me!", - "EXPAND_DESCRIPTION": "Translate me!", - "LOADING": "Translate me!" + "DELETE_SHELF": "Voulez-vous supprimer l'étagère définitivement?", + "HIDE_DESCRIPTION": "Montrer la description", + "EXPAND_DESCRIPTION": "Cacher la description", + "LOADING": "Chargement" }, "en": { - "DELETE_SHELF": "Translate me!", - "HIDE_DESCRIPTION": "Translate me!", - "EXPAND_DESCRIPTION": "Translate me!", - "LOADING": "Translate me!" + "DELETE_SHELF": "Are you sure you want to delete this shelf?", + "HIDE_DESCRIPTION": "Hide", + "EXPAND_DESCRIPTION": "Expand", + "LOADING": "Loading" }, "ru": { - "DELETE_SHELF": "Translate me!", - "HIDE_DESCRIPTION": "Translate me!", - "EXPAND_DESCRIPTION": "Translate me!", - "LOADING": "Translate me!" + "DELETE_SHELF": "Уверены ли вы том, чтобы удалить полку?", + "HIDE_DESCRIPTION": "Свернуть описание", + "EXPAND_DESCRIPTION": "Раскрыть описание", + "LOADING": "Загрузка" }, "es": { - "DELETE_SHELF": "Translate me!", - "HIDE_DESCRIPTION": "Translate me!", - "EXPAND_DESCRIPTION": "Translate me!", - "LOADING": "Translate me!" + "DELETE_SHELF": "¿Estás seguro que quieres borrar este estante?", + "HIDE_DESCRIPTION": "Esconder la descripción", + "EXPAND_DESCRIPTION": "Ampliar la descripción", + "LOADING": "Cargando" }, "lt":{ - "DELETE_SHELF": "Translate me!", - "HIDE_DESCRIPTION": "Translate me!", - "EXPAND_DESCRIPTION": "Translate me!", - "LOADING": "Translate me!" + "DELETE_SHELF": "Ar tikrai nori pašalinti lentną?", + "HIDE_DESCRIPTION": "Suvyniok aprašymą ", + "EXPAND_DESCRIPTION": "Išplėsk aprašymą", + "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,21 @@ 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); + }); + }); })(jQuery)