Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function RETINAAAA()
- {
- var images = document.getElementsByClassName("retina");
- for(var i = 0; i<images.length; i++)
- {
- images[i].width = images[i].width;
- images[i].height = images[i].height;
- images[i].src = images[i].src.replace(/\.[a-z]+$/,'@2x$&');
- }
- }
- document.onload = RETINAAAA;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement