Created
August 14, 2013 18:49
-
-
Save jmoe/6234215 to your computer and use it in GitHub Desktop.
download kickstarter
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
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