Diferencia entre revisiones de «Página principal»
Sin resumen de edición |
Sin resumen de edición |
||
(No se muestran 17 ediciones intermedias del mismo usuario) | |||
Línea 1: | Línea 1: | ||
< | <html> | ||
<script> | |||
var page; | |||
if( /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ) { | |||
= | page = 'https://energyeducation.ca/simulations/frontpage/SpanishFrontPageMobile.html'; | ||
} else { | |||
page = 'https://energyeducation.ca/simulations/frontpage/SpanishFrontPage.html'; | |||
} | |||
var xhr= new XMLHttpRequest(); | |||
xhr.open('GET', page, true); | |||
xhr.onreadystatechange= function() { | |||
if (this.readyState!==4) return; | |||
if (this.status!==200) return; | |||
document.getElementById('mw-content-text').innerHTML= this.responseText; | |||
if (page == 'https://energyeducation.ca/simulations/frontpage/SpanishFrontPage.html') { | |||
var script = document.createElement('script'); | |||
script.src = 'https://energyeducation.ca/simulations/frontpage/SpanishFrontPage.js'; | |||
document.head.appendChild(script); | |||
document.getElementById('imagelink').href = "https://energyeducation.ca/Enciclopedia_de_Energia/index.php/Generación_de_energía_eléctrica"; | |||
} | |||
}; | |||
xhr.send(); | |||
</script> | |||
</html> |
Revisión actual - 02:50 25 ago 2021