Skip to content

Instantly share code, notes, and snippets.


Created Sep 28, 2010
What would you like to do?
function highdpi_init() {
if(jQuery('.replace-2x').css('font-size') == "1px") {
var els = jQuery(".replace-2x").get();
for(var i in els) {
var src = els[i].src
src = src.replace(".png", "@2x.png");
els[i].src = src;
jQuery(document).ready(function() {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.