Guest User

Untitled

a guest
Dec 13th, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. $(document).ready(function() {
  2. $(".carousel").swiperight(function() {
  3. $(this).carousel('prev');
  4. });
  5. $(".carousel").swipeleft(function() {
  6. $(this).carousel('next');
  7. });
  8. });
  9.  
  10. $(function(){
  11. $( ".news-slide-content-img" ).on( "swipeleft", swipeleftHandler );
  12. $( ".news-slide-content-img" ).on( "swiperight", swiperightHandler );
  13. function swipeleftHandler( ){
  14. plusSlides(1).css('display', 'block');
  15. }
  16. function swiperightHandler( ){
  17. plusSlides(-1).css('display', 'none');
  18. }
  19. });
Add Comment
Please, Sign In to add comment