Skip to content

Commit 87c1f13

Browse files
committed
minor
1 parent 3c0d338 commit 87c1f13

File tree

6 files changed

+6
-10
lines changed

6 files changed

+6
-10
lines changed

algorithm/graph_search/bfs/tree/data.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ var G = [ // G[i][j] indicates whether the path from the i-th node to the j-th n
1212
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
1313
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
1414
];
15-
tracer.setTreeData(G, 0);
15+
tracer._setTreeData(G, 0);

algorithm/graph_search/dfs/tree/data.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ var G = [ // G[i][j] indicates whether the path from the i-th node to the j-th n
1212
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
1313
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
1414
];
15-
tracer.setTreeData(G, 0);
15+
tracer._setTreeData(G, 0);

index.html

+3-2
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ <h3>
3030
<section class="sidemenu active">
3131
<div id="list">
3232
</div>
33+
<a class="github-fork-ribbon left-bottom" href="http://github.com/parkjs814/AlgorithmVisualizer"
34+
title="Fork me on GitHub">Fork me on GitHub</a>
3335
</section>
3436
<div class="workspace">
3537
<div class="viewer_container">
@@ -79,12 +81,11 @@ <h3>Reference</h3>
7981
</div>
8082
<div class="toast_container">
8183
</div>
82-
<a class="github-fork-ribbon left-bottom" href="http://github.com/parkjs814/AlgorithmVisualizer" title="Fork me on GitHub">Fork me on GitHub</a>
8384
<script src="js/jquery-2.2.3.min.js"></script>
8485
<script src="js/sigma/sigma.min.js"></script>
8586
<script src="js/sigma/plugins/sigma.plugins.dragNodes.min.js"></script>
8687
<script src="js/ace/ace.js"></script>
87-
<script src="js/tracer.js"></script>
88+
<script src="js/module/tracer.js"></script>
8889
<script src="js/module/graph.js"></script>
8990
<script src="js/module/weighted_graph.js"></script>
9091
<script src="js/module/array2d.js"></script>

js/module/graph.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ var Graph = {
4141
}
4242
};
4343

44-
GraphTracer.prototype.setTreeData = function (G, root) {
44+
GraphTracer.prototype._setTreeData = function (G, root) {
4545
root = root || 0;
4646
var maxDepth = -1;
4747

js/tracer.js renamed to js/module/tracer.js

-3
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,6 @@ Tracer.prototype.reset = function () {
2727
this.clear();
2828
};
2929

30-
Tracer.prototype.createRandomData = function (arguments) {
31-
};
32-
3330
Tracer.prototype._setData = function (arguments) {
3431
var data = JSON.stringify(arguments);
3532
if (lastModule == this.module && lastData == data) return true;

js/script.js

-2
Original file line numberDiff line numberDiff line change
@@ -124,12 +124,10 @@ $('#navigation').click(function () {
124124
if ($sidemenu.hasClass('active')) {
125125
$sidemenu.css('right', (100 - sidemenu_percent) + '%');
126126
$workspace.css('left', sidemenu_percent + '%');
127-
$('.github-fork-ribbon').css('visibility', 'visible');
128127
} else {
129128
sidemenu_percent = $workspace.position().left / $('body').width() * 100;
130129
$sidemenu.css('right', 0);
131130
$workspace.css('left', 0);
132-
$('.github-fork-ribbon').css('visibility', 'hidden');
133131
}
134132
_tracer.resize();
135133
});

0 commit comments

Comments
 (0)