Symbolism Idea List for Art

Browse:

Selected Symbols

Symbol Traditional Meaning My Notes (How to use)

Add Custom Symbol

Artistic Concept Sheet

Project: Untitled Project
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 = 'No symbols added yet. Select from Library or add custom items.'; return; } projectList.forEach((item, index) => { const tr = document.createElement('tr'); tr.innerHTML = ` ${item.name} ${item.meaning} `; tbody.appendChild(tr); }); } // --- PDF Export --- function generatePDF() { const template = document.getElementById('symbol-pdf-template'); const tbody = document.getElementById('pdf-tbody'); // Populate Meta document.getElementById('pdf-title').innerText = document.getElementById('proj-title').value || "Untitled Project"; document.getElementById('pdf-notes').innerText = document.getElementById('proj-notes').value || "No general notes."; document.getElementById('pdf-date').innerText = new Date().toLocaleDateString(); // Populate Table tbody.innerHTML = ''; if(projectList.length === 0) { tbody.innerHTML = 'No symbols selected.'; } else { projectList.forEach(item => { tbody.innerHTML += ` ${item.name} ${item.meaning} ${item.userNotes || "-"} `; }); } // Show template momentarily template.style.display = 'block'; const opt = { margin: 0.5, filename: 'Art_Symbolism_Sheet.pdf', image: { type: 'jpeg', quality: 0.98 }, html2canvas: { scale: 2 }, jsPDF: { unit: 'in', format: 'letter', orientation: 'portrait' } }; html2pdf().set(opt).from(template).save().then(() => { template.style.display = 'none'; }); } return { switchTab, renderLibrary, addToProject, addCustom, removeFromProject, updateUserNote, generatePDF }; })();
Scroll to Top