add phoneme()
This commit is contained in:
parent
8db4ee4d58
commit
a4605b9483
@ -84,13 +84,29 @@ function language(language) {
|
|||||||
})[0];
|
})[0];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function phoneme(p) {
|
||||||
|
return data.values.map(function(language) {
|
||||||
|
obj = {};
|
||||||
|
if (language.phonemes[p] !== undefined) {
|
||||||
|
obj[language.name] = language.phonemes[p];
|
||||||
|
return obj;
|
||||||
|
}
|
||||||
|
return undefined;
|
||||||
|
}).filter(function(a) {
|
||||||
|
if (a === undefined) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
function generateDropOp() { // For options that change based on data.
|
function generateDropOp() { // For options that change based on data.
|
||||||
dropOp["langSelect"] = [function() {
|
dropOp["langSelect"] = [function() {
|
||||||
var info = document.getElementById("langInfoCont");
|
var info = document.getElementById("langInfoCont");
|
||||||
while (info.firstChild) {
|
while (info.firstChild) {
|
||||||
info.removeChild(info.firstChild);
|
info.removeChild(info.firstChild);
|
||||||
}
|
}
|
||||||
var p = document.createElement("p")
|
var p = document.createElement("p");
|
||||||
var p2 = document.createElement("p2");
|
var p2 = document.createElement("p2");
|
||||||
var a = document.createElement("a");
|
var a = document.createElement("a");
|
||||||
var langInfo = language(dropOpStore["langSelect"]);
|
var langInfo = language(dropOpStore["langSelect"]);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user