JSFiddle - React, Tailwind, and code Playground
by Vladimir
CSS
div {
width:100%;
}
img {
width:100%;
}
JavaScript
var img = prompt('Image path').split('-');
var resolutions = ['1600x1200', '1024x786', '2560x1920'];
var html = '';
for(var i=0, iMax=resolutions.length; i<iMax; i++) {
html += '<div>'+resolutions[i]+'<br /><img src="' + img[0] + '-' + img[1] + '-' + resolutions[i] + '.jpg" /></div>';
}
$('body').append(html);