Código:
slider = function() { var e = $("#nav-arrows"), t = $("#nav-dots > span"), o = $("#slider"), a = o.slitslider({ speed : 800, autoplay : true, interval : 7000, onBeforeChange: function(e, o) { t.removeClass("nav-dot-current"), t.eq(o).addClass("nav-dot-current") } }), n = function() { i() }, i = function() { e.children(":last").on("click", function() { return a.next(), !1 }), e.children(":first").on("click", function() { return a.previous(), !1 }), t.each(function(e) { $(this).on("click", function() { var o = $(this); return a.isActive() || (t.removeClass("nav-dot-current"), o.addClass("nav-dot-current")), a.jump(e + 1), !1 }) }), o.show() }, r = function() { $(window).trigger("debouncedresize.slitslider").trigger("resize") }; return { init: n, refresh: r } }()