Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
tianyazhichiC
algorithm-visualizer
提交
a4d1f33c
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看板
体验新版 GitCode,发现更多精彩内容 >>
提交
a4d1f33c
编写于
6月 06, 2016
作者:
J
Jason Park
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add documentation tab
上级
88a112e8
变更
6
展开全部
隐藏空白更改
内联
并排
Showing
6 changed file
with
140 addition
and
150 deletion
+140
-150
index.html
index.html
+123
-117
js/dom/setup/setup_top_menu.js
js/dom/setup/setup_top_menu.js
+8
-16
public/algorithm_visualizer.js
public/algorithm_visualizer.js
+4
-12
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
浏览文件 @
a4d1f33c
...
...
@@ -3,25 +3,25 @@
<head>
<meta
charset=
"UTF-8"
>
<meta
name=
"description"
content=
"Tool for visualizing algorithms."
/>
<meta
property=
"og:title"
content=
"Algorithm Visualizer"
/>
<meta
property=
"og:description"
content=
"Tool for visualizing algorithms."
/>
<meta
property=
"og:image"
content=
"img/image.png"
/>
<link
rel=
"shortcut icon"
href=
"img/favicon.ico"
type=
"image/x-icon"
/>
<meta
name=
"description"
content=
"Tool for visualizing algorithms."
/>
<meta
property=
"og:title"
content=
"Algorithm Visualizer"
/>
<meta
property=
"og:description"
content=
"Tool for visualizing algorithms."
/>
<meta
property=
"og:image"
content=
"img/image.png"
/>
<link
rel=
"shortcut icon"
href=
"img/favicon.ico"
type=
"image/x-icon"
/>
<title>
Algorithm Visualizer
</title>
<link
rel=
"stylesheet"
href=
"https://fonts.googleapis.com/css?family=Roboto"
>
<link
rel=
"stylesheet"
href=
"public/algorithm_visualizer.min.css"
>
</head>
<body>
<div
id=
"loading-slider"
>
<div
class=
"line"
></div>
<div
class=
"break dot1"
></div>
<div
class=
"break dot2"
></div>
<div
class=
"break dot3"
></div>
</div>
<nav>
<button
id=
"navigation"
>
<div
id=
"loading-slider"
>
<div
class=
"line"
></div>
<div
class=
"break dot1"
></div>
<div
class=
"break dot2"
></div>
<div
class=
"break dot3"
></div>
</div>
<nav>
<button
id=
"navigation"
>
<h3>
Algorithm Visualizer
<i
class=
"fa fa-angle-right nav-arrow"
aria-hidden=
"true"
></i>
...
...
@@ -31,120 +31,126 @@
<i
class=
"fa fa-caret-up nav-dropdown"
aria-hidden=
"true"
></i>
</h3>
</button>
<div
class=
"top-menu-buttons"
>
<div
class=
"btn"
id=
"btn_share"
>
<div
class=
"wrapper"
>
<i
class=
"fa fa-share"
aria-hidden=
"true"
></i>
Share
<input
type=
"text"
class=
"collapse"
id=
"shared"
>
</div>
</div>
<button
id=
"btn_run"
>
<i
class=
"fa fa-play"
aria-hidden=
"true"
></i>
<span
class=
"btn-text"
>
Run
</span>
</button>
<button
id=
"btn_prev"
>
<i
class=
"fa fa-chevron-left"
aria-hidden=
"true"
></i>
<span
class=
"btn-text"
>
Prev
</span>
</button>
<button
id=
"btn_pause"
>
<i
class=
"fa fa-pause"
aria-hidden=
"true"
></i>
<span
class=
"btn-text"
></span>
</button>
<button
id=
"btn_next"
>
<span
class=
"btn-text"
>
Next
</span>
<i
class=
"fa fa-chevron-right"
aria-hidden=
"true"
></i>
</button>
<div
class=
"btn"
>
<div
class=
"wrapper"
>
Interval:
<input
type=
"number"
value=
""
id=
"interval"
>
sec
</div>
<div
class=
"top-menu-buttons"
>
<div
class=
"btn"
id=
"btn_share"
>
<div
class=
"wrapper"
>
<i
class=
"fa fa-share"
aria-hidden=
"true"
></i>
Share
<input
type=
"text"
class=
"collapse"
id=
"shared"
>
</div>
</div>
</nav>
<section
class=
"sidemenu active"
>
<div
id=
"list"
>
<button
id=
"btn_run"
>
<i
class=
"fa fa-play"
aria-hidden=
"true"
></i>
<span
class=
"btn-text"
>
Run
</span>
</button>
<button
id=
"btn_prev"
>
<i
class=
"fa fa-chevron-left"
aria-hidden=
"true"
></i>
<span
class=
"btn-text"
>
Prev
</span>
</button>
<button
id=
"btn_pause"
>
<i
class=
"fa fa-pause"
aria-hidden=
"true"
></i>
<span
class=
"btn-text"
></span>
</button>
<button
id=
"btn_next"
>
<span
class=
"btn-text"
>
Next
</span>
<i
class=
"fa fa-chevron-right"
aria-hidden=
"true"
></i>
</button>
<div
class=
"btn"
>
<div
class=
"wrapper"
>
Interval:
<input
type=
"number"
value=
""
id=
"interval"
>
sec
</div>
</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>
</div>
</nav>
<section
class=
"sidemenu active"
>
<div
id=
"list"
>
</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
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"
>
<button
class=
"indent collapse"
>
jquery/jquery
</button>
</a>
<a
href=
"https://github.com/ajaxorg/ace"
>
<button
class=
"indent collapse"
>
ajaxorg/ace
</button>
</a>
<a
href=
"https://github.com/jacomyal/sigma.js"
>
<button
class=
"indent collapse"
>
jacomyal/sigma.js
</button>
</a>
<a
href=
"https://github.com/FortAwesome/Font-Awesome"
>
<button
class=
"indent collapse"
>
FortAwesome/Font-Awesome
</button>
</a>
<a
href=
"https://github.com/simonwhitaker/github-fork-ribbon-css"
>
<button
class=
"indent collapse"
>
simonwhitaker/github-fork-ribbon-css
</button>
</a>
<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"
>
<button
class=
"indent collapse"
>
jquery/jquery
</button>
</a>
<a
href=
"https://github.com/ajaxorg/ace"
>
<button
class=
"indent collapse"
>
ajaxorg/ace
</button>
</a>
<a
href=
"https://github.com/jacomyal/sigma.js"
>
<button
class=
"indent collapse"
>
jacomyal/sigma.js
</button>
</a>
<a
href=
"https://github.com/FortAwesome/Font-Awesome"
>
<button
class=
"indent collapse"
>
FortAwesome/Font-Awesome
</button>
</a>
<a
href=
"https://github.com/simonwhitaker/github-fork-ribbon-css"
>
<button
class=
"indent collapse"
>
simonwhitaker/github-fork-ribbon-css
</button>
</a>
</div>
</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"
>
<section
class=
"tab_bar"
>
<button
class=
"active"
id=
"btn_desc"
>
Description
</button>
<button
id=
"btn_trace"
>
Trace
</button>
</section>
<section
class=
"tab_container"
>
<div
class=
"tab active"
id=
"tab_desc"
>
<div
class=
"wrapper"
>
</div>
</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"
>
<section
class=
"tab_bar"
>
<button
id=
"btn_doc"
data-target=
"#tab_doc"
>
Documentation
</button>
<button
class=
"active"
id=
"btn_desc"
data-target=
"#tab_desc"
>
Description
</button>
<button
id=
"btn_trace"
data-target=
"#tab_module"
>
Trace
</button>
</section>
<section
class=
"tab_container"
>
<div
class=
"tab"
id=
"tab_doc"
>
<div
class=
"wrapper"
>
</div>
<div
class=
"tab module_container"
id=
"tab_module"
>
</div>
<div
class=
"tab active"
id=
"tab_desc"
>
<div
class=
"wrapper"
>
</div>
</section>
</div>
<div
class=
"editor_container"
>
<section
class=
"files_bar"
>
<button
class=
"btn-left"
><i
class=
"fa fa-angle-left"
aria-hidden=
"true"
></i></button>
<div
class=
"wrapper"
></div>
<button
class=
"btn-right"
><i
class=
"fa fa-angle-right"
aria-hidden=
"true"
></i></button>
</section>
<section
class=
"explanation_container"
>
<span
id=
"explanation"
></span>
</section>
<section
class=
"data_container"
>
<pre
id=
"data"
></pre>
</section>
<section
class=
"code_container"
>
<pre
id=
"code"
></pre>
</section>
</div>
</div>
<div
class=
"tab module_container"
id=
"tab_module"
>
</div>
</section>
</div>
<div
class=
"toast_container"
>
<div
class=
"editor_container"
>
<section
class=
"files_bar"
>
<button
class=
"btn-left"
><i
class=
"fa fa-angle-left"
aria-hidden=
"true"
></i></button>
<div
class=
"wrapper"
></div>
<button
class=
"btn-right"
><i
class=
"fa fa-angle-right"
aria-hidden=
"true"
></i></button>
</section>
<section
class=
"explanation_container"
>
<span
id=
"explanation"
></span>
</section>
<section
class=
"data_container"
>
<pre
id=
"data"
></pre>
</section>
<section
class=
"code_container"
>
<pre
id=
"code"
></pre>
</section>
</div>
<script
src=
"public/lib/jquery-2.2.3.min.js"
></script>
<script
src=
"public/lib/sigma/sigma.min.js"
></script>
<script
src=
"public/lib/sigma/plugins/sigma.plugins.dragNodes.min.js"
></script>
<script
src=
"public/lib/ace/ace.js"
></script>
<script
src=
"public/lib/ace/ext-language_tools.js"
></script>
<script
src=
"public/lib/Chart-2.1.3.min.js"
></script>
<script
src=
"public/algorithm_visualizer.min.js"
></script>
<script>
(
function
(
i
,
s
,
o
,
g
,
r
,
a
,
m
)
{
i
[
'
GoogleAnalyticsObject
'
]
=
r
;
i
[
r
]
=
i
[
r
]
||
function
()
{
(
i
[
r
].
q
=
i
[
r
].
q
||
[]).
push
(
arguments
)
},
i
[
r
].
l
=
1
*
new
Date
();
a
=
s
.
createElement
(
o
),
</div>
<div
class=
"toast_container"
>
</div>
<script
src=
"public/lib/jquery-2.2.3.min.js"
></script>
<script
src=
"public/lib/sigma/sigma.min.js"
></script>
<script
src=
"public/lib/sigma/plugins/sigma.plugins.dragNodes.min.js"
></script>
<script
src=
"public/lib/ace/ace.js"
></script>
<script
src=
"public/lib/ace/ext-language_tools.js"
></script>
<script
src=
"public/lib/Chart-2.1.3.min.js"
></script>
<script
src=
"public/algorithm_visualizer.min.js"
></script>
<script>
(
function
(
i
,
s
,
o
,
g
,
r
,
a
,
m
)
{
i
[
'
GoogleAnalyticsObject
'
]
=
r
;
i
[
r
]
=
i
[
r
]
||
function
()
{
(
i
[
r
].
q
=
i
[
r
].
q
||
[]).
push
(
arguments
)
},
i
[
r
].
l
=
1
*
new
Date
();
a
=
s
.
createElement
(
o
),
m
=
s
.
getElementsByTagName
(
o
)[
0
];
a
.
async
=
1
;
a
.
src
=
g
;
m
.
parentNode
.
insertBefore
(
a
,
m
)
})(
window
,
document
,
'
script
'
,
'
https://www.google-analytics.com/analytics.js
'
,
'
ga
'
);
ga
(
'
create
'
,
'
UA-78128848-1
'
,
'
auto
'
);
ga
(
'
send
'
,
'
pageview
'
);
</script>
a
.
async
=
1
;
a
.
src
=
g
;
m
.
parentNode
.
insertBefore
(
a
,
m
)
})(
window
,
document
,
'
script
'
,
'
https://www.google-analytics.com/analytics.js
'
,
'
ga
'
);
ga
(
'
create
'
,
'
UA-78128848-1
'
,
'
auto
'
);
ga
(
'
send
'
,
'
pageview
'
);
</script>
</body>
</html>
js/dom/setup/setup_top_menu.js
浏览文件 @
a4d1f33c
...
...
@@ -8,11 +8,11 @@ const TopMenu = require('../top_menu');
module
.
exports
=
()
=>
{
// shared
$
(
'
#shared
'
).
mouseup
(
function
()
{
$
(
'
#shared
'
).
mouseup
(
function
()
{
$
(
this
).
select
();
});
$
(
'
#btn_share
'
).
click
(
function
()
{
$
(
'
#btn_share
'
).
click
(
function
()
{
const
$icon
=
$
(
this
).
find
(
'
.fa-share
'
);
$icon
.
addClass
(
'
fa-spin fa-spin-faster
'
);
...
...
@@ -27,12 +27,11 @@ module.exports = () => {
// control
const
$btnRun
=
$
(
'
#btn_run
'
);
const
$btnRun
=
$
(
'
#btn_run
'
);
const
$btnTrace
=
$
(
'
#btn_trace
'
);
const
$btnPause
=
$
(
'
#btn_pause
'
);
const
$btnPrev
=
$
(
'
#btn_prev
'
);
const
$btnNext
=
$
(
'
#btn_next
'
);
const
$btnDesc
=
$
(
'
#btn_desc
'
);
const
$btnPrev
=
$
(
'
#btn_prev
'
);
const
$btnNext
=
$
(
'
#btn_next
'
);
// initially, control buttons are disabled
TopMenu
.
disableFlowControl
();
...
...
@@ -75,18 +74,11 @@ module.exports = () => {
// description & trace
$btnDesc
.
click
(()
=>
{
$
(
'
.tab_container > .tab
'
).
removeClass
(
'
active
'
);
$
(
'
#tab_desc
'
).
addClass
(
'
active
'
);
$
(
'
.tab_bar > button
'
).
click
(
function
()
{
$
(
'
.tab_bar > button
'
).
removeClass
(
'
active
'
);
$btnDesc
.
addClass
(
'
active
'
);
});
$btnTrace
.
click
(()
=>
{
$
(
'
.tab_container > .tab
'
).
removeClass
(
'
active
'
);
$
(
'
#tab_module
'
).
addClass
(
'
active
'
);
$
(
'
.tab_bar > button
'
).
removeClass
(
'
active
'
);
$btnTrace
.
addClass
(
'
active
'
);
$
(
this
).
addClass
(
'
active
'
);
$
(
$
(
this
).
attr
(
'
data-target
'
)).
addClass
(
'
active
'
);
});
};
public/algorithm_visualizer.js
浏览文件 @
a4d1f33c
此差异已折叠。
点击以展开。
public/algorithm_visualizer.js.map
浏览文件 @
a4d1f33c
此差异已折叠。
点击以展开。
public/algorithm_visualizer.min.js
浏览文件 @
a4d1f33c
此差异已折叠。
点击以展开。
public/algorithm_visualizer.min.js.map
浏览文件 @
a4d1f33c
此差异已折叠。
点击以展开。
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录