|
|
@ -27,7 +27,7 @@ d3.json("/static/js/group1.json", function(error, json) { |
|
|
|
var node = svg.selectAll(".node") |
|
|
|
.data(json.nodes) |
|
|
|
.enter().append("g") |
|
|
|
.attr("class", "node") |
|
|
|
.attr("class", "node "+function(d){return d.class}) |
|
|
|
.attr("id", function(d){return d.id}) |
|
|
|
|
|
|
|
// .style("fill",function (d) { return 'red'; })
|
|
|
@ -96,6 +96,7 @@ d3.json("/static/js/group1.json", function(error, json) { |
|
|
|
$("#showdadaloglu").fadeIn() |
|
|
|
console.log("around") |
|
|
|
var dada = document.getElementById("textdadaloglu"); |
|
|
|
dada.className += " active"; |
|
|
|
dada.scrollIntoView(); |
|
|
|
var audio1 = document.getElementById("audio-1"); |
|
|
|
audio1.currentTime = 12; |
|
|
@ -103,9 +104,11 @@ d3.json("/static/js/group1.json", function(error, json) { |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$("#muharrem").click(function(){$("#showmuharrem").fadeIn() |
|
|
|
console.log("around") |
|
|
|
var muh = document.getElementById("textmuharrem"); |
|
|
|
muh.className += " active"; |
|
|
|
muh.scrollIntoView(); |
|
|
|
var audio2 = document.getElementById("audio-1"); |
|
|
|
audio2.currentTime = 50; |
|
|
@ -117,11 +120,14 @@ d3.json("/static/js/group1.json", function(error, json) { |
|
|
|
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('#muharrem')) { |
|
|
|
$("#showmuharrem").fadeOut(); |
|
|
|
$("audiomuharrem").trigger('pause'); |
|
|
|
var textmuh = document.getElementById("textmuharrem"); |
|
|
|
textmuh.classList.remove("active"); |
|
|
|
}; |
|
|
|
}); |
|
|
|
|
|
|
|