Skip to content

Commit 369067a

Browse files
committed
show heading of current wiki
1 parent fd6b49d commit 369067a

6 files changed

Lines changed: 7 additions & 13 deletions

AlgorithmVisualizer.wiki

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Subproject commit 9ec90c2dff4974717446a58082d3d567b555f5a2
1+
Subproject commit 3bf6479fea97eb0a7667e870970a338c941df4dd

js/dom/show_wiki.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,9 @@ const converter = new showdown.Converter({tables: true});
66

77
module.exports = (wiki) => {
88
Server.loadWiki(wiki).then((data) => {
9-
console.log(data);
10-
$('#tab_doc > .wrapper').html(converter.makeHtml(data));
9+
$('#tab_doc > .wrapper').html(converter.makeHtml(`#${wiki}\n${data}`));
1110
$('#tab_doc > .wrapper a').click(function (e) {
1211
const href = $(this).attr('href');
13-
14-
console.log(href);
1512
if (app.hasWiki(href)) {
1613
e.preventDefault();
1714
module.exports(href);

public/algorithm_visualizer.js

Lines changed: 2 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/algorithm_visualizer.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/algorithm_visualizer.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/algorithm_visualizer.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)