Feature/#3 better display of language icons #55
|
@ -32,7 +32,7 @@ function updateLanguageDisplay(node) {
|
|||
subCols.forEach(element => {
|
||||
let langAttr = element.attributes['ng-hide'].value;
|
||||
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);
|
||||
}
|
||||
});
|
||||
|
@ -42,11 +42,15 @@ function updateLanguageDisplay(node) {
|
|||
dubCols.forEach(element => {
|
||||
let langAttr = element.attributes['ng-hide'].value;
|
||||
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);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
console.log(subs)
|
||||
console.log(dubs)
|
||||
|
||||
// build output html
|
||||
let iconsRequired = true;
|
||||
let cols = [];
|
||||
|
|
Loading…
Reference in a new issue