Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 18 additions & 1 deletion script.js
Original file line number Diff line number Diff line change
Expand Up @@ -362,4 +362,21 @@ style.textContent = `
50% { transform: translateY(-20px) rotate(180deg); opacity: 1; }
}
`;
document.head.appendChild(style);
document.head.appendChild(style);
// Auto-fill contact form subject based on selected pricing plan
document.addEventListener('DOMContentLoaded', () => {
document.querySelectorAll('.pricing-card a[href="#contact"]').forEach(btn => {
btn.addEventListener('click', () => {
const card = btn.closest('.pricing-card');
if (!card) return;
const planName = card.querySelector('.pricing-header h3')?.textContent.trim();
const price = card.querySelector('.price .amount')?.textContent.trim();
const subjectInput = document.querySelector('#contact input[placeholder="Subject"]');
if (subjectInput && planName && price) {
subjectInput.value = `$${price} ${planName} Plan`;
subjectInput.focus();
}
});
});
});

Loading