This commit is contained in:
sjk
2026-01-06 19:36:42 +08:00
parent 15b579d64a
commit 19942144fb
261 changed files with 24034 additions and 5477 deletions

View File

@@ -0,0 +1,35 @@
let selectedProducts = [];
function toggleSelect(card) {
const productId = card.dataset.id;
if (card.classList.contains('selected')) {
card.classList.remove('selected');
selectedProducts = selectedProducts.filter(id => id !== productId);
} else {
card.classList.add('selected');
selectedProducts.push(productId);
}
}
function goGenerate() {
if (selectedProducts.length === 0) {
showToast();
return;
}
localStorage.setItem('selectedProducts', JSON.stringify(selectedProducts));
window.location.href = 'generate-content.html';
}
function goToProfile() {
window.location.href = 'profile.html';
}
function showToast() {
const overlay = document.getElementById('toastOverlay');
overlay.style.display = 'flex';
setTimeout(() => {
overlay.style.display = 'none';
}, 2000);
}