mirror of
https://gitee.com/coder-xiaomo/algorithm-visualization
synced 2025-01-10 11:48:18 +08:00
排序状态下添加停止按钮;样式小调整
This commit is contained in:
parent
9ddeee28e7
commit
3184d28285
@ -46,14 +46,16 @@ body {
|
||||
--color-mode: "light";
|
||||
--color-dark: #141414;
|
||||
--color-dark-alpha: rgba(0, 0, 0, 0.1);
|
||||
--color-dark-filter: brightness(0.5);
|
||||
--color-dark-console: #323232;
|
||||
--color-dark-text-input-filter: invert(1);
|
||||
--color-dark-filter: brightness(0.5);
|
||||
|
||||
/* --color-light: #efefef; */
|
||||
--color-light: #b4b4b4;
|
||||
--color-light-alpha: rgba(255, 255, 255, 0.9);
|
||||
--color-light-filter: none;
|
||||
--color-light-console: #cccccc;
|
||||
--color-light-text-input-filter: initial;
|
||||
--color-light-filter: none;
|
||||
|
||||
--background: #efefef;
|
||||
--text-color: #141414;
|
||||
@ -61,6 +63,7 @@ body {
|
||||
--button-color: var(--color-light);
|
||||
--border-color: var(--color-dark-alpha);
|
||||
--console-background: var(--color-light-console);
|
||||
--text-input-filter: var(--color-light-text-input-filter);
|
||||
--filter: var(--color-light-filter);
|
||||
}
|
||||
|
||||
@ -76,6 +79,7 @@ body {
|
||||
--button-color: var(--color-dark);
|
||||
--border-color: var(--color-light-alpha);
|
||||
--console-background: var(--color-dark-console);
|
||||
--text-input-filter: var(--color-dark-text-input-filter);
|
||||
--filter: var(--color-dark-filter);
|
||||
}
|
||||
}
|
||||
@ -87,6 +91,7 @@ body {
|
||||
--button-color: var(--color-dark);
|
||||
--border-color: var(--color-light-alpha);
|
||||
--console-background: var(--color-dark-console);
|
||||
--text-input-filter: var(--color-dark-text-input-filter);
|
||||
--filter: var(--color-dark-filter);
|
||||
}
|
||||
|
||||
@ -96,6 +101,13 @@ body {
|
||||
transition: background 500ms ease-in-out, color 200ms ease;
|
||||
}
|
||||
|
||||
input[type="text"],
|
||||
input[type="button"],
|
||||
button,
|
||||
select {
|
||||
filter: var(--text-input-filter);
|
||||
}
|
||||
|
||||
/* 导航栏 */
|
||||
#header {
|
||||
width: 100%;
|
||||
|
@ -46,8 +46,8 @@ var settings = {
|
||||
}
|
||||
},
|
||||
console: {
|
||||
maxLine: -1,
|
||||
consoleList: [], // 输出列表的数组,不要修改
|
||||
maxLine: -1, // 最大输出的行数,超出后较早的记录将被丢掉 -1 表示不限制
|
||||
consoleList: [], // 输出列表的数组,不要修改
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -31,6 +31,9 @@
|
||||
<!-- 排序算法按钮 -->
|
||||
</div>
|
||||
<div id="console-div" style="display: none;">
|
||||
<div style="text-align: center;">
|
||||
<input type="button" value="停止排序" onclick="location.reload();" />
|
||||
</div>
|
||||
<div id="console-current-algorithm"></div>
|
||||
<div id="console-current-array"></div>
|
||||
<div id="console-logs"></div>
|
||||
|
Loading…
Reference in New Issue
Block a user