first commit
This commit is contained in:
12
templates/instytut_dendrologii_/js/target.js
Normal file
12
templates/instytut_dendrologii_/js/target.js
Normal file
@@ -0,0 +1,12 @@
|
||||
window.addEventListener('load', () => {
|
||||
targetblank();
|
||||
})
|
||||
function targetblank(){
|
||||
document.querySelectorAll('.aktualno .jt-inner a').forEach(category =>{
|
||||
var strona=window.location.href;
|
||||
console.log(category.href);
|
||||
var link= category.getAttribute('href').replace(strona,'');
|
||||
category.setAttribute('href',link);
|
||||
})
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user