Last active
January 17, 2017 02:14
-
-
Save kirillrocks/61746787863167f1f4f2874b977a2cc2 to your computer and use it in GitHub Desktop.
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 i = 0; // MOVED IT HERE | |
var runs = links.length-1; // MOVED IT HERE | |
// javascript works from top to bottom | |
// Append HTML Player | |
$.each(links, function(n) { | |
// on play status | |
getDuration(n); | |
}); | |
appendAudio(0); | |
durationLength(); | |
} | |
function appendAudio(n) { | |
console.log(i,": Horse run. Out ouf ",runs); | |
if(i != runs) { | |
$("#htmlplayground").append("<audio id=\"audiotrack" + n +"\" src=\""+ links[n] +"\" controls></audio>"); | |
i++; | |
appendAudio(i); | |
} else { | |
console.log(i,": Horse run complete.") | |
// Clean up HTML after function has done it's job | |
// $("#htmlplayground").html(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
That is the html code it parses.