You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

25 lines
833 B

export const getArchitects = () => {
const architects = [...document.getElementsByTagName('a')]
const others = [...document.getElementsByTagName('span')]
return [architects, others]
}
export const getClassical = () => {
const classicals = [...document.getElementsByClassName('classical')]
const others = [...document.querySelectorAll('a:not(.classical)')]
return [classicals, others]
}
export const getActive = () => {
const active = [...document.querySelectorAll('.classical.active')]
const others = [...document.querySelectorAll('.classical:not(.active)')]
return [active, others]
}
export const getBonannoPisano = () => {
const bonanno = document.getElementById('BonannoPisano')
const others = [
...document.querySelectorAll('a.classical.active:not(#BonannoPisano)'),
]
return [bonanno, others]
}