modified: script.js

This commit is contained in:
IrisVega 2024-07-09 16:25:02 +08:00
parent 65c6da69f6
commit dcb98a2632
1 changed files with 4 additions and 4 deletions

View File

@ -36,10 +36,10 @@ $(document).ready(function() {
$(".tab").find(".addTab").before(newTabButton); $(".tab").find(".addTab").before(newTabButton);
$("body").append(newTabContent); $("body").append(newTabContent);
// 绑定新添加的选项卡按钮和删除按钮的事件 // 绑定新添加的选项卡按钮和删除按钮的事件
// $(".tabcontent").hide(); $(".tabcontent").hide();
// $("#" + newTabId).show(); $("#" + newTabId).show();
// $(".tablinks").removeClass("active"); $(".tablinks").removeClass("active");
// $(`.tablinks[data-tab="${newTabId}"]`).addClass("active"); $(`.tablinks[data-tab="${newTabId}"]`).addClass("active");
bindTabEvents(); bindTabEvents();
updateContentOpacity(slider.val()); updateContentOpacity(slider.val());
}); });