Make demo2.html output different from demo.html

This commit is contained in:
anatoly techtonik 2013-03-12 13:06:28 +03:00
parent 947fc903fa
commit d3e7db95df

View File

@ -5,8 +5,8 @@
<script src="springyui.js"></script> <script src="springyui.js"></script>
<script> <script>
var graph = new Graph(); var graph = new Graph();
graph.addNodes('Dennis', 'Michael', 'Jessica', 'Timothy', 'Barbara', 'Franklin') graph.addNodes('Dennis', 'Michael', 'Jessica', 'Timothy', 'Barbara')
graph.addNodes('Monty', 'James'); graph.addNodes('Amphitryon', 'Alcmene', 'Iphicles', 'Heracles');
graph.addEdges( graph.addEdges(
['Dennis', 'Michael', {color: '#00A0B0', label: 'Foo bar'}], ['Dennis', 'Michael', {color: '#00A0B0', label: 'Foo bar'}],
@ -14,9 +14,10 @@ graph.addEdges(
['Michael', 'Jessica', {color: '#CC333F'}], ['Michael', 'Jessica', {color: '#CC333F'}],
['Jessica', 'Barbara', {color: '#EB6841'}], ['Jessica', 'Barbara', {color: '#EB6841'}],
['Michael', 'Timothy', {color: '#EDC951'}], ['Michael', 'Timothy', {color: '#EDC951'}],
['Franklin', 'Monty', {color: '#7DBE3C'}], ['Amphitryon', 'Alcmene', {color: '#7DBE3C'}],
['Dennis', 'Monty', {color: '#000000'}], ['Alcmene', 'Amphitryon', {color: '#BE7D3C'}],
['Monty', 'James'], ['Amphitryon', 'Iphicles'],
['Amphitryon', 'Heracles'],
['Barbara', 'Timothy', {color: '#6A4A3C'}] ['Barbara', 'Timothy', {color: '#6A4A3C'}]
); );