Design adjustments, new content and more
This commit is contained in:
7
assets/js/index.js
Executable file
7
assets/js/index.js
Executable file
@@ -0,0 +1,7 @@
|
||||
// Lightbox
|
||||
Array.from(document.querySelectorAll("[data-lightbox]")).forEach(element => {
|
||||
element.onclick = (e) => {
|
||||
e.preventDefault();
|
||||
basicLightbox.create(`<img src="${element.href}">`).show();
|
||||
};
|
||||
});
|
Reference in New Issue
Block a user