Advertisement
Guest User

Untitled

a guest
Jul 30th, 2015
192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1.  
  2. if (!Modernizr.svg) {
  3. $('img[src$=".svg"]').each(function() {
  4. //E.g replaces 'logo.svg' with 'logo.png'.
  5. $(this).attr('src', $(this).attr('src').replace('.svg', '.png'));
  6. });
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement