提交 60c62406 编写于 作者: J Jason Park

scroll to top of wiki

上级 d00cab09
AlgorithmVisualizer.wiki @ 0e03611e
Subproject commit 3bf6479fea97eb0a7667e870970a338c941df4dd
Subproject commit 0e03611e717a18a2079a0e181bd76f58e39eb68c
......@@ -7,6 +7,7 @@ const converter = new showdown.Converter({tables: true});
module.exports = (wiki) => {
Server.loadWiki(wiki).then((data) => {
$('#tab_doc > .wrapper').html(converter.makeHtml(`#${wiki}\n${data}`));
$('#tab_doc').scrollTop(0);
$('#tab_doc > .wrapper a').click(function (e) {
const href = $(this).attr('href');
if (app.hasWiki(href)) {
......
......@@ -69,7 +69,7 @@ $(() => {
Server.loadWikiList().then((data) => {
app.setWikiList(data.wikis);
DOM.showWiki('Home');
DOM.showWiki('Tracer');
})
});
\ No newline at end of file
此差异已折叠。
此差异已折叠。
此差异已折叠。
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册