X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=assets%2Fcommon%2Fjs%2Fpicwall.js;fp=assets%2Fcommon%2Fjs%2Fpicwall.js;h=87a93fc3b5b0d263b34f65dc46ccaec338da27d6;hb=a33c5653655215d3a6496807f15a896d4b85f070;hp=0000000000000000000000000000000000000000;hpb=b3375c7f86f35fce723185bb76d3b5f9c4ff7a07;p=github%2Fshaarli%2FShaarli.git diff --git a/assets/common/js/picwall.js b/assets/common/js/picwall.js new file mode 100644 index 00000000..87a93fc3 --- /dev/null +++ b/assets/common/js/picwall.js @@ -0,0 +1,10 @@ +import Blazy from 'blazy'; + +(() => { + const picwall = document.getElementById('picwall_container'); + if (picwall != null) { + // Suppress ESLint error because that's how bLazy works + /* eslint-disable no-new */ + new Blazy(); + } +})();