style: polish responsive typography and transcript states
Deploy Speaking Practice / deploy (push) Successful in 2m13s
Deploy Speaking Practice / deploy (push) Successful in 2m13s
This commit is contained in:
1 parent
cd29764963
commit
67dcea21d0
10 files changed
+291
-75
No files matched your search
@@ -250,7 +250,8 @@ function createVideoCard(video) {
|
||||
statValues[2].textContent = `${difficultCount}`;
|
||||
|
||||
const favorite = card.querySelector(".home-favorite");
|
||||
favorite.textContent = isFavorite ? "已收藏" : "收藏";
|
||||
favorite.textContent = isFavorite ? "♥" : "♡";
|
||||
favorite.setAttribute("aria-label", isFavorite ? "取消收藏素材" : "收藏素材");
|
||||
favorite.classList.toggle("active", isFavorite);
|
||||
favorite.addEventListener("click", (event) => {
|
||||
event.preventDefault();
|
||||
|
||||
Reference in new issue
Block a user