@ -44,7 +44,8 @@ d3.json("/static/js/group1.json", function(error, json) {
node . append ( "image" )
. attr ( "xlink:href" , "/static/images/squig2.png" )
// .attr("xlink:href", "/static/images/squig2.png")
. attr ( "xlink:href" , "/static/images/circleB.png" )
. attr ( "x" , - 8 )
. attr ( "y" , - 8 )
. attr ( "width" , 16 )
@ -115,41 +116,42 @@ function popup(name,time) {
audio1 . play ( ) ;
} ;
function
// popup('dadaloglu',12);
// popup('asikA',45);
//
//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 textmuh = document . getElementById ( "textasikA" ) ;
textmuh . classList . remove ( "active" ) ;
} ;
if ( ! $ ( e . target ) . parents ( ) . andSelf ( ) . is ( '#asikV' ) ) {
$ ( "#showasikV" ) . fadeOut ( ) ;
$ ( "#audioasikV" ) . trigger ( 'pause' ) ;
var textmuh = document . getElementById ( "textasikV" ) ;
textmuh . classList . remove ( "active" ) ;
} ;
} ) ;
} ) ;
//stop events when clicking somewhere else
// function stop(name) {
// $(document).click(function (e) {
// if (!$(e.target).parents().andSelf().is('#dadaloglu')) {
// $("#showdadaloglu").fadeOut();
// $("#audiodadaloglu").trigger('pause');
// var textdada = document.getElementById("textdadaloglu");
// if (!$(e.target).parents().andSelf().is('#'+ name )) {
// $("#show"+name ).fadeOut();
// $("#audio"+name ).trigger('pause');
// var textdada = document.getElementById("text"+name );
// textdada.classList.remove("active");
// };
// if (!$(e.target).parents().andSelf().is('#asikA')) {
// $("#showasikA").fadeOut();
// $("#audioasikA").trigger('pause');
// var textmuh = document.getElementById("textasikA");
// textmuh.classList.remove("active");
// };
//
// });
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" ) ;
} ;
} ) ;
} ;
// };
//
//
// });