Wikipedia viewer search box linking my search box div to wikipedia

Wikipedia viewer search box linking my search box div to wikipedia
0

#1

guys i cant understand the var url link

i cant understand the function at all

function getWikis(searchTerm) {
var url = “https://crossorigin.me/https://en.wikipedia.org/w/api.php?action=opensearch&prop=revisions&rvprop=content&format=json&search=” + searchTerm;
$.get(url, function(data){
if (data[1].length === 0 || data[1].length !== data[2].length) {
//handle error
$(".results-container").html(“An Error seems to have occurred… Please try again”);
}
$.each(data[1], function(index, val){
results.push({
“title” : val,
“info” : data[2][index],
“url” : data[3][index]
});
setList();
})
});
}