javascript - Workout width and heigh for transform scale -


document.getelementbyid("wrapper").style.transform = "scale(1, 1)"; 

so above line of code scales wrapper div (which covers whole viewport. whole page) , scales it.

i'm wondering, how can work out width , height of viewport i'm on , scale relevant that?

so if i'm on ipad scale div correct size , if i'm on desktop scale size?

thank you!


Comments

Popular posts from this blog

python 3 IndexError: list index out of range -

android - How to save instance state of selected radiobutton on menu -

IF statement in MySQL trigger -