Skip to content

Instantly share code, notes, and snippets.

@haingdc
Created February 24, 2018 14:22
Show Gist options
  • Select an option

  • Save haingdc/18f90400f6d0e326d193e07d482c8f76 to your computer and use it in GitHub Desktop.

Select an option

Save haingdc/18f90400f6d0e326d193e07d482c8f76 to your computer and use it in GitHub Desktop.
A Gentle Introduction to Functional JavaScript: Part 1
var el1 = document.getElementById('main-carousel');
var slider1 = new Carousel(el1, 3000);
slider1.init();
var el2 = document.getElementById('news-carousel');
var slider2 = new Carousel(el2, 5000);
slider2.init();
var el3 = document.getElementById('events-carousel');
var slider3 = new Carousel(el3, 7000);
slider3.init();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment