first commit
This commit is contained in:
16
templates/instytut_dendrologii_/js/mod49.js
Normal file
16
templates/instytut_dendrologii_/js/mod49.js
Normal file
@@ -0,0 +1,16 @@
|
||||
window.addEventListener('load', () => {
|
||||
wyrownaj();
|
||||
})
|
||||
window.addEventListener('resize', () => {
|
||||
wyrownaj();
|
||||
})
|
||||
|
||||
function wyrownaj() {
|
||||
var react= document.querySelector('.socc').getBoundingClientRect();
|
||||
var react1= document.querySelector('.dendro-menu ul li a').getBoundingClientRect();
|
||||
document.querySelector('.szukkk').style.setProperty('left',react.x+10+'px','important');
|
||||
document.querySelector('.szukkk').style.setProperty('top',react1.y+'px','important');
|
||||
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user