提交 d9f11fed 编写于 作者: J Jason Park

minor

上级 0dc9bf96
......@@ -30,6 +30,8 @@
<section class="sidemenu active">
<div id="list">
</div>
<a class="github-fork-ribbon left-bottom" href="http://github.com/parkjs814/AlgorithmVisualizer"
title="Fork me on GitHub">Fork me on GitHub</a>
</section>
<div class="workspace">
<div class="viewer_container">
......@@ -79,12 +81,11 @@
</div>
<div class="toast_container">
</div>
<a class="github-fork-ribbon left-bottom" href="http://github.com/parkjs814/AlgorithmVisualizer" title="Fork me on GitHub">Fork me on GitHub</a>
<script src="js/jquery-2.2.3.min.js"></script>
<script src="js/sigma/sigma.min.js"></script>
<script src="js/sigma/plugins/sigma.plugins.dragNodes.min.js"></script>
<script src="js/ace/ace.js"></script>
<script src="js/tracer.js"></script>
<script src="js/module/tracer.js"></script>
<script src="js/module/graph.js"></script>
<script src="js/module/weighted_graph.js"></script>
<script src="js/module/array2d.js"></script>
......
......@@ -41,7 +41,7 @@ var Graph = {
}
};
GraphTracer.prototype.setTreeData = function (G, root) {
GraphTracer.prototype._setTreeData = function (G, root) {
root = root || 0;
var maxDepth = -1;
......
......@@ -27,9 +27,6 @@ Tracer.prototype.reset = function () {
this.clear();
};
Tracer.prototype.createRandomData = function (arguments) {
};
Tracer.prototype._setData = function (arguments) {
var data = JSON.stringify(arguments);
if (lastModule == this.module && lastData == data) return true;
......
......@@ -124,12 +124,10 @@ $('#navigation').click(function () {
if ($sidemenu.hasClass('active')) {
$sidemenu.css('right', (100 - sidemenu_percent) + '%');
$workspace.css('left', sidemenu_percent + '%');
$('.github-fork-ribbon').css('visibility', 'visible');
} else {
sidemenu_percent = $workspace.position().left / $('body').width() * 100;
$sidemenu.css('right', 0);
$workspace.css('left', 0);
$('.github-fork-ribbon').css('visibility', 'hidden');
}
_tracer.resize();
});
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册