common.js

//Каруселька //Документация: http://owlgraphic.com/owlcarousel/ var owl = $(".carousel"); owl.owlCarousel({ items : 4 }); owl.on("mousewheel", ".owl-wrapper", function (e) { if (e.deltaY > 0) { owl.trigger("owl.prev"); } else { owl.trigger("owl.next"); } e.preventDefault(); }); $(".next_button").click(function(){ owl.trigger("owl.next"); }); $(".prev_button").click(function(){ owl.trigger("owl.prev"); });
owl-carousel

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.