|
|
@ -80,7 +80,6 @@ d3.json("/static/js/group1.json", function(error, json) { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
force.on("tick", function() { |
|
|
|
link.attr("x1", function(d) { |
|
|
|
return d.source.x; |
|
|
@ -102,13 +101,6 @@ d3.json("/static/js/group1.json", function(error, json) { |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// under construction
|
|
|
|
// d3.select("body").on("click",function(i){
|
|
|
|
// stop(i.id);
|
|
|
|
// });
|
|
|
|
|
|
|
|
// highlight NodeLists//Toggle stores whether the highlighting is on
|
|
|
|
var toggle = 0; |
|
|
|
//Create an array logging what is connected to what
|
|
|
@ -146,77 +138,15 @@ d3.json("/static/js/group1.json", function(error, json) { |
|
|
|
//end highlight nodes
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// $(function (){
|
|
|
|
// $('.topleft').click(function(){
|
|
|
|
// $('iframe').attr('src', $('iframe').attr('src'));
|
|
|
|
// });
|
|
|
|
// });
|
|
|
|
|
|
|
|
function popup(name, time) { |
|
|
|
$("#show" + name).fadeIn() |
|
|
|
console.log("around") |
|
|
|
$("#thesis").fadeIn() |
|
|
|
$("#thesisX").fadeIn() |
|
|
|
$("#bio" + name).fadeIn() |
|
|
|
// var dada = document.getElementById("text" + name);
|
|
|
|
// dada.className += " active";
|
|
|
|
// dada.scrollIntoView();
|
|
|
|
|
|
|
|
var dada = document.getElementById("text" + name); |
|
|
|
dada.className += " active"; |
|
|
|
dada.scrollIntoView(); |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//stop events when clicking somewhere else
|
|
|
|
// $(document).click(function (e) {
|
|
|
|
// if (!$(e.target).parents().andSelf().is('#dadaloglu')) {
|
|
|
|
// $("#showdadaloglu").fadeOut();
|
|
|
|
// $("#audiodadaloglu").trigger('pause');
|
|
|
|
// // var textdada = document.getElementById("textdadaloglu");
|
|
|
|
// // textdada.classList.remove("active");
|
|
|
|
// };
|
|
|
|
// if (!$(e.target).parents().andSelf().is('#asikA')) {
|
|
|
|
// $("#showasikA").fadeOut();
|
|
|
|
// $("#audioasikA").trigger('pause');
|
|
|
|
// // var textasikA = document.getElementById("textasikA");
|
|
|
|
// // textasikA.classList.remove("active");
|
|
|
|
// stopVideo("#asikA");
|
|
|
|
// };
|
|
|
|
//
|
|
|
|
// });
|
|
|
|
|
|
|
|
// $(document).click(function (e) {
|
|
|
|
// if (!$(e.target).parents().andSelf().is('#dadaloglu')) {
|
|
|
|
// $("#showdadaloglu").fadeOut();
|
|
|
|
// $("#audiodadaloglu").trigger('pause');
|
|
|
|
// // var textdada = document.getElementById("textdadaloglu");
|
|
|
|
// // textdada.classList.remove("active");
|
|
|
|
// };
|
|
|
|
// if (!$(e.target).parents().andSelf().is('#asikA')) {
|
|
|
|
// $("#showasikA").fadeOut();
|
|
|
|
// $("#audioasikA").trigger('pause');
|
|
|
|
// // var textasikA = document.getElementById("textasikA");
|
|
|
|
// // textasikA.classList.remove("active");
|
|
|
|
// stopVideo("#asikA");
|
|
|
|
// };
|
|
|
|
//
|
|
|
|
// });
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
// function stop(name) {
|
|
|
|
// $(document).click(function (e) {
|
|
|
|
// if (!$(e.target).parents().andSelf().is('#'+ name)) {
|
|
|
|
// $("#show"+name).fadeOut();
|
|
|
|
// $("#audio"+name).trigger('pause');
|
|
|
|
// var textdada = document.getElementById("text"+name);
|
|
|
|
// textdada.classList.remove("active");
|
|
|
|
// };
|
|
|
|
// });
|
|
|
|
// };
|
|
|
|
|
|
|
|
//
|
|
|
|
//
|
|
|
|