What is the easiest way to make a slide with BootStrap?

0

I was following the following tutorial to make a slide:

link

The design I was able to deploy on my page, since it is practically just copy and paste, I followed the example with legend.

So I took the time to implement Javascript to get the slide , the range and touch events in the icons ... Could anyone give me an example of JavaScript? I'm not good at this language, I know I'm asking for too much, but it's because I've tried a lot of ways, tried with another type of slide I found and nothing ... I just need the functional JavaScript following the link example.

    
asked by anonymous 30.10.2015 / 19:08

1 answer

0

Maybe this script will serve as a starter:

$(function () {
    $('#homeCarousel').carousel({
        interval:2000,
        pause: "false"
    });
    $('#playButton').click(function () {
        $('#homeCarousel').carousel('cycle');
        alert('clicou no play');
    });
    $('#pauseButton').click(function () {
        $('#homeCarousel').carousel('pause');
        alert('clicou no pause');
    });
});
    
30.10.2015 / 19:55