X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/05901815616a29900729502d346b1eed8d9ae923..689dab7f9aab019f0419133043bf02efcf469c93:/src/wolnelektury/static/js/base.js diff --git a/src/wolnelektury/static/js/base.js b/src/wolnelektury/static/js/base.js index 8502d6272..7d311fce3 100644 --- a/src/wolnelektury/static/js/base.js +++ b/src/wolnelektury/static/js/base.js @@ -74,7 +74,13 @@ $("iframe", this).attr("src", $("iframe", this).attr('data-src')); }); - $(".media-eink .carousel").cycle({fx: "none"}); + $(".carousel").each(function() { + opts = {}; + if ($('html').hasClass('media-eink')) { + opts.fx = 'none' + } + $(this).cycle(opts); + }); (function() {