Is there a plugin that leaves the site the size of the screen? When a site opens at x
resolution, it stays that size. For example, when I open the site on TV it gets small and I want it to grow in size.
I gave an example of what it would be:
<script>
$( window ).resize(function() {
h = $( window ).height();
if(h >= 900){
$('body').css("zoom", "150%");
}
if(h <= 899){
$('body').css("zoom", "100%");
}
if(h <= 425){
$('body').css("zoom", "50%");
}
});
$(document).ready(function() {
h = $( window ).height();
if(h >= 900){
$('body').css("zoom", "150%");
}
if(h <= 899){
$('body').css("zoom", "100%");
}
if(h <= 425){
$('body').css("zoom", "50%");
}
});
</script>
If it is not a plugin, how do you leave this functional code?