chore: fixes
This commit is contained in:
parent
fc0fa6ac15
commit
0573b4ad75
1 changed files with 11 additions and 5 deletions
14
legacy.html
14
legacy.html
|
|
@ -127,11 +127,17 @@ function showAbout(event) {
|
|||
const temp = document.createElement("div");
|
||||
temp.innerHTML = html;
|
||||
|
||||
const section = temp.querySelector("#aboutSection .home-text");
|
||||
const section = temp.querySelector("#aboutSection");
|
||||
|
||||
target.innerHTML = section
|
||||
? section.innerHTML
|
||||
: "<h2>About</h2><p>Missing proper structure</p>";
|
||||
if (section) {
|
||||
target.innerHTML = `
|
||||
<div class="home-text text-containers-secondary-bg">
|
||||
${section.innerHTML}
|
||||
</div>
|
||||
`;
|
||||
} else {
|
||||
target.innerHTML = "<h2>About</h2><p>Missing #aboutSection</p>";
|
||||
}
|
||||
})
|
||||
.catch(err => {
|
||||
console.error(err);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue