Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
ASCIIgram
$('article div img').each(function(){scale = $(this).width()/this.naturalWidth;$(this).replaceWith($('<iframe src="'+$(this).attr('src')+'.html'+'" scrolling="no" style="width:'+100/scale+'%;height:'+100/scale+'%;position:absolute;left:0;top:0;transform: scale('+scale+');transform-origin:0 0">'));})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment