حاسبة الطلاء

احسب بدقة كمية الطلاء التي تحتاجها لأي غرفة أو مشروع. احصل على تقديرات دقيقة لتغطية الطلاء والتكاليف والمواد بما في ذلك البطانة والفرش ومستلزمات الطلاء.

🏠 إعداد الغرفة

📏 أبعاد الغرفة

🚪 الأبواب والنوافذ

🎨 خيارات الطلاء

🎨 خصائص الطلاء

💰 تقديرات التكلفة

🎨 نتائج حساب الطلاء

المساحة الكلية
0
قدم مربع
الطلاء المطلوب
0
جالون
البرايمر المطلوب
0
جالون
التكلفة الإجمالية
0$
المواد فقط

📊 تفصيل دقيق

السطح المساحة (قدم مربع) كمية الدهان المطلوبة التكلفة

🛒 قائمة التسوق

🏠 تخطط لرحلة تجديد المنزل؟

اعثر على أفضل العروض لرحلات التسوق لتحسين المنزل وجولات الإلهام التصميمية

Smart Nation's Core Infrastructure: WIA Code

توصيل بالطائرات بدون طيار والروبوتات، القيادة الذاتية، الإنقاذ في حالات الطوارئ والمزيد - جرب المستقبل لمدة 30 يوماً، مجاناً تماماً لبلدك!

تعرف أكثر عن رمز WIA

🤖 اختر مساعدك الذكي

💬 شات جي بي تي
الأكثر تنوعاً • الأفضل لتوصيات ألوان الطلاء
🧠 كلود
أفضل تحليل • مثالي لتخطيط المشاريع
جيميناي مجاني
حدود يومية مجانية • إرشادات الطلاء مدمجة
`; printWindow.document.write(printContent); printWindow.document.close(); printWindow.print(); } // Show OTA section function showOTA() { const otaContainer = document.getElementById('otaContainer'); if (otaContainer && (otaContainer.style.display === 'none' || !otaContainer.style.display)) { otaContainer.style.display = 'block'; setTimeout(() => { const otaHeader = document.querySelector('.ota-header h3'); if (otaHeader) { otaHeader.style.animation = 'pulse 1s ease-in-out'; } }, 100); } } // AI Assistant Functions function openAIModal() { const modal = document.getElementById('aiModal'); modal.classList.add('show'); if (aiModalState.apiKey && aiModalState.currentView === 'gemini') { showGeminiChat(); } else { showAISelector(); } updateAPIKeyStatus(); } function closeAIModal() { const modal = document.getElementById('aiModal'); modal.classList.remove('show'); setTimeout(() => { aiModalState.currentView = 'selector'; showAISelector(); }, 300); } function showAISelector() { document.getElementById('aiModalTitle').textContent = 'Choose Your AI Assistant'; document.getElementById('aiSelector').style.display = 'flex'; document.getElementById('geminiChat').style.display = 'none'; document.getElementById('apiKeySetup').style.display = 'none'; aiModalState.currentView = 'selector'; } function showGeminiChat() { document.getElementById('aiModalTitle').innerHTML = ' Gemini AI Assistant'; document.getElementById('aiSelector').style.display = 'none'; document.getElementById('geminiChat').style.display = 'flex'; document.getElementById('apiKeySetup').style.display = 'none'; aiModalState.currentView = 'gemini'; const chatMessages = document.getElementById('chatMessages'); if (!chatMessages.innerHTML.trim()) { addMessage('assistant', `Hello! I can help you with: • Paint color selection and matching • Surface preparation techniques • Paint type recommendations • Application tips and techniques • Cost optimization strategies • Troubleshooting paint problems What painting question can I assist you with?`); } } function showAPIKeySetup() { document.getElementById('aiModalTitle').textContent = 'إعداد Gemini API'; document.getElementById('aiSelector').style.display = 'none'; document.getElementById('geminiChat').style.display = 'none'; document.getElementById('apiKeySetup').style.display = 'block'; aiModalState.currentView = 'setup'; } function selectAI(aiType) { switch(aiType) { case 'chatgpt': const toolContext = `I need help with paint calculations and home painting using the Paint Calculator tool. This is a home improvement utility on WIA Code platform with room measurement and paint estimation features.`; const chatUrl = `https://chat.openai.com/?q=${encodeURIComponent(toolContext)}`; window.open(chatUrl, '_blank'); closeAIModal(); trackEvent('ai_selection', { ai_type: 'chatgpt' }); break; case 'claude': const claudeContext = `I need help with paint calculations and home painting using the Paint Calculator tool. This is a home improvement utility on WIA Code platform with room measurement and paint estimation features.`; const claudeUrl = `https://claude.ai/chat?q=${encodeURIComponent(claudeContext)}`; window.open(claudeUrl, '_blank'); closeAIModal(); trackEvent('ai_selection', { ai_type: 'claude' }); break; case 'gemini': if (!aiModalState.apiKey) { showAPIKeySetup(); } else { showGeminiChat(); } trackEvent('ai_selection', { ai_type: 'gemini' }); break; } } function saveGeminiApiKey() { const apiKey = document.getElementById('geminiApiKeyInput').value.trim(); if (apiKey) { localStorage.setItem('geminiApiKey', apiKey); aiModalState.apiKey = apiKey; showGeminiChat(); updateAPIKeyStatus(); } else { alert('يرجى إدخال مفتاح API صالح'); } } function updateAPIKeyStatus() { const statusEl = document.getElementById('apiKeyStatus'); if (aiModalState.apiKey) { statusEl.innerHTML = 'تغيير مفتاح واجهة برمجة التطبيقات'; } else { statusEl.textContent = 'لم يتم تعيين مفتاح API'; } } function addMessage(type, content) { const chatMessages = document.getElementById('chatMessages'); const messageDiv = document.createElement('div'); messageDiv.className = `message ${type}`; if (type === 'user') { messageDiv.innerHTML = `You: ${content}`; } else { messageDiv.innerHTML = `✨ Gemini:
${content.replace(/\n/g, '
')}`; } chatMessages.appendChild(messageDiv); chatMessages.scrollTop = chatMessages.scrollHeight; } async function sendToGemini() { const input = document.getElementById('geminiInput'); const message = input.value.trim(); if (!message) return; addMessage('user', message); input.value = ''; const loadingMsg = document.createElement('div'); loadingMsg.className = 'message assistant'; loadingMsg.innerHTML = '✨ Gemini:
Thinking...'; loadingMsg.id = 'loading-message'; document.getElementById('chatMessages').appendChild(loadingMsg); try { const contextData = paintState.calculations ? { totalArea: paintState.calculations.totalArea, paintNeeded: paintState.calculations.paintNeeded, totalCost: paintState.calculations.totalCost, roomCount: paintState.rooms.length } : {}; const response = await fetch(`https://generativelanguage.googleapis.com/v1beta/models/gemini-pro:generateContent?key=${aiModalState.apiKey}`, { method: 'إرسال', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ contents: [{ parts: [{ text: `Context: User is using Paint Calculator tool on WIA Code platform. Current project data: ${JSON.stringify(contextData)} Calculator provides comprehensive paint estimation for home projects User question: ${message}` }] }], generationConfig: { temperature: 0.7, maxOutputTokens: 1000 } }) }); const data = await response.json(); document.getElementById('loading-message').remove(); if (data.candidates && data.candidates[0] && data.candidates[0].content) { const reply = data.candidates[0].content.parts[0].text; addMessage('assistant', reply); } else { addMessage('assistant', 'Sorry, I could not generate a response. Please try again.'); } } catch (error) { document.getElementById('loading-message')?.remove(); if (error.message.includes('مفتاح API')) { addMessage('error', 'Invalid API key. Please check your API key and try again.'); showAPIKeySetup(); } else { addMessage('error', 'Failed to connect to Gemini. Please check your internet connection and try again.'); } } } // Utility functions function showNotification(message, type = 'success') { const toast = document.createElement('div'); toast.className = `toast ${type}`; toast.textContent = message; document.body.appendChild(toast); setTimeout(() => { toast.remove(); }, 3000); } function trackEvent(eventName, data = {}) { if (typeof gtag !== 'undefined') { gtag('event', eventName, { 'event_category': 'business', 'event_label': 'Paint Calculator', ...data }); } } async function updateToolCount() { try { const response = await fetch('/api/tool-count.php'); const data = await response.json(); document.querySelectorAll('.dynamic-tools-count').forEach(el => { el.textContent = `${data.count}+ free online tools in 206 languages. No signup, no fees, just tools that work.`; }); document.querySelectorAll('.dynamic-count').forEach(el => { const prefix = el.getAttribute('data-text') || ''; const suffix = el.getAttribute('data-suffix') || ''; const icon = el.textContent.split(' ')[0] || ''; el.textContent = `${icon} ${prefix} ${data.count}+ ${suffix}`; }); } catch (error) { const fallbackCount = 333; document.querySelectorAll('.dynamic-tools-count').forEach(el => { el.textContent = `${fallbackCount}+ free online tools in 206 languages. No signup, no fees, just tools that work.`; }); document.querySelectorAll('.dynamic-count').forEach(el => { const prefix = el.getAttribute('data-text') || ''; const suffix = el.getAttribute('data-suffix') || ''; const icon = el.textContent.split(' ')[0] || ''; el.textContent = `${icon} ${prefix} ${fallbackCount}+ ${suffix}`; }); } } function updateCurrentYear() { const currentYear = new Date().getFullYear(); document.querySelectorAll('.current-year').forEach(el => { el.textContent = currentYear; }); } // Event listeners document.addEventListener('DOMContentLoaded', function() { // AI button event document.getElementById('aiBtn').addEventListener('click', openAIModal); // Modal outside click document.getElementById('aiModal').addEventListener('click', function(e) { if (e.target === this) { closeAIModal(); } }); // Keyboard support document.addEventListener('keydown', function(e) { if (e.key === 'إدخال') { const geminiInput = document.getElementById('geminiInput'); if (document.activeElement === geminiInput) { sendToGemini(); } } else if (e.key === 'خروج') { closeAIModal(); } }); // Input validation const measurementInputs = document.querySelectorAll('.measurement'); measurementInputs.forEach(input => { input.addEventListener('input', function() { if (this.value < 0) this.value = 0; }); }); const currencyInputs = document.querySelectorAll('.currency'); currencyInputs.forEach(input => { input.addEventListener('input', function() { this.value = this.value.replace(/[^0-9.]/g, ''); }); }); updateAPIKeyStatus(); updateCurrentYear(); updateToolCount(); }); // Analytics window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'G-XXXXXXXXX'); trackEvent('page_view', { tool: 'Paint Calculator', category: 'business' });

💡 نصائح احترافية للطلاء

📐
قياسات دقيقة
قم بقياس كل جدار على حدة واطرح مساحات الأبواب/النوافذ. أضف 10٪ طلاء إضافي للتحسينات والصيانة المستقبلية.
🎨
تغطية الطلاء عالي الجودة
الدهانات عالية الجودة عادةً تغطي مساحة أكبر لكل جالون وتتطلب طبقات أقل، مما يجعلها أكثر اقتصادية.
🖌️
الأساس ضروري
استخدم دائماً الأساس عند الطلاء فوق الألوان الداكنة، الجدران الجديدة، أو عند تغيير نوع الطلاء. يضمن ذلك تغطية أفضل ودقة في اللون.
وقت التجفيف المناسب
اسمح بوقت تجفيف مناسب بين الطبقات (عادةً 2-4 ساعات). التسرع في هذه الخطوة قد يؤدي إلى تشطيب وتغطية سيئة.
🧽
تحضير السطح
نظف الجدران، املأ الثقوب، واصقل البقع الخشنة قبل الطلاء. العمل التحضيري المناسب يشكل 80٪ من تحقيق النتائج الاحترافية.
💰
تخطيط الميزانية
تكلفة الطلاء عادةً 15-30٪ من عمل الطلاء الاحترافي. ضع في الاعتبار الفرش، الرولات، أقمشة الحماية، والمستلزمات الأخرى.