Skip to content

Commit

Permalink
add over title
Browse files Browse the repository at this point in the history
  • Loading branch information
linyisonger committed Oct 12, 2024
1 parent 5e6c469 commit 81da2f8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions 078.你更喜欢谁.html
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,9 @@ <h2>你更喜欢哪个?</h2>
// 确认按钮
let confirmBtnDom = document.querySelector(".confirm-btn");

// 标题
let titleDom = document.querySelector(".pk-container h2");

nextStar(leftCardDom);
nextStar(rightCardDom);
// 下一个明星
Expand All @@ -237,6 +240,7 @@ <h2>你更喜欢哪个?</h2>
document
.querySelector(".pk-card.like")
.classList.remove("like");
titleDom.textContent = "你更喜欢TA";
}, 0.5);
return;
}
Expand Down

0 comments on commit 81da2f8

Please sign in to comment.