Feature/#3 better display of language icons #55

Merged
Serraniel merged 18 commits from feature/#3-better-display-of-language-icons into develop 2020-10-01 21:34:19 +02:00
Showing only changes of commit dcb5ce2f38 - Show all commits

View file

@ -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 = [];