|
|
@ -69,10 +69,10 @@ d3.json("/static/js/group1.json", function(error, json) { |
|
|
|
console.log('vid') |
|
|
|
if (i.url) { |
|
|
|
divVideo.transition().duration(100); |
|
|
|
divVideo.html("<div class='draggable' id='showvideo'><span onclick=closevideo() class='topleft'> × </span><iframe id='video" + i.id + "' width='300' height='150' src='" + i.url + "' frameborder='0' allow='accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture' allowfullscreen></iframe></div>"); |
|
|
|
divVideo.html("<div id='showvideo'><span onclick=closevideo() class='topleft'> × </span><iframe id='video" + i.id + "' width='300' height='150' src='" + i.url + "' frameborder='0' allow='accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture' allowfullscreen></iframe></div>"); |
|
|
|
}; |
|
|
|
divBio.transition().duration(100); |
|
|
|
divBio.html("<div class='draggable' id='showbio'><span onclick=closebio() class='topleft'> × </span><div id='bio" + i.id + "'>" + i.bio + "</div>"); |
|
|
|
divBio.html("<div id='showbio'><span onclick=closebio() class='topleft'> × </span><div id='bio" + i.id + "'>" + i.bio + "</div>"); |
|
|
|
popup(i.id, i.time); |
|
|
|
}) |
|
|
|
.on("dblclick", connectedNodes) |
|
|
@ -80,6 +80,7 @@ d3.json("/static/js/group1.json", function(error, json) { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
force.on("tick", function() { |
|
|
|
link.attr("x1", function(d) { |
|
|
|
return d.source.x; |
|
|
@ -101,6 +102,7 @@ d3.json("/static/js/group1.json", function(error, json) { |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// highlight NodeLists//Toggle stores whether the highlighting is on
|
|
|
|
var toggle = 0; |
|
|
|
//Create an array logging what is connected to what
|
|
|
|