Skip to content

Instantly share code, notes, and snippets.

@sv99
Last active August 29, 2015 14:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sv99/df38cfa45a5ae48d6f79 to your computer and use it in GitHub Desktop.
Save sv99/df38cfa45a5ae48d6f79 to your computer and use it in GitHub Desktop.
update image
updateFrame = (id) ->
frame_img = $(id)
src = frame_img.attr('src')
if src
console.log src
src = src.split('?', 1)
src += '?ts=' + (new Date).getTime()
frame_img.attr 'src', src
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment