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')); } } }
  • Ever find yourself battling your inner demons? Imagine turning that struggle into an epic showdown, wielding fire as your weapon. Embracing your fears instead of burying them can be powerful. What if you took a moment each day to confront a small fear, visualizing it as a hostile force? Picture yourself unleashing your fire powers, transforming anxiety into confidence.

    This approach isn’t just about fantasy; it’s about taking actionable steps toward self-improvement. Light that inner flame! What are some fears you want to face today?

    #InnerStrength #FaceYourFears #FireMagic #SelfImprovement #MentalHealthMatters
    Ever find yourself battling your inner demons? Imagine turning that struggle into an epic showdown, wielding fire as your weapon. Embracing your fears instead of burying them can be powerful. What if you took a moment each day to confront a small fear, visualizing it as a hostile force? Picture yourself unleashing your fire powers, transforming anxiety into confidence. This approach isn’t just about fantasy; it’s about taking actionable steps toward self-improvement. Light that inner flame! What are some fears you want to face today? #InnerStrength #FaceYourFears #FireMagic #SelfImprovement #MentalHealthMatters
    0 Comentários ·0 Compartilhamentos
CGShares https://cgshares.com