13 lines
269 B
JavaScript
13 lines
269 B
JavaScript
|
// 'use strict';
|
||
|
|
||
|
const options = {
|
||
|
keyboard: true,
|
||
|
size: 'fullscreen'
|
||
|
};
|
||
|
|
||
|
document.querySelectorAll('.my-lightbox-toggle').forEach((el) => el.addEventListener('click', (e) => {
|
||
|
e.preventDefault();
|
||
|
const lightbox = new Lightbox(el, options);
|
||
|
lightbox.show();
|
||
|
}));
|