logo-mini
').appendTo($controlsWrapper); //Play pause button if (options.hasPlay){ var playBtn=$('
').addClass('tj-playbtn').appendTo($controlUI); self.addPlay(playBtn); } //Next & Prev buttons $controlUI.append($controlsWrapper.find('.ms-nav-prev')); //First one is prev and last next add anything in betwen(eg.counter) if (options.showCounter){ var counterMarkup='
'+ ''+(api.index()+1)+''+ '/'+ ''+api.count()+''+ '
'; var $counterMarkup=$(counterMarkup).appendTo($controlUI), $current=$counterMarkup.find('.counter-current'); $current.html(''+(api.index()+1)+''); } $controlUI.append($controlsWrapper.find('.ms-nav-next')); }, addPlay:function(playbtn){ playbtn.click(function(){ if(api.paused){ api.resume(); playbtn.addClass('btn-pause'); }else{ api.pause(); playbtn.removeClass('btn-pause'); } }); } } msSlider.init(api); } ); window.masterslider_instances = window.masterslider_instances || {}; window.masterslider_instances["1_d1b4"] = masterslider_d1b4; }); })(jQuery);