/*! * Thim Simple Slider 1.0 * Simple slider library * https://thimpress.com */ !function(a){a.fn.extend({thim_simple_slider:function(b){var c={item:3,itemActive:1,itemSelector:".item-event",align:"left",navigation:!0,pagination:!0,height:400,activeWidth:1170,itemWidth:800,prev_text:"Prev",next_text:"Next"},b=a.extend(c,b);return this.each(function(){function n(){h=!0,c.navigation&&(i.append('<div class="navigation"><div data-nav="prev" class="control-nav prev">'+c.prev_text+'</div><div data-nav="next" class="control-nav next">'+c.next_text+"</div></div>"),a(".control-nav",d).on("click",function(){var b=a(this).data("nav");"prev"==b?r():q()}))}function o(){if(c.pagination){for(var b='<div class="pagination">',e=0;e<f;e++)b+=e===g?'<div class="item active"></div>':'<div class="item"></div>';b+="</div>",i.append(b),a(".pagination .item",d).on("click",function(b){a(this).hasClass("active")&&b.preventDefault();var c=a(".pagination .item").index(this);a(".pagination .item",d).removeClass("active"),a(this).addClass("active"),g=c,p()})}}function p(){h&&(m.removeClass("active-item").css({width:"",opacity:""}),m.eq(g).addClass("active-item").css({width:k}).animate({opacity:.2},300,function(){m.eq(g).animate({opacity:1},500)}));var b=a(".simple-item:not(.active-item)",d);"left"==c.align?m.eq(g).css({width:k,left:""}):m.eq(g).css({width:k,right:""}),b.css("width",l);for(var e=k,f=g;f<b.length;f++){var i=b.eq(f);"left"==c.align?i.css("left",e):i.css("right",e),e+=l}if(g>0)for(var f=0;f<g;f++){var i=b.eq(f);"left"==c.align?i.css("left",e):i.css("right",e),e+=l}c.pagination&&a(".pagination .item",d).removeClass("active").eq(g).addClass("active")}function q(){g<f-1?g+=1:g=0,p()}function r(){g>0?g-=1:g=f-1,p()}function s(b){b.each(function(b,c){b==g?a(c).wrap('<div class="simple-item active-item"></div>'):a(c).wrap('<div class="simple-item"></div>')})}var c=b,d=a(this),e=a(c.itemSelector,d),f=e.length,g=c.itemActive-1,h=!1;d.wrapInner('<div class="thim-simple-wrapper '+c.align+'"><div class="wrapper"></div></div>');var i=a(".thim-simple-wrapper",d),k=(i.find(".wrapper"),c.activeWidth),l=c.itemWidth;s(e);var m=i.find(".simple-item");i.css("height",c.height),a(".simple-item",d).css("height",c.height),p(),n(),o()})}})}(jQuery);
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
admin-custom-script.js | File | 6.23 KB | 0644 |
|
custom-script-v2.js | File | 61.41 KB | 0644 |
|
custom-script-v2.min.js | File | 36.23 KB | 0644 |
|
isotope.pkgd.min.js | File | 34.61 KB | 0644 |
|
jquery.appear.js | File | 2.36 KB | 0644 |
|
jquery.appear.min.js | File | 858 B | 0644 |
|
jquery.countTo.min.js | File | 943 B | 0644 |
|
jquery.flexslider-min.js | File | 22.48 KB | 0644 |
|
jquery.magnific-popup.min.js | File | 19.74 KB | 0644 |
|
jquery.waypoints.min.js | File | 7.83 KB | 0644 |
|
main.min.js | File | 79.85 KB | 0644 |
|
mb-commingsoon.min.js | File | 5.37 KB | 0644 |
|
portfolio.js | File | 11.36 KB | 0644 |
|
portfolio.min.js | File | 5.08 KB | 0644 |
|
smooth_scroll.min.js | File | 7.25 KB | 0644 |
|
thim-content-slider.js | File | 6.62 KB | 0644 |
|
thim-course-filter-v2.js | File | 3.48 KB | 0644 |
|
thim-course-filter-v2.min.js | File | 2.06 KB | 0644 |
|
thim-course-filter.js | File | 8.04 KB | 0644 |
|
thim-course-filter.min.js | File | 4.21 KB | 0644 |
|
thim-scripts.js | File | 29.93 KB | 0644 |
|
thim-scripts.min.js | File | 18.1 KB | 0644 |
|
thim_simple_slider.js | File | 4.68 KB | 0644 |
|
thim_simple_slider.min.js | File | 2.2 KB | 0644 |
|