1
0
mirror of https://gitee.com/coder-xiaomo/algorithm-visualization synced 2025-09-09 22:21:39 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee

完成选择排序算法;样式小调整

This commit is contained in:
2022-05-18 19:45:36 +08:00
parent e3f47b5bc3
commit 4e7a355e93
4 changed files with 28 additions and 5 deletions

View File

@@ -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)