Created
January 25, 2019 23:09
-
-
Save parzibyte/f39a9b91f6f0fc680df8a867ccc029da to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const estilos = ["https://fonts.googleapis.com/css?family=Neucha|Cabin+Sketch", "<?php echo $urlBase ?>/css/bootstrap.min.css"]; | |
estilos.forEach(enlace => { | |
const linkFuente = document.createElement("link"); | |
linkFuente.rel = "stylesheet"; | |
linkFuente.href = enlace; | |
document.head.insertBefore(linkFuente, document.head.childNodes[document.head.childNodes.length - 1].nextSibling); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment