Skip to content

Instantly share code, notes, and snippets.

@lutsen
Created November 13, 2013 21:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lutsen/7456894 to your computer and use it in GitHub Desktop.
Save lutsen/7456894 to your computer and use it in GitHub Desktop.
A function to initiate a dynamically generated Bootstrap 3.0.2 carousel. The function adds an .active class to the first item, and adds carousel-indicators li elements for all carousel items. Handy if all carousel item code needs to be the same, or you don't know how many items your carousel will have.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment