Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
tianyazhichiC
algorithm-visualizer
提交
d00cab09
A
algorithm-visualizer
项目概览
tianyazhichiC
/
algorithm-visualizer
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
A
algorithm-visualizer
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
d00cab09
编写于
6月 06, 2016
作者:
J
Jason Park
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix minor
上级
53e7cf81
变更
12
展开全部
隐藏空白更改
内联
并排
Showing
12 changed file
with
133 addition
and
151 deletion
+133
-151
index.html
index.html
+1
-3
js/dom/setup/index.js
js/dom/setup/index.js
+3
-7
js/dom/setup/setup_dividers.js
js/dom/setup/setup_dividers.js
+1
-1
js/dom/setup/setup_powered_by.js
js/dom/setup/setup_powered_by.js
+0
-7
js/dom/setup/setup_scratch_paper.js
js/dom/setup/setup_scratch_paper.js
+0
-15
js/dom/setup/setup_side_menu.js
js/dom/setup/setup_side_menu.js
+19
-1
js/dom/setup/setup_tab_container.js
js/dom/setup/setup_tab_container.js
+10
-0
js/dom/setup/setup_top_menu.js
js/dom/setup/setup_top_menu.js
+0
-9
public/algorithm_visualizer.js
public/algorithm_visualizer.js
+94
-103
public/algorithm_visualizer.js.map
public/algorithm_visualizer.js.map
+1
-1
public/algorithm_visualizer.min.js
public/algorithm_visualizer.min.js
+3
-3
public/algorithm_visualizer.min.js.map
public/algorithm_visualizer.min.js.map
+1
-1
未找到文件。
index.html
浏览文件 @
d00cab09
...
...
@@ -65,9 +65,7 @@
</div>
<div
id=
"footer"
>
<button
id=
"scratch-paper"
><i
class=
"fa fa-code"
></i>
Scratch Paper
</button>
<a
href=
"https://github.com/parkjs814/AlgorithmVisualizer/wiki"
>
<button><i
class=
"fa fa-book"
></i>
Documentation
</button>
</a>
<button
id=
"documentation"
><i
class=
"fa fa-book"
></i>
Documentation
</button>
<button
class=
"category"
id=
"powered-by"
><i
class=
"fa fa-github"
></i>
Powered by ...
</button>
<div
id=
"powered-by-list"
>
<a
href=
"https://github.com/jquery/jquery"
>
...
...
js/dom/setup/index.js
浏览文件 @
d00cab09
...
...
@@ -5,8 +5,7 @@ const setupDocument = require('./setup_document');
const
setupFilesBar
=
require
(
'
./setup_files_bar
'
);
const
setupInterval
=
require
(
'
./setup_interval
'
);
const
setupModuleContainer
=
require
(
'
./setup_module_container
'
);
const
setupPoweredBy
=
require
(
'
./setup_powered_by
'
);
const
setupScratchPaper
=
require
(
'
./setup_scratch_paper
'
);
const
setupTabContainer
=
require
(
'
./setup_tab_container
'
);
const
setupSideMenu
=
require
(
'
./setup_side_menu
'
);
const
setupTopMenu
=
require
(
'
./setup_top_menu
'
);
const
setupWindow
=
require
(
'
./setup_window
'
);
...
...
@@ -35,11 +34,8 @@ const setup = () => {
// module container
setupModuleContainer
();
// powered by
setupPoweredBy
();
// scratch paper
setupScratchPaper
();
// tab container
setupTabContainer
();
// side menu
setupSideMenu
();
...
...
js/dom/setup/setup_dividers.js
浏览文件 @
d00cab09
...
...
@@ -98,4 +98,4 @@ module.exports = () => {
for
(
let
i
=
0
;
i
<
dividers
.
length
;
i
++
)
{
addDividerToDom
(
dividers
[
i
]);
}
}
}
;
\ No newline at end of file
js/dom/setup/setup_powered_by.js
已删除
100644 → 0
浏览文件 @
53e7cf81
'
use strict
'
;
module
.
exports
=
()
=>
{
$
(
'
#powered-by
'
).
click
(
function
()
{
$
(
'
#powered-by-list button
'
).
toggleClass
(
'
collapse
'
);
});
};
js/dom/setup/setup_scratch_paper.js
已删除
100644 → 0
浏览文件 @
53e7cf81
'
use strict
'
;
const
app
=
require
(
'
../../app
'
);
const
Server
=
require
(
'
../../server
'
);
const
showAlgorithm
=
require
(
'
../show_algorithm
'
);
module
.
exports
=
()
=>
{
$
(
'
#scratch-paper
'
).
click
(
function
()
{
const
category
=
'
scratch
'
;
const
algorithm
=
app
.
getLoadedScratch
();
Server
.
loadAlgorithm
(
category
,
algorithm
).
then
((
data
)
=>
{
showAlgorithm
(
category
,
algorithm
,
data
);
});
});
};
js/dom/setup/setup_side_menu.js
浏览文件 @
d00cab09
'
use strict
'
;
const
app
=
require
(
'
../../app
'
);
const
Server
=
require
(
'
../../server
'
);
const
showAlgorithm
=
require
(
'
../show_algorithm
'
);
let
sidemenu_percent
;
...
...
@@ -24,4 +26,20 @@ module.exports = () => {
app
.
getTracerManager
().
resize
();
});
}
$
(
'
#documentation
'
).
click
(
function
()
{
$
(
'
#btn_doc
'
).
click
();
});
$
(
'
#powered-by
'
).
click
(()
=>
{
$
(
'
#powered-by-list button
'
).
toggleClass
(
'
collapse
'
);
});
$
(
'
#scratch-paper
'
).
click
(()
=>
{
const
category
=
'
scratch
'
;
const
algorithm
=
app
.
getLoadedScratch
();
Server
.
loadAlgorithm
(
category
,
algorithm
).
then
((
data
)
=>
{
showAlgorithm
(
category
,
algorithm
,
data
);
});
});
};
\ No newline at end of file
js/dom/setup/setup_tab_container.js
0 → 100644
浏览文件 @
d00cab09
'
use strict
'
;
module
.
exports
=
()
=>
{
$
(
'
.tab_bar > button
'
).
click
(
function
()
{
$
(
'
.tab_bar > button
'
).
removeClass
(
'
active
'
);
$
(
'
.tab_container > .tab
'
).
removeClass
(
'
active
'
);
$
(
this
).
addClass
(
'
active
'
);
$
(
$
(
this
).
attr
(
'
data-target
'
)).
addClass
(
'
active
'
);
});
};
\ No newline at end of file
js/dom/setup/setup_top_menu.js
浏览文件 @
d00cab09
...
...
@@ -72,13 +72,4 @@ module.exports = () => {
app
.
getTracerManager
().
nextStep
();
});
// description & trace
$
(
'
.tab_bar > button
'
).
click
(
function
()
{
$
(
'
.tab_bar > button
'
).
removeClass
(
'
active
'
);
$
(
'
.tab_container > .tab
'
).
removeClass
(
'
active
'
);
$
(
this
).
addClass
(
'
active
'
);
$
(
$
(
this
).
attr
(
'
data-target
'
)).
addClass
(
'
active
'
);
});
};
public/algorithm_visualizer.js
浏览文件 @
d00cab09
此差异已折叠。
点击以展开。
public/algorithm_visualizer.js.map
浏览文件 @
d00cab09
此差异已折叠。
点击以展开。
public/algorithm_visualizer.min.js
浏览文件 @
d00cab09
此差异已折叠。
点击以展开。
public/algorithm_visualizer.min.js.map
浏览文件 @
d00cab09
此差异已折叠。
点击以展开。
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录