Skip to content

Instantly share code, notes, and snippets.

@jmoe
Created August 14, 2013 18:49
Show Gist options
  • Save jmoe/6234215 to your computer and use it in GitHub Desktop.
Save jmoe/6234215 to your computer and use it in GitHub Desktop.
download kickstarter
var getVidDetails = document.querySelector('#video-section>.video-player');
if(getVidDetails){
var getShareUl = document.querySelector('#about ul');
var downButtLi = document.createElement('li');
downButtLi.setAttribute('style','margin:6px -9px !important;width: 80px;');
var downButtA = document.createElement('a');
downButtA.innerHTML = 'Download';
downButtA.href = getVidDetails.getAttribute('data-video');
downButtA.setAttribute('class','button-action');
downButtLi.appendChild(downButtA);
getShareUl.appendChild(downButtLi);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment