Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
c68be57e1This 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');
}
});