function imgResize(a) {
a.classList.toggle('imgresized');
}
var z = document.querySelectorAll('.imgresize-wrapper');
for(x = 0; x < z.length; x++) {
z[x].addEventListener('click', imgResize(z[x]));
}
function imgResize(a) {
a.classList.toggle('imgresized');
}
var z = document.querySelectorAll('.imgresize-wrapper');
for(x = 0; x < z.length; x++) {
z[x].addEventListener('click', imgResize.bind(null, z[x])));
}