Skip to content

Instantly share code, notes, and snippets.

@vojtatranta
Created July 1, 2016 22:31
Show Gist options
  • Save vojtatranta/2ad0880cca1f28eff6535149f6db3c55 to your computer and use it in GitHub Desktop.
Save vojtatranta/2ad0880cca1f28eff6535149f6db3c55 to your computer and use it in GitHub Desktop.
var imageInDOM = document.getElementById('image-' + index);
if (imageInDOM) {
imageInDOM.querySelector('h3').textContent = timeLastUpdated;
} else {
var flickr = document.createElement('div');
var flickrH1 = document.createElement('h1');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment