chore: fixes
This commit is contained in:
parent
14e2884f10
commit
12e3b0ad09
1 changed files with 18 additions and 1 deletions
19
legacy.html
19
legacy.html
|
|
@ -144,7 +144,24 @@ function showMembers(event) {
|
|||
return;
|
||||
}
|
||||
|
||||
target.innerHTML = section.innerHTML;
|
||||
const img = section.querySelector('img[src*="kirby19.gif"]');
|
||||
|
||||
if (!img) {
|
||||
target.innerHTML = section.outerHTML;
|
||||
return;
|
||||
}
|
||||
|
||||
const range = document.createRange();
|
||||
range.setStartBefore(img);
|
||||
range.setEndAfter(section.lastChild);
|
||||
|
||||
const fragment = range.cloneContents();
|
||||
|
||||
const wrapper = document.createElement("div");
|
||||
wrapper.id = "aboutSection";
|
||||
wrapper.appendChild(fragment);
|
||||
|
||||
target.innerHTML = wrapper.innerHTML;
|
||||
})
|
||||
.catch(err => {
|
||||
console.error(err);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue