0
Have any plugin that leaves the site the size of the screen? When a site opens in resolution x
, it gets that size. For example, when I open the site on TV it gets small and I want it to increase in size.
I made 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 to make this code functional?
Can you explain better " let the site of the screen size " ? how so? make the site expand to use the whole screen?
– Sergio
It would not be the case to use media queries instead of javascript?
– bfavaretto
like when you open the site in resolution x it gets that size, like when I open the site on tv it gets small and I want it to increase in size...
– user3517672
I think you only need CSS. Media queries.
– Sergio
Whether the content is always the maximum possible or wants to define
n
different sizes?– Sergio
has to be a size that respects the margins and Talz...
– user3517672
I think what you’re looking for has no way to do, the TV site doesn’t get extended because of the resolution. This will have to be done with CSS like @Sergio said
– Paulo