first commit
This commit is contained in:
13
templates/instytut_dendrologii_/js/mod5.js
Normal file
13
templates/instytut_dendrologii_/js/mod5.js
Normal file
@@ -0,0 +1,13 @@
|
||||
window.addEventListener('load', () => {
|
||||
wyrstart();
|
||||
})
|
||||
function wyrstart(){
|
||||
setTimeout(wyrown,1000);
|
||||
}
|
||||
function wyrown(){
|
||||
if(screen.width<850){
|
||||
var wydarzenia_width=document.querySelector('.wydarzenia').offsetWidth;
|
||||
console.log(wydarzenia_width);
|
||||
document.querySelector('.publikacje-header').style.setProperty('width',wydarzenia_width+'px');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user