first commit
This commit is contained in:
17
templates/instytut_dendrologii_/js/dendroorep.js
Normal file
17
templates/instytut_dendrologii_/js/dendroorep.js
Normal file
@@ -0,0 +1,17 @@
|
||||
window.addEventListener('load', () => {
|
||||
repos();
|
||||
|
||||
})
|
||||
function repos(){
|
||||
document.querySelectorAll('.view-article .dendro-art .page-header ').forEach(rep => {
|
||||
|
||||
var fi= rep.children[0].innerHTML.toLowerCase().replaceAll(' ','')
|
||||
var la= rep.children[1].innerHTML.toLowerCase().replaceAll(' ','')
|
||||
console.log(fi+' - '+la);
|
||||
if(fi==la){
|
||||
rep.children[1].style.setProperty('display','none');
|
||||
|
||||
}
|
||||
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user