Browse:
Selected Symbols
| Symbol | Traditional Meaning | My Notes (How to use) |
|---|
Add Custom Symbol
Artistic Concept Sheet
Project: Untitled Project
Date:
Date:
Notes:
Symbolism Plan
| Symbol | Traditional Meaning | Application Notes |
|---|
No symbols found matching your criteria.
'; return; } filtered.forEach(item => { // Check if already in project const inProject = projectList.some(p => p.id === item.id); const card = document.createElement('div'); card.className = `symbol-card cat-${item.cat}`; card.innerHTML = `
${item.name}
${item.cat}
${item.meaning}
`;
container.appendChild(card);
});
}
// --- Project Logic ---
function addToProject(id) {
const item = libraryData.find(i => i.id === id);
if (item && !projectList.some(p => p.id === id)) {
projectList.push({ ...item, userNotes: "" }); // Clone and add notes field
updateProjectBadge();
renderLibrary(); // Re-render to disable button
renderProjectList();
// Simple visual feedback
const btn = document.querySelector(`.tab-btn[onclick*="project"]`);
btn.style.background = "#d1c4e9"; // flash light purple
setTimeout(() => btn.style.background = "", 300);
}
}
function addCustom() {
const name = document.getElementById('custom-name').value.trim();
const meaning = document.getElementById('custom-meaning').value.trim();
if (name && meaning) {
const newId = 1000 + Math.floor(Math.random() * 9000); // Random ID for custom
projectList.push({
id: newId,
name: name,
cat: "Custom",
meaning: meaning,
userNotes: ""
});
document.getElementById('custom-name').value = '';
document.getElementById('custom-meaning').value = '';
updateProjectBadge();
renderProjectList();
}
}
function removeFromProject(index) {
projectList.splice(index, 1);
updateProjectBadge();
renderLibrary(); // Re-enable buttons
renderProjectList();
}
function updateUserNote(index, value) {
projectList[index].userNotes = value;
}
function updateProjectBadge() {
document.getElementById('count-badge').innerText = projectList.length;
}
function renderProjectList() {
const tbody = document.getElementById('project-tbody');
tbody.innerHTML = '';
if (projectList.length === 0) {
tbody.innerHTML = '