Created
December 19, 2019 16:35
-
-
Save BMU-Verlag/ee5e1b3832ea0b25630fc423d5e9280b 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
function initLanguageSelect() { | |
var url = "https://translate.yandex.net/api/v1.5/tr.json/getLangs?key=<API-Key>&ui=en"; | |
var xhttp = new XMLHttpRequest(); | |
xhttp.onreadystatechange = function() { | |
if (this.readyState == 4 && this.status == 200) { | |
console.log(this.reponseText); | |
} | |
}; | |
xhttp.open("GET", url, true); | |
xhttp.send(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment