diff options
| -rw-r--r-- | index.html | 5 | ||||
| -rw-r--r-- | scripts/buttons.js | 4 | ||||
| -rw-r--r-- | scripts/rhizicore.js | 35 |
3 files changed, 0 insertions, 44 deletions
@@ -96,11 +96,6 @@ </div> </div> <div class="debug-ui-left"> - <div class="deliverabletest"> - <a href="#">Load deliverables</a> - </div> - </div> - <div class="debug-ui-left"> <div class="debug">debug</div> </div> </div> diff --git a/scripts/buttons.js b/scripts/buttons.js index 3de25931..1789aab7 100644 --- a/scripts/buttons.js +++ b/scripts/buttons.js @@ -34,10 +34,6 @@ $('.local-storage-load').click(function(){ graph.load_from_json(json_blob); }); -$('.deliverabletest').click(function(){ - deliverableTest(); -}); - $('.set-user').click(function() { $('.set-user').hide(); $('.set-user-form').show(); diff --git a/scripts/rhizicore.js b/scripts/rhizicore.js index 70adfc3b..d3c5e54b 100644 --- a/scripts/rhizicore.js +++ b/scripts/rhizicore.js @@ -833,41 +833,6 @@ function tick(e) { node.attr('visibility', 'visible'); } - - - -function deliverableTest() { - links=[]; - nodes=[]; - var status = "unknown"; - var nodecounter = 150; - for (var i = 0; i < nodecounter; i++) { - if (Math.random() > 0.7) status = "done"; - else if (Math.random() > 0.5) status = "current"; - else status = "waiting"; - var end = randomDate(new Date(), new Date("01/01/2018")); - var start = randomDate(new Date(), end); - graph.addNodeComplete("Task " + i, "deliverable", "perm", start, end, status); - } - - for (var i = 0; i < nodecounter; i++) { - var endindex = Math.floor(Math.random() * nodecounter); - var startindex = Math.floor(Math.random() * nodecounter); - if (nodes[endindex].start > nodes[startindex].start && startindex !== endindex) { - graph.addLink("Task " + startindex, "Task " + endindex, "depends on", "perm"); - } else { - graph.addLink("Task " + endindex, "Task " + startindex, "depends on", "perm"); - } - } - - function randomDate(start, end) { - return new Date(start.getTime() + Math.random() * (end.getTime() - start.getTime())); - } - - graph.update(); -} - - function showInfo(d, i) { if (d.state !== "chosen") { graph.highlightNode(d.id, null); |
