X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/05901815616a29900729502d346b1eed8d9ae923..7875aab03fcc043840567f873c9e38e4ee9f638c:/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() {