mirror of
https://gitee.com/coder-xiaomo/algorithm-visualization
synced 2025-09-09 22:21:39 +08:00
完成选择排序算法;样式小调整
This commit is contained in:
@@ -73,7 +73,11 @@ function initialize() {
|
||||
ctrlBtn.innerHTML = sortClassInfo['name']
|
||||
ctrlBtn.onclick = function () {
|
||||
controlDiv.style.display = 'none'
|
||||
d3.select("#console-div").style("display", "")
|
||||
d3.select("#console-div")
|
||||
.style("display", "")
|
||||
d3.select("#console-current-algorithm")
|
||||
.style("text-align", "center")
|
||||
.html(sortClassInfo['name'])
|
||||
sortClass.doSortWithAnimation(elementId)
|
||||
}
|
||||
DOMFragment.appendChild(ctrlBtn)
|
||||
|
Reference in New Issue
Block a user