Sha256: af5e3f520a3c08c2935d241ab49f2f056915108809018ae8ae423115c84e23fc

Contents?: true

Size: 1.54 KB

Versions: 202

Compression:

Stored size: 1.54 KB

Contents

<html>
<body>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script src="springy.js"></script>
<script src="springyui.js"></script>
<script>
var graph = new Springy.Graph();

var dennis = graph.newNode({
  label: 'Dennis',
  ondoubleclick: function() { console.log("Hello!"); }
});
var michael = graph.newNode({label: 'Michael'});
var jessica = graph.newNode({label: 'Jessica'});
var timothy = graph.newNode({label: 'Timothy'});
var barbara = graph.newNode({label: 'Barbara'});
var franklin = graph.newNode({label: 'Franklin'});
var monty = graph.newNode({label: 'Monty'});
var james = graph.newNode({label: 'James'});
var bianca = graph.newNode({label: 'Bianca'});

graph.newEdge(dennis, michael, {color: '#00A0B0'});
graph.newEdge(michael, dennis, {color: '#6A4A3C'});
graph.newEdge(michael, jessica, {color: '#CC333F'});
graph.newEdge(jessica, barbara, {color: '#EB6841'});
graph.newEdge(michael, timothy, {color: '#EDC951'});
graph.newEdge(franklin, monty, {color: '#7DBE3C'});
graph.newEdge(dennis, monty, {color: '#000000'});
graph.newEdge(monty, james, {color: '#00A0B0'});
graph.newEdge(barbara, timothy, {color: '#6A4A3C'});
graph.newEdge(dennis, bianca, {color: '#CC333F'});
graph.newEdge(bianca, monty, {color: '#EB6841'});

jQuery(function(){
  var springy = window.springy = jQuery('#springydemo').springy({
    graph: graph,
    nodeSelected: function(node){
      console.log('Node selected: ' + JSON.stringify(node.data));
    }
  });
});
</script>

<canvas id="springydemo" width="640" height="480" />
</body>
</html>

Version data entries

202 entries across 202 versions & 1 rubygems

Version Path
rbbt-rest-2.0.1 share/views/public/plugins/springy/demo.html
rbbt-rest-2.0.0 share/views/public/plugins/springy/demo.html
rbbt-rest-1.9.1 share/views/public/plugins/springy/demo.html
rbbt-rest-1.9.0 share/views/public/plugins/springy/demo.html
rbbt-rest-1.8.157 share/views/public/plugins/springy/demo.html
rbbt-rest-1.8.156 share/views/public/plugins/springy/demo.html
rbbt-rest-1.8.155 share/views/public/plugins/springy/demo.html
rbbt-rest-1.8.154 share/views/public/plugins/springy/demo.html
rbbt-rest-1.8.152 share/views/public/plugins/springy/demo.html
rbbt-rest-1.8.151 share/views/public/plugins/springy/demo.html
rbbt-rest-1.8.150 share/views/public/plugins/springy/demo.html
rbbt-rest-1.8.148 share/views/public/plugins/springy/demo.html
rbbt-rest-1.8.147 share/views/public/plugins/springy/demo.html
rbbt-rest-1.8.146 share/views/public/plugins/springy/demo.html
rbbt-rest-1.8.145 share/views/public/plugins/springy/demo.html
rbbt-rest-1.8.144 share/views/public/plugins/springy/demo.html
rbbt-rest-1.8.143 share/views/public/plugins/springy/demo.html
rbbt-rest-1.8.142 share/views/public/plugins/springy/demo.html
rbbt-rest-1.8.140 share/views/public/plugins/springy/demo.html
rbbt-rest-1.8.139 share/views/public/plugins/springy/demo.html