Feature/#3 better display of language icons #55
|
@ -10,186 +10,190 @@ export function init() {
|
|||
kaffem
commented
Review
```suggestion
doUpdateLanguageDisplay(col, false);
```
kaffem
commented
Review
```suggestion
doUpdateLanguageDisplay(col, true);
```
kaffem
commented
Review
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
}, "^/anime/[0-9]*$");
|
||||
}
|
||||
|
||||
const langPrefix = 'ep.lang.';
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
const dubSuffix = 'dub';
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
const subSuffix = 'sub';
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
const dubIcon = 'volume_up';
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
const subIcon = 'closed_caption';
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
const zeroWidthSpace = ''; // ​
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
function updateLanguageDisplay(node) {
|
||||
const langPrefix = 'ep.lang.';
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
const dubSuffix = 'dub';
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
const subSuffix = 'sub';
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
const listNodeName = 'MD-LIST-ITEM';
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
|
||||
const dubIcon = 'volume_up';
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
const subIcon = 'closed_caption';
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
const zeroWidthSpace = ''; // ​
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
if (node.nodeName === listNodeName) {
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
updateLanguageDisplayListMode(node);
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
}
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
}
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
|
||||
let listItems = document.querySelectorAll('md-list-item');
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
function updateLanguageDisplayListMode(node) {
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
// last column with flags
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
let col = node.querySelector('h3.layout-align-end-center');
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
|
||||
listItems.forEach(item => {
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
// last column with flags
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
let col = item.querySelector('h3.layout-align-end-center');
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
if (typeof col === 'undefined' || col.eaManipulated) {
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
return;
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
}
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
|
||||
if (col.eaManipulated) {
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
return;
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
let subs = [];
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
let dubs = [];
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
// find subs
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
let subCols = col.querySelectorAll('[ng-hide*="sub"]');
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
subCols.forEach(element => {
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
let langAttr = element.attributes['ng-hide'].value;
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
let lang = langAttr.substring(langAttr.indexOf(langPrefix) + langPrefix.length, langAttr.indexOf(subSuffix));
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
if (element.attributes['aria-hidden'].value == 'false') {
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
subs.push(lang);
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
}
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
});
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
// find dubs
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
let dubCols = col.querySelectorAll('[ng-hide*="dub"]');
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
dubCols.forEach(element => {
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
let langAttr = element.attributes['ng-hide'].value;
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
let lang = langAttr.substring(langAttr.indexOf(langPrefix) + langPrefix.length, langAttr.indexOf(dubSuffix));
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
if (element.attributes['aria-hidden'].value == 'false') {
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
dubs.push(lang);
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
}
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
});
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
// build output html
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
let iconsRequired = true;
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
let cols = [];
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
// subs first;
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
if (subs.length > 0) {
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
let colDiv = document.createElement('div');
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
colDiv.setAttribute('layout', 'column');
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
colDiv.classList.add('layout-column');
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
// do we have dubs?
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
if (dubs.length > 0) {
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
let dubDiv = document.createElement('div');
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
dubDiv.setAttribute('layout', 'row');
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
dubDiv.setAttribute('layout-align', 'start center');
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
dubDiv.classList.add('layout-align-start-center', 'layout-row');
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
let dubIconDiv = document.createElement('i');
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
if (iconsRequired) {
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
dubIconDiv.classList.add('material-icons', 'mr-3');
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
dubIconDiv.innerText = dubIcon;
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
}
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
// add dummy with 24px for correct presentation
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
else {
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
dubIconDiv.style.height = '24px';
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
dubIconDiv.innerText = zeroWidthSpace;
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
}
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
dubDiv.appendChild(dubIconDiv);
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
let japIcon = document.createElement('i');
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
japIcon.classList.add('flag', 'flag-jp', 'mg-all-1');
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
dubDiv.appendChild(japIcon);
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
colDiv.appendChild(dubDiv);
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
}
|
||||
|
||||
let subs = [];
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
let dubs = [];
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
// do the subs
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
let subDiv = document.createElement('div');
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
subDiv.setAttribute('layout', 'row');
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
subDiv.setAttribute('layout-align', 'start center');
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
subDiv.classList.add('layout-align-start-center', 'layout-row');
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
|
||||
// find subs
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
let subCols = col.querySelectorAll('[ng-hide*="sub"]');
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
subCols.forEach(element => {
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
let langAttr = element.attributes['ng-hide'].value;
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
let lang = langAttr.substring(langAttr.indexOf(langPrefix) + langPrefix.length, langAttr.indexOf(subSuffix));
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
if (element.attributes['aria-hidden'].value == 'false') {
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
subs.push(lang);
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
}
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
let subIconDiv = document.createElement('i');
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
if (iconsRequired) {
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
subIconDiv.classList.add('material-icons', 'mr-3');
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
subIconDiv.innerText = subIcon;
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
}
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
// add dummy with 24px for correct presentation
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
else {
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
subIconDiv.style.height = '24px';
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
subIconDiv.innerText = zeroWidthSpace;
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
}
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
subDiv.appendChild(subIconDiv);
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
subs.forEach(lang => {
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
let langIcon = document.createElement('i');
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
langIcon.classList.add('flag', `flag-${lang}`, 'mg-all-1');
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
subDiv.appendChild(langIcon);
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
});
|
||||
|
||||
// find dubs
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
let dubCols = col.querySelectorAll('[ng-hide*="dub"]');
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
dubCols.forEach(element => {
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
let langAttr = element.attributes['ng-hide'].value;
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
let lang = langAttr.substring(langAttr.indexOf(langPrefix) + langPrefix.length, langAttr.indexOf(dubSuffix));
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
if (element.attributes['aria-hidden'].value == 'false') {
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
dubs.push(lang);
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
}
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
});
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
colDiv.appendChild(subDiv);
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
|
||||
// build output html
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
let iconsRequired = true;
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
let cols = [];
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
cols.push(colDiv);
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
iconsRequired = false;
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
}
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
|
||||
// subs first;
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
if (subs.length > 0) {
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
if (dubs.length > 0) {
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
dubs.forEach(lang => {
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
let colDiv = document.createElement('div');
|
||||
colDiv.setAttribute('layout', 'column');
|
||||
colDiv.classList.add('layout-column');
|
||||
|
||||
// do we have dubs?
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
if (dubs.length > 0) {
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
let dubDiv = document.createElement('div');
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
dubDiv.setAttribute('layout', 'row');
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
dubDiv.setAttribute('layout-align', 'start center');
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
dubDiv.classList.add('layout-align-start-center', 'layout-row');
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
let dubDiv = document.createElement('div');
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
dubDiv.setAttribute('layout', 'row');
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
dubDiv.setAttribute('layout-align', 'start center');
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
dubDiv.classList.add('layout-align-start-center', 'layout-row');
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
|
||||
let dubIconDiv = document.createElement('i');
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
if (iconsRequired) {
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
dubIconDiv.classList.add('material-icons', 'mr-3');
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
dubIconDiv.innerText = dubIcon;
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
}
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
// add dummy with 24px for correct presentation
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
else {
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
dubIconDiv.style.height = '24px';
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
dubIconDiv.innerText = zeroWidthSpace;
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
}
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
dubDiv.appendChild(dubIconDiv);
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
let japIcon = document.createElement('i');
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
japIcon.classList.add('flag', 'flag-jp', 'mg-all-1');
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
dubDiv.appendChild(japIcon);
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
colDiv.appendChild(dubDiv);
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
}
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
// do the subs
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
let subDiv = document.createElement('div');
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
subDiv.setAttribute('layout', 'row');
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
subDiv.setAttribute('layout-align', 'start center');
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
subDiv.classList.add('layout-align-start-center', 'layout-row');
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
let subIconDiv = document.createElement('i');
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
let dubIconDiv = document.createElement('i');
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
if (iconsRequired) {
|
||||
subIconDiv.classList.add('material-icons', 'mr-3');
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
subIconDiv.innerText = subIcon;
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
dubIconDiv.classList.add('material-icons', 'mr-3');
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
dubIconDiv.innerText = dubIcon;
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
}
|
||||
// add dummy with 24px for correct presentation
|
||||
else {
|
||||
subIconDiv.style.height = '24px';
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
subIconDiv.innerText = zeroWidthSpace;
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
dubIconDiv.style.height = '24px';
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
dubIconDiv.innerText = zeroWidthSpace;
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
}
|
||||
|
||||
subDiv.appendChild(subIconDiv);
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
subs.forEach(lang => {
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
let langIcon = document.createElement('i');
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
langIcon.classList.add('flag', `flag-${lang}`, 'mg-all-1');
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
subDiv.appendChild(langIcon);
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
});
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
dubDiv.appendChild(dubIconDiv);
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
|
||||
colDiv.appendChild(subDiv);
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
let langIcon = document.createElement('i');
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
langIcon.classList.add('flag', `flag-${lang}`, 'mg-all-1');
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
dubDiv.appendChild(langIcon);
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
|
||||
cols.push(colDiv);
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
iconsRequired = false;
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
}
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
colDiv.appendChild(dubDiv);
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
|
||||
if (dubs.length > 0) {
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
dubs.forEach(lang => {
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
let colDiv = document.createElement('div');
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
colDiv.setAttribute('layout', 'column');
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
colDiv.classList.add('layout-column');
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
// do we have subs?
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
if (subs.length > 0) {
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
let subDiv = document.createElement('div');
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
subDiv.setAttribute('layout', 'row');
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
subDiv.setAttribute('layout-align', 'start center');
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
subDiv.classList.add('layout-align-start-center', 'layout-row');
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
|
||||
let dubDiv = document.createElement('div');
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
dubDiv.setAttribute('layout', 'row');
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
dubDiv.setAttribute('layout-align', 'start center');
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
dubDiv.classList.add('layout-align-start-center', 'layout-row');
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
let dubIconDiv = document.createElement('i');
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
let subIconDiv = document.createElement('i');
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
if (iconsRequired) {
|
||||
dubIconDiv.classList.add('material-icons', 'mr-3');
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
dubIconDiv.innerText = dubIcon;
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
subIconDiv.classList.add('material-icons', 'mr-3');
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
subIconDiv.innerText = subIcon;
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
}
|
||||
// add dummy with 24px for correct presentation
|
||||
else {
|
||||
dubIconDiv.style.height = '24px';
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
dubIconDiv.innerText = zeroWidthSpace;
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
subIconDiv.style.height = '24px';
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
subIconDiv.innerText = zeroWidthSpace;
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
}
|
||||
|
||||
dubDiv.appendChild(dubIconDiv);
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
subDiv.appendChild(subIconDiv);
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
colDiv.appendChild(subDiv);
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
}
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
|
||||
let langIcon = document.createElement('i');
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
langIcon.classList.add('flag', `flag-${lang}`, 'mg-all-1');
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
dubDiv.appendChild(langIcon);
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
colDiv.appendChild(dubDiv);
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
// do we have subs?
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
if (subs.length > 0) {
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
let subDiv = document.createElement('div');
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
subDiv.setAttribute('layout', 'row');
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
subDiv.setAttribute('layout-align', 'start center');
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
subDiv.classList.add('layout-align-start-center', 'layout-row');
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
let subIconDiv = document.createElement('i');
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
if (iconsRequired) {
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
subIconDiv.classList.add('material-icons', 'mr-3');
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
subIconDiv.innerText = subIcon;
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
}
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
// add dummy with 24px for correct presentation
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
else {
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
subIconDiv.style.height = '24px';
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
subIconDiv.innerText = zeroWidthSpace;
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
}
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
subDiv.appendChild(subIconDiv);
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
colDiv.appendChild(subDiv);
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
}
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
cols.push(colDiv);
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
iconsRequired = false;
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
});
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
}
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
col.innerHTML = '';
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
cols.forEach(div => {
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
col.appendChild(div);
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
cols.push(colDiv);
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
iconsRequired = false;
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
});
|
||||
}
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
|
||||
item.querySelectorAll('.layout-column:not(:last-child)').forEach(div => {
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
div.style.borderRight = '1px solid rgba(155,155,155, 0.2)';
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
})
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
item.querySelectorAll('.layout-column').forEach(div => {
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
div.style.paddingLeft = '2px';
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
div.style.paddingRight = '2px';
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
})
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
col.eaManipulated = true;
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
col.innerHTML = '';
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
cols.forEach(div => {
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
col.appendChild(div);
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
});
|
||||
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
node.querySelectorAll('.layout-column:not(:last-child)').forEach(div => {
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
div.style.borderRight = '1px solid rgba(155,155,155, 0.2)';
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
})
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
node.querySelectorAll('.layout-column').forEach(div => {
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
div.style.paddingLeft = '2px';
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
div.style.paddingRight = '2px';
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
})
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
col.eaManipulated = true;
|
||||
```suggestion
doUpdateLanguageDisplay(col, false);
```
```suggestion
doUpdateLanguageDisplay(col, true);
```
```suggestion
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```
|
||||
}
|
Loading…
Reference in a new issue