3 ms·
If it is a gif, how does it make the initial frame (on load of image) equal to the frame for the current time?
by adityar 13y ago
If it is a gif, how does it make the initial frame (on load of image) equal to the frame for the current time?
- gelatocar 13y agoIt isn't a gif, he's got a bunch of images at 15 minute intervals. http://imgs.xkcd.com/comics/now/18h15m.png http://imgs.xkcd.com/comics/now/18h15m.png http://imgs.xkcd.com/comics/now/18h30m.png http://imgs.xkcd.com/comics/now/18h30m.png http://imgs.xkcd.com/comics/now/18h45m.png http://imgs.xkcd.com/comics/now/18h45m.png The server just loads the right one for the given time.
- AustinDizzy 13y agoIt's not a gif, he's just got ~96 images or so all of each hour in 15 minute intervals and then it loads the appropriate one for the appropriate time. I wrote up a small demo here(http://jsfiddle.net/5uG2u/2/show/ http://jsfiddle.net/5uG2u/2/show/) so you can change the time and see the various mapped layouts of the data.