mirror of
https://github.com/lvgl/lvgl.git
synced 2026-05-28 05:26:18 +08:00
docs: add docs- prefix to link IDs in the banner
This commit is contained in:
Vendored
+12
-2
@@ -41,7 +41,17 @@ document.addEventListener('DOMContentLoaded', (event) => {
|
|||||||
newP.innerHTML = data
|
newP.innerHTML = data
|
||||||
newDiv.insertBefore(newP, newDiv.firstChild);
|
newDiv.insertBefore(newP, newDiv.firstChild);
|
||||||
|
|
||||||
}) .catch(error => {
|
const children = newDiv.querySelectorAll('*');
|
||||||
|
|
||||||
|
// Iterate over each child
|
||||||
|
children.forEach(child => {
|
||||||
|
// Check if the child has an id
|
||||||
|
if (child.id) {
|
||||||
|
// Prepend 'docs-' to the id
|
||||||
|
child.id = 'docs-' + child.id;
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}) .catch(error => {
|
||||||
console.error('Fetch error: ' + error.message);
|
console.error('Fetch error: ' + error.message);
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user