fork download
  1. function wpo_play_owl_carousel( owl ){
  2. var $ = jQuery;
  3. var config = {
  4. navigation : true, // Show next and prev buttons
  5. slideSpeed : 300,
  6. paginationSpeed : 400,
  7. pagination : $(owl).data( 'pagination' )
  8. };
  9.  
  10. if( $(owl).data('show') == 1 ){
  11. config.singleItem = true;
  12. }else {
  13. config.items = $(owl).data( 'show' );
  14. }
  15. $(owl).owlCarousel( config );
  16. $('.left',$(owl).parent()).click(function(){
  17. owl.trigger('prev.owl.carousel');
  18. return false;
  19. });
  20. $('.right',$(owl).parent()).click(function(){
  21. owl.trigger('next.owl.carousel');
  22. return false;
  23. });
  24. }
Success #stdin #stdout 0.03s 16948KB
stdin
Standard input is empty
stdout
Standard output is empty