Last active
August 29, 2015 14:16
-
-
Save sv99/df38cfa45a5ae48d6f79 to your computer and use it in GitHub Desktop.
update image
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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