daily pastebin goal
3%
SHARE
TWEET

Untitled

a guest May 17th, 2018 96 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // Importiere das Modul aus der Lib.
  2. import Modal from '../lib/modal';
  3.  
  4. // Exportiere eine init function in der alles nötige für das Modul initialisiert wird.
  5. export default function init() {
  6.   return new Modal({
  7.     nodes: document.querySelectorAll('[data-modal]'),
  8.     overlay: document.querySelectorAll('[data-modal-overlay]')[0],
  9.     triggers: {
  10.       open: document.querySelectorAll('[data-modal-open]'),
  11.       close: document.querySelectorAll('[data-modal-close]'),
  12.     },
  13.   }).init();
  14. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top