|
@ -34,10 +34,11 @@ var div = d3.select("body").append("div").style("opacity", 1); |
|
|
.attr("class", function(d){return "node group" + d.group}) |
|
|
.attr("class", function(d){return "node group" + d.group}) |
|
|
.attr("id", function(d){return d.id}) |
|
|
.attr("id", function(d){return d.id}) |
|
|
.on("click", function(i){ |
|
|
.on("click", function(i){ |
|
|
popup(i.id,i.time); |
|
|
|
|
|
// popup video
|
|
|
// popup video
|
|
|
div.transition().duration(100); |
|
|
div.transition().duration(100); |
|
|
div.html("<div id='show_video_bio'><span onclick='this.parentElement.style.display='none'' class='topleft'>×</span><iframe width='300' height='150' src='"+i.url+"' frameborder='0' allow='accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture' allowfullscreen></iframe><div id='bio"+i.id+"'>"+i.bio+"</div></div>") |
|
|
div.html("<div id='show_video_bio'><span onclick='this.parentElement.style.display='none'' class='topleft'>×</span><iframe width='300' height='150' src='"+i.url+"' frameborder='0' allow='accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture' allowfullscreen></iframe><div id='bio"+i.id+"'>"+i.bio+"</div></div>"); |
|
|
|
|
|
// rest pop up
|
|
|
|
|
|
popup(i.id,i.time); |
|
|
}) |
|
|
}) |
|
|
.on("dblclick",connectedNodes)// Added code
|
|
|
.on("dblclick",connectedNodes)// Added code
|
|
|
.call(force.drag); |
|
|
.call(force.drag); |
|
@ -163,9 +164,9 @@ function popup(name,time) { |
|
|
console.log("around") |
|
|
console.log("around") |
|
|
$("#thesis").fadeIn() |
|
|
$("#thesis").fadeIn() |
|
|
$("#bio"+name).fadeIn() |
|
|
$("#bio"+name).fadeIn() |
|
|
// var dada = document.getElementById("text"+name);
|
|
|
var dada = document.getElementById("text"+name); |
|
|
// dada.className += " active";
|
|
|
dada.className += " active"; |
|
|
// dada.scrollIntoView();
|
|
|
dada.scrollIntoView(); |
|
|
// var audio1 = document.getElementById("audioBG");
|
|
|
// var audio1 = document.getElementById("audioBG");
|
|
|
// audio1.currentTime = time;
|
|
|
// audio1.currentTime = time;
|
|
|
// audio1.play();
|
|
|
// audio1.play();
|
|
|