Diferencia entre revisiones de «Plantilla:Navbar»

De Oroza RO Wiki
Ir a la navegación Ir a la búsqueda
Sin resumen de edición
Etiquetas: Reversión manual Revertido
Sin resumen de edición
Etiqueta: Revertido
Línea 19: Línea 19:
     </div>
     </div>


    <!-- Banderas y selector de idioma a la derecha -->
<!-- Banderas y selector de idioma a la derecha -->
    <div style="display: flex; align-items: center; gap: 12px;">
<div style="display: flex; align-items: center; gap: 12px;">
      <span style="font-size: 20px; color: white;">🌐</span>
  <span style="font-size: 20px; color: white;">🌐</span>
      <a href="#" onclick="changeLang('es')" title="Español"><img src="https://flagcdn.com/32x24/es.png" alt="ES" style="border-radius: 3px;"></a>
      <a href="#" onclick="changeLang('en')" title="English"><img src="https://flagcdn.com/32x24/us.png" alt="EN" style="border-radius: 3px;"></a>
      <a href="#" onclick="changeLang('pt')" title="Português"><img src="https://flagcdn.com/32x24/br.png" alt="PT" style="border-radius: 3px;"></a>


      <!-- Traductor oculto -->
  <!-- Español: Redirecciona -->
      <div id="google_translate_element" style="margin-left: -9999px; position: absolute;"></div>
  <a href="https://orozaro.com/wiki/index.php/P%C3%A1gina_principal" title="Español">
     </div>
     <img src="https://flagcdn.com/32x24/es.png" alt="ES" style="border-radius: 3px;">
   </div>
   </a>


   <!-- Google Translate Script -->
   <!-- Inglés: Muestra alerta -->
   <script type="text/javascript">
   <a href="#" onclick="alert('🔄 Traducción en proceso...'); return false;" title="English">
    function googleTranslateElementInit() {
     <img src="https://flagcdn.com/32x24/us.png" alt="EN" style="border-radius: 3px;">
      new google.translate.TranslateElement({
  </a>
        pageLanguage: 'es',
        includedLanguages: 'en,pt',
        layout: google.translate.TranslateElement.InlineLayout.SIMPLE
      }, 'google_translate_element');
     }
  </script>
  <script type="text/javascript" src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>


   <!-- Cambiar idioma al hacer clic -->
   <!-- Portugués: Muestra alerta -->
<script>
  <a href="#" onclick="alert('🔄 Traducción en proceso...'); return false;" title="Português">
  function changeLang(lang) {
    <img src="https://flagcdn.com/32x24/br.png" alt="PT" style="border-radius: 3px;">
    const tryChange = () => {
   </a>
      const combo = document.querySelector('.goog-te-combo');
</div>
      if (combo) {
        combo.value = lang;
        combo.dispatchEvent(new Event('change'));
      } else {
        setTimeout(tryChange, 100); // Intenta nuevamente hasta que esté listo
      }
    };
    tryChange();
   }
</script>




  <!-- Estilo para ocultar combo -->
  <style>
    .goog-te-gadget {
      font-size: 0 !important;
    }


    .goog-te-gadget .goog-te-combo {
      font-size: 12px !important;
      padding: 2px 4px;
      border-radius: 5px;
      border: 1px solid #ccc;
      color: black !important;
    }
  </style>
</html>
</html>

Revisión del 17:16 11 jun 2025