Just to point out that screen
resolution has (almost) nothing to do with a browser window available height / width.
If you're good with CSS3 you can use vh
unit
<div style="height: 80vh;"> I'm 80% of user's availHeight here </div>
Now let's answer literally your question:
How to multiply screen resolution by 80% then use in code
var screenW = screen.width; // Number of px of Physical screen width
var screenH = screen.height; // Number of px of Physical screen height
You have your screen size values now, multiply and do whatever you need to.