diff --git a/wells/index.html b/wells/index.html
index 969a0f2..56e7e68 100644
--- a/wells/index.html
+++ b/wells/index.html
@@ -56,7 +56,9 @@
× "+i.bio+"
");
+ // draggable
+
+
// div.on(".drag", null);
// span.html("
×");
// rest pop up
@@ -78,6 +96,8 @@ var divBio = d3.select("body").append("div").style("opacity", 1);
.on("dblclick",connectedNodes);
+
+
force.on("tick", function() {
link.attr("x1", function(d) { return d.source.x; })
.attr("y1", function(d) { return d.source.y; })
@@ -167,23 +187,49 @@ function connectedNodes() {
// scripts for mouse events
// var stopVideo = function (name) {
-function stopVideo(name) {
- var iframe = document.querySelector( 'iframe');
- var video = document.getElementById( "#video"+name );
- if ( iframe !== null ) {
- var iframeSrc = iframe.src;
- iframe.src = iframeSrc;
- }
- if ( video !== null ) {
- video.pause();
- }
+// function stopVideo(name) {
+// var iframe = document.querySelector( 'iframe');
+// var video = document.getElementById( "#video"+name );
+// if ( iframe !== null ) {
+// var iframeSrc = iframe.src;
+// iframe.src = iframeSrc;
+// }
+// if ( video !== null ) {
+// video.pause();
+// }
+// };
+
+// $(function (){
+// $('.topleft').click(function(){
+// $('iframe').attr('src', $('iframe').attr('src'));
+// });
+// });
+
+
+// function pauseAllVideos(name)
+// {
+// $("#video"+name).each(function(){
+// this.contentWindow.postMessage('{"event":"command","func":"stopVideo","args":""}', '*')
+// });
+// }
+
+function pauseAllVideos(name) {
+ $("video"+name).each(function(){
+ $(this).stopVideo();
+ });
};
+// $(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";
@@ -196,22 +242,22 @@ function popup(name,time) {
//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");
+ // };
+ //
+ // });
// $(document).click(function (e) {
// if (!$(e.target).parents().andSelf().is('#dadaloglu')) {