add languages to geo module
This commit is contained in:
parent
a29d7e70ea
commit
7035e207c2
4 changed files with 568 additions and 18 deletions
|
@ -161,6 +161,21 @@ Ox.load.Geo = function(options, callback) {
|
||||||
return Ox.PATH + 'Ox.Geo/png/' + type + 's/' + size + '/' + code + '.png';
|
return Ox.PATH + 'Ox.Geo/png/' + type + 's/' + size + '/' + code + '.png';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Ox.getImageByLanguage = function(type, size, language) {
|
||||||
|
language = language
|
||||||
|
.replace(' languages', '')
|
||||||
|
.replace(' Sign Language', '');
|
||||||
|
var country = '', code;
|
||||||
|
Ox.COUNTRIES.forEach(function(c) {
|
||||||
|
if (c.languages.indexOf(language) > -1) {
|
||||||
|
country = c;
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
code = country ? country.code : 'NTHH';
|
||||||
|
return Ox.PATH + 'Ox.Geo/png/' + type + 's/' + size + '/' + code + '.png';
|
||||||
|
};
|
||||||
|
|
||||||
callback(true);
|
callback(true);
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -378,6 +378,12 @@ Lists
|
||||||
.OxThemeClassic .OxTextList .OxFocus .OxItem.OxSelected:nth-child(even) {
|
.OxThemeClassic .OxTextList .OxFocus .OxItem.OxSelected:nth-child(even) {
|
||||||
background: rgb(206, 206, 206);
|
background: rgb(206, 206, 206);
|
||||||
}
|
}
|
||||||
|
.OxThemeClassic .OxTextList .OxItem.OxDroppable.OxDrop:nth-child(odd) .OxCell {
|
||||||
|
background: rgb(194, 194, 194);
|
||||||
|
}
|
||||||
|
.OxThemeClassic .OxTextList .OxItem.OxDroppable.OxDrop:nth-child(even) .OxCell {
|
||||||
|
background: rgb(190, 190, 190);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
.OxThemeClassic .OxTextList .OxHead .OxSelected {
|
.OxThemeClassic .OxTextList .OxHead .OxSelected {
|
||||||
|
|
|
@ -362,12 +362,6 @@ Lists
|
||||||
.OxThemeModern .OxTextList .OxFocus .OxItem.OxSelected:nth-child(even) {
|
.OxThemeModern .OxTextList .OxFocus .OxItem.OxSelected:nth-child(even) {
|
||||||
background: rgb(66, 66, 66);
|
background: rgb(66, 66, 66);
|
||||||
}
|
}
|
||||||
.OxThemeModern .OxTextList .OxItem.OxDroppable:nth-child(odd) .OxCell {
|
|
||||||
//background: rgb(62, 62, 78);
|
|
||||||
}
|
|
||||||
.OxThemeModern .OxTextList .OxItem.OxDroppable:nth-child(even) .OxCell {
|
|
||||||
//background: rgb(66, 66, 82);
|
|
||||||
}
|
|
||||||
.OxThemeModern .OxTextList .OxItem.OxDroppable.OxDrop:nth-child(odd) .OxCell {
|
.OxThemeModern .OxTextList .OxItem.OxDroppable.OxDrop:nth-child(odd) .OxCell {
|
||||||
background: rgb(78, 78, 78);
|
background: rgb(78, 78, 78);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue