更新最新代码
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
function myFunction() {
|
||||
document.getElementById("myDropdown").classList.toggle("show");
|
||||
}
|
||||
// 函数来显示任务详情
|
||||
function showDetails() {
|
||||
document.getElementById("taskDetails").style.display = "block";
|
||||
document.getElementById("taskDivision").style.display = "none";
|
||||
}
|
||||
// 函数来显示任务分工
|
||||
function showDivision() {
|
||||
document.getElementById("taskDivision").style.display = "block";
|
||||
document.getElementById("taskDetails").style.display = "none";
|
||||
}
|
||||
// 点击下拉以外的地方隐藏下拉菜单
|
||||
window.onclick = function(event) {
|
||||
if (!event.target.matches('.dropbtn1')) {
|
||||
var dropdowns = document.getElementsByClassName("dropdown-content1");
|
||||
for (var i = 0; i < dropdowns.length; i++) {
|
||||
var openDropdown = dropdowns[i];
|
||||
if (openDropdown.classList.contains('show')) {
|
||||
openDropdown.classList.remove('show');
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user