switched order of js because arrow functions are special

This commit is contained in:
2022-02-11 20:22:03 +01:00
parent d8052a8de2
commit cea990440c

View File

@@ -454,14 +454,6 @@ people.forEach(person => {
});
e.remove();
Array
.from(document.querySelectorAll("h3"))
.filter(el => !['Expectations For Mentees', 'Missing Mentor Topics', 'Exercism.io', 'Expectations For Mentors']
.includes(el.innerText)
)
.forEach(el => addAnchorLink(el))
const addAnchorLink = el => {
const anchor = document.createElement('a')
anchor.href = `#${el.id}`
@@ -491,5 +483,13 @@ const createSVGForAnchorLink = () => {
return svg
}
Array
.from(document.querySelectorAll("h3"))
.filter(el => !['Expectations For Mentees', 'Missing Mentor Topics', 'Exercism.io', 'Expectations For Mentors']
.includes(el.innerText)
)
.forEach(el => addAnchorLink(el))
</script>