Skip to content

Instantly share code, notes, and snippets.

@roundrobin
Created June 22, 2012 04:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save roundrobin/2970252 to your computer and use it in GitHub Desktop.
Save roundrobin/2970252 to your computer and use it in GitHub Desktop.
just another inlet to tributary
console.log('sdf')
//Dont change Line below
var text = $('.CodeMirror-lines div > div pre').html()
console.log('Hello',text)
var text = $('.CodeMirror-lines div > div pre:first-child')
text.append('')
g.append('text')
.attr('y',200)
.attr('x',100)
.attr('id','pathWay')
.text(text)
var rect = g.append('rect')
.attr('width',100)
.attr('height',100)
.attr('x',384)
.on('click',function(){
var text = $('.CodeMirror-lines div > div pre:first-child').html('ssdfsd')
})
var rect = g.append('rect')
.attr('width',100)
.attr('height',100)
.attr('x',200)
.on('click',function(){
var text = $('.CodeMirror-lines div > div pre:first-child').html(' ')
})
var rect = g.append('rect')
.attr('width',100)
.attr('height',100)
.on('click',function(){
var text = d3.select('#pathWay')
if(text.text() != '')
text.text(text.text()+',')
var old =
text.text(text.text()+'[1,2]')
})
g.append('text')
.attr('y',200)
.attr('x',100)
.attr('id','pathWay')
.text('')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment