انضم إلى آلاف الشركات التي تثق بنظام انتيليكا لإدارة أعمالها

1
معلومات الشركة
2
إعدادات العمل
3
معلومات المالك

معلومات الشركة

أدخل المعلومات الأساسية عن شركتك

إعدادات العمل

قم بتكوين إعدادات العمل والضرائب

معلومات المالك

أدخل معلومات المالك وحساب المستخدم

if (!field.value.trim()) { field.classList.add('error'); isValid = false; if (!firstErrorField) { firstErrorField = field; } } else { field.classList.remove('error'); } }); // Special validation for password confirmation if (step === 3) { const password = document.querySelector('input[name="password"]'); const confirmPassword = document.querySelector('input[name="confirm_password"]'); if (password && confirmPassword && password.value !== confirmPassword.value) { confirmPassword.classList.add('error'); isValid = false; if (!firstErrorField) { firstErrorField = confirmPassword; } } } // Focus on first error field if (!isValid && firstErrorField) { firstErrorField.focus(); } return isValid; } // Form submission document.getElementById('business_register_form').addEventListener('submit', function(e) { // Don't prevent default immediately - let server handle validation // Just show loading state const submitBtn = document.getElementById('submitBtn'); submitBtn.innerHTML = '
جاري الإنشاء...'; submitBtn.disabled = true; submitBtn.classList.add('loading'); }); // Function to show notification function showNotification(message, type = 'info') { const notification = document.createElement('div'); notification.className = `notification ${type}`; notification.innerHTML = `
${message}
`; document.body.appendChild(notification); // Remove notification after 5 seconds setTimeout(() => { notification.remove(); }, 5000); } // Language switcher (Desktop) const desktopLanguageBtn = document.querySelector('.language-btn'); const desktopLanguageDropdown = document.querySelector('.language-dropdown'); if (desktopLanguageBtn && desktopLanguageDropdown) { desktopLanguageBtn.addEventListener('click', function() { desktopLanguageDropdown.classList.toggle('active'); }); // Close language dropdown when clicking outside document.addEventListener('click', function(e) { if (!e.target.closest('.language-switcher')) { desktopLanguageDropdown.classList.remove('active'); } }); } // Mobile Menu Functionality const mobileMenuBtn = document.querySelector('.mobile-menu-btn'); const mobileMenu = document.querySelector('.mobile-menu'); const mobileMenuOverlay = document.querySelector('.mobile-menu-overlay'); const mobileMenuClose = document.querySelector('.mobile-menu-close'); const body = document.body; function openMobileMenu() { mobileMenu.classList.add('active'); mobileMenuOverlay.classList.add('active'); mobileMenuBtn.classList.add('active'); body.style.overflow = 'hidden'; } function closeMobileMenu() { mobileMenu.classList.remove('active'); mobileMenuOverlay.classList.remove('active'); mobileMenuBtn.classList.remove('active'); body.style.overflow = ''; } // Event Listeners mobileMenuBtn.addEventListener('click', openMobileMenu); mobileMenuClose.addEventListener('click', closeMobileMenu); mobileMenuOverlay.addEventListener('click', closeMobileMenu); // Close menu when clicking on navigation links document.querySelectorAll('.mobile-nav-link').forEach(link => { link.addEventListener('click', closeMobileMenu); }); // Close menu when pressing Escape key document.addEventListener('keydown', function(e) { if (e.key === 'Escape' && mobileMenu.classList.contains('active')) { closeMobileMenu(); } }); // Mobile Language Switcher (Inside Menu) const mobileLanguageBtn = document.querySelector('.mobile-language-btn'); const mobileLanguageDropdown = document.querySelector('.mobile-language-dropdown'); if (mobileLanguageBtn && mobileLanguageDropdown) { mobileLanguageBtn.addEventListener('click', function(e) { e.preventDefault(); e.stopPropagation(); mobileLanguageDropdown.classList.toggle('active'); }); // Close dropdown when clicking outside document.addEventListener('click', function(event) { if (!mobileLanguageBtn.contains(event.target) && !mobileLanguageDropdown.contains(event.target)) { mobileLanguageDropdown.classList.remove('active'); } }); // Close dropdown when clicking on language options mobileLanguageDropdown.addEventListener('click', function(e) { if (e.target.tagName === 'A') { mobileLanguageDropdown.classList.remove('active'); } }); } // Close mobile menu on window resize window.addEventListener('resize', function() { if (window.innerWidth > 768 && mobileMenu.classList.contains('active')) { closeMobileMenu(); } }); // Language change functionality $(document).ready(function() { $('.change_lang').click(function() { window.location = "https://pos.suda-code.com/business/register?lang=" + $(this).attr('value'); }); });