-
© 2026 台灣教育處方籤. All Rights Reserved.
+
+
+
台灣教育處方籤
+
一個由關心台灣教育的學生與開發者發起的專案。
+
+
+
+ © 2026 台灣教育處方籤. All Rights Reserved.
+
@@ -152,7 +173,8 @@
item.clusters.forEach(cl => allClusters.add(cl));
const examplesHtml = item.examples.map(ex => `
${ex}`).join('');
const clustersHtml = item.clusters.map(cl => `
${cl}`).join('');
- itemsHtml += `
${item.description}
如何展現這項素養?
相關大學學群
${clustersHtml}
`;
+ const contentId = `content-${item.name.replace(/\s+/g, '-')}`;
+ itemsHtml += `
${item.description}
如何展現這項素養?
相關大學學群
${clustersHtml}
`;
});
column.innerHTML = `
${itemsHtml}
`;
@@ -164,16 +186,11 @@
document.querySelectorAll('.accordion-toggle').forEach(button => {
button.addEventListener('click', () => {
- const content = button.nextElementSibling;
+ const card = button.parentElement;
const icon = button.querySelector('i');
- button.parentElement.classList.toggle('is-open');
- if (content.style.maxHeight) {
- content.style.maxHeight = null;
- if (icon) icon.style.transform = 'rotate(0deg)';
- } else {
- content.style.maxHeight = content.scrollHeight + "px";
- if (icon) icon.style.transform = 'rotate(180deg)';
- }
+ const isOpen = card.classList.toggle('is-open');
+ button.setAttribute('aria-expanded', isOpen);
+ if (icon) icon.style.transform = isOpen ? 'rotate(180deg)' : 'rotate(0deg)';
});
});
}
diff --git a/career-exploration/index.html b/career-exploration/index.html
index 7a0157c..4bee25f 100644
--- a/career-exploration/index.html
+++ b/career-exploration/index.html
@@ -108,6 +108,7 @@
未來生涯GPS
進階資源探索區
公民科技專案地圖
+ 關於我們