first commit
This commit is contained in:
12
templates/instytut_dendrologii_/js/stronaprojektu.js
Normal file
12
templates/instytut_dendrologii_/js/stronaprojektu.js
Normal file
@@ -0,0 +1,12 @@
|
||||
window.addEventListener('load', () => {
|
||||
naglowekwyr();
|
||||
})
|
||||
window.addEventListener('resize', () => {
|
||||
naglowekwyr();
|
||||
})
|
||||
function naglowekwyr(){
|
||||
if(screen.width<1925){
|
||||
var mleft= document.querySelector('.okruszki').getBoundingClientRect().left;
|
||||
console.log('mleft'+mleft);
|
||||
document.querySelector('.stronaprojektu-text').style.setProperty('margin-left',mleft+'px');
|
||||
}}
|
||||
Reference in New Issue
Block a user