Skip to content

Instantly share code, notes, and snippets.

@blivesta
Created January 28, 2017 13:18
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 blivesta/6b2f4b43eb5d71c0d762b9ca5dac8939 to your computer and use it in GitHub Desktop.
Save blivesta/6b2f4b43eb5d71c0d762b9ca5dac8939 to your computer and use it in GitHub Desktop.
const elements = document.querySelectorAll('[data-doorman]');
Array.prototype.forEach.call(elements, function (el) {
const doorman = new Doorman(el, { /* options */ });
doorman.start();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment