SHARE
TWEET

Untitled

a guest Jun 14th, 2012 1,177 Never
  1. function RETINAAAA()
  2. {
  3. var images = document.getElementsByClassName("retina");
  4. for(var i = 0; i<images.length; i++)
  5. {
  6.         images[i].width = images[i].width;
  7.         images[i].height = images[i].height;
  8.         images[i].src = images[i].src.replace(/\.[a-z]+$/,'@2x$&');
  9. }
  10. }
  11. document.onload = RETINAAAA;
RAW Paste Data
Top