Feature/#3 better display of language icons #55
|
@ -32,7 +32,7 @@ function updateLanguageDisplay(node) {
|
||||||
subCols.forEach(element => {
|
subCols.forEach(element => {
|
||||||
let langAttr = element.attributes['ng-hide'].value;
|
let langAttr = element.attributes['ng-hide'].value;
|
||||||
let lang = langAttr.substring(langAttr.indexOf(langPrefix) + langPrefix.length, langAttr.indexOf(subSuffix));
|
let lang = langAttr.substring(langAttr.indexOf(langPrefix) + langPrefix.length, langAttr.indexOf(subSuffix));
|
||||||
if (element.ariaHidden) {
|
if (element.attributes['aria-hidden'].value == 'false') {
|
||||||
subs.push(lang);
|
subs.push(lang);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -42,11 +42,15 @@ function updateLanguageDisplay(node) {
|
||||||
dubCols.forEach(element => {
|
dubCols.forEach(element => {
|
||||||
let langAttr = element.attributes['ng-hide'].value;
|
let langAttr = element.attributes['ng-hide'].value;
|
||||||
let lang = langAttr.substring(langAttr.indexOf(langPrefix) + langPrefix.length, langAttr.indexOf(dubSuffix));
|
let lang = langAttr.substring(langAttr.indexOf(langPrefix) + langPrefix.length, langAttr.indexOf(dubSuffix));
|
||||||
if (element.ariaHidden) {
|
if (element.attributes['aria-hidden'].value == 'false') {
|
||||||
dubs.push(lang);
|
dubs.push(lang);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
console.log(subs)
|
||||||
|
console.log(dubs)
|
||||||
|
|
||||||
// build output html
|
// build output html
|
||||||
let iconsRequired = true;
|
let iconsRequired = true;
|
||||||
let cols = [];
|
let cols = [];
|
||||||
|
|
Loading…
Reference in a new issue