Difference between revisions of "Template:TU Darmstadt/Flowchart"

Line 5: Line 5:
 
   $('text').toggleClass('visible');
 
   $('text').toggleClass('visible');
 
});
 
});
 +
function flowtext(){
 +
  var text = document.getElementsById('text')[0];
 +
  $('text').toggleClass('visible');
 +
  if (!text.style.display || text.style.display === 'none') text.style.display = 'block';
 +
  else text.style.display = 'none';
 +
}
 
</script>
 
</script>
 
<svg
 
<svg
Line 39: Line 45:
 
}
 
}
 
#text{
 
#text{
fill-opacity:0;
+
/*fill-opacity:0;
opacity:0;
+
opacity:0;*/
 +
display:none;
 
}
 
}
 
#text.visible{
 
#text.visible{
fill-opacity:1;
+
/*fill-opacity:1;
opacity:1;
+
opacity:1;*/
 +
display:block;
 
}
 
}
 
#text:hover{
 
#text:hover{
Line 118: Line 126:
 
       id="a289">-->
 
       id="a289">-->
 
       <g
 
       <g
         id="FlowC1" class="flowtext">
+
         id="FlowC1" class="flowtext" onclick="flowtext()">
 
         <g
 
         <g
 
           id="g1380"
 
           id="g1380"

Revision as of 20:25, 28 October 2017

image/svg+xml Lorem ipsum