mirror of
https://forge.chapril.org/tykayn/osm-commerces
synced 2025-10-04 17:04:53 +02:00
refacto js, up graph
This commit is contained in:
parent
d66bc5e40c
commit
68680e0569
11 changed files with 840 additions and 48 deletions
|
@ -338,9 +338,23 @@ export function calculateCompletion(properties) {
|
|||
};
|
||||
}
|
||||
|
||||
export function toggleCompletionInfo() {
|
||||
const content = document.getElementById('completionInfoContent');
|
||||
const icon = document.getElementById('completionInfoIcon');
|
||||
if (content) {
|
||||
const isVisible = content.style.display === 'block';
|
||||
content.style.display = isVisible ? 'none' : 'block';
|
||||
if (icon) {
|
||||
icon.classList.toggle('bi-chevron-down', isVisible);
|
||||
icon.classList.toggle('bi-chevron-up', !isVisible);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
window.check_validity = check_validity;
|
||||
window.colorHeadingTable = colorHeadingTable;
|
||||
window.openInPanoramax = openInPanoramax;
|
||||
window.listChangesets = listChangesets;
|
||||
window.adjustListGroupFontSize = adjustListGroupFontSize;
|
||||
window.calculateCompletion = calculateCompletion;
|
||||
window.calculateCompletion = calculateCompletion;
|
||||
window.toggleCompletionInfo = toggleCompletionInfo;
|
Loading…
Add table
Add a link
Reference in a new issue