فرم ایجاد کارت کلینیک
`;
document.getElementById('generatedCode').textContent = htmlCode;
document.getElementById('codeContainer').style.display = 'block';
}
function copyCode(){
navigator.clipboard.writeText(document.getElementById('generatedCode').textContent);
alert("کد کاپی شد ✅");
}
function sendEmail(){
const subject="کد HTML کلینیک و اپاینتمنت";
const body=document.getElementById('generatedCode').textContent;
window.location.href=`mailto:Info.afghair@gmail.com?subject=${encodeURIComponent(subject)}&body=${encodeURIComponent(body)}`;
}
function clearForm(){ clinicForm.reset(); codeContainer.style.display='none'; }