revolucion

This commit is contained in:
mynah
2019-03-14 03:19:54 -06:00
parent fa0fbe9eb4
commit 26523cdca2
59 changed files with 156 additions and 169 deletions

18
public/home/podcast/podcast.js Executable file
View File

@@ -0,0 +1,18 @@
var sources;
d3.json( "/json/podcast/podcast.json",function(d){
d3.select("#audioframe").attr("src",d[0].source);
sources=d;
});
d3.selectAll("p.ctitle").on('click', function(){
var this_id=d3.select(this).attr("value");
sources.forEach(function (d){
if(d.id == this_id){
d3.select("#audioframe").attr("src",d.source);
window.scroll(0,
d3.select("#sframe").node().getBoundingClientRect().top -
d3.select("#stitle").node().getBoundingClientRect().top
);
}
});
});