first commit
This commit is contained in:
15
templates/instytut_dendrologii_/js/mod14.js
Normal file
15
templates/instytut_dendrologii_/js/mod14.js
Normal file
@@ -0,0 +1,15 @@
|
||||
window.addEventListener('load' , () => {
|
||||
watchButton();
|
||||
})
|
||||
function watchButton(){
|
||||
document.querySelector('.ogladaj2').addEventListener('click', () => {
|
||||
var link=document.querySelector('.ogladaj2 a').getAttribute('href');
|
||||
window.location.href=link;
|
||||
|
||||
})
|
||||
document.querySelector('.ogladaj1').addEventListener('click', () => {
|
||||
var link1=document.querySelector('.ogladaj1 a').getAttribute('href');
|
||||
window.location.href=link1;
|
||||
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user