update v1.1
This commit is contained in:
@@ -127,27 +127,6 @@ function initProductDetails() {
|
||||
});
|
||||
}
|
||||
|
||||
// Show product details modal
|
||||
function showProductDetails(pageNum) {
|
||||
const details = productDetails[pageNum];
|
||||
if (details) {
|
||||
document.getElementById('modalTitle').textContent = details.title;
|
||||
document.getElementById('modalDescription').textContent = details.description;
|
||||
document.getElementById('productModal').classList.add('show');
|
||||
}
|
||||
}
|
||||
|
||||
function hideProductDetails() {
|
||||
document.getElementById('productModal').classList.remove('show');
|
||||
}
|
||||
|
||||
// Close modal when clicking outside
|
||||
document.getElementById('productModal').addEventListener('click', function(e) {
|
||||
if (e.target === this) {
|
||||
hideProductDetails();
|
||||
}
|
||||
});
|
||||
|
||||
// Initialize
|
||||
initProductDetails();
|
||||
// Product details functionality moved to products.html
|
||||
// This file only handles flipbook navigation
|
||||
updatePages();
|
||||
Reference in New Issue
Block a user