document.querySelectorAll('.dropdown-item').forEach(item => { item.addEventListener('click', event => { event.preventDefault(); const langCode = item.getAttribute('data-lang').split('_')[0]; // استخراج الكود الرئيسي (مثل ar, en) // تغيير اسم اللغة المعروضة في الزر const selectedLanguageName = item.textContent.trim(); document.querySelector('.language-dropdown span').textContent = selectedLanguageName; // تشغيل ترجمة جوجل doGTranslate(langCode); }); }); // دالة لتشغيل الترجمة function doGTranslate(lang_pair) { if (lang_pair.includes('|')) { lang_pair = lang_pair.split('|')[1]; } var goog_element = document.getElementById('google_translate_element_modern'); if (goog_element) { var te_menu_value = goog_element.querySelector('.goog-te-menu-value'); if (te_menu_value) { te_menu_value.click(); var te_menu_items = document.querySelectorAll('.goog-te-menu-item span'); te_menu_items.forEach(item => { if (item.textContent.toLowerCase().includes(lang_pair.toLowerCase())) { item.click(); } }); } } else { // إذا لم يتم العثور على عنصر ترجمة جوجل الحديث، استخدم الطريقة الافتراضية var g_combo = document.querySelector('.goog-te-combo'); if (g_combo) { g_combo.value = lang_pair; g_combo.dispatchEvent(new Event('change')); } } }
  • Ready to turn your digital designs into reality? Check out our latest video on "3D Printing from Revit | Snapmaker Artisan 3D printer for Architects"!

    In this exciting tutorial, I’ll take you step-by-step through the process of transforming your Revit models into stunning physical 3D prints using the innovative Snapmaker Artisan. Discover why physical models are making a comeback, get tips on prepping your Revit files, and see the magic of 3D printing in action!

    As an architect, designer, or student, this video is a must-watch to elevate your projects! Let’s bring your ideas to life!

    Watch it here:
    https://www.youtube.com/watch?v=cLgcdT84gGQ

    #3DPrinting #Revit #Architecture #Snapmaker #Design
    🚀 Ready to turn your digital designs into reality? Check out our latest video on "3D Printing from Revit | Snapmaker Artisan 3D printer for Architects"! In this exciting tutorial, I’ll take you step-by-step through the process of transforming your Revit models into stunning physical 3D prints using the innovative Snapmaker Artisan. Discover why physical models are making a comeback, get tips on prepping your Revit files, and see the magic of 3D printing in action! As an architect, designer, or student, this video is a must-watch to elevate your projects! Let’s bring your ideas to life! Watch it here: https://www.youtube.com/watch?v=cLgcdT84gGQ #3DPrinting #Revit #Architecture #Snapmaker #Design
    0 Комментарии ·0 Поделились
CGShares https://cgshares.com