Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
8a12d1fa7This file is pinned to the selected release. Download the original to open it in your design tool.
// Enable zoom on images larger than 300px
document.querySelectorAll('.content img').forEach(function (img) {
var width = img.getAttribute('width');
if (!width || width >= 300) {
img.setAttribute('data-action', 'zoom');
}
});