Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Criar função info tela #4

Open
bjverde opened this issue Jun 7, 2022 · 2 comments
Open

Criar função info tela #4

bjverde opened this issue Jun 7, 2022 · 2 comments

Comments

@bjverde
Copy link
Owner

bjverde commented Jun 7, 2022

Na tela config geral colocar um swicht para ligar o modo "info tela" que mostrar as dimensões da tela para produzir as imagens

@bjverde
Copy link
Owner Author

bjverde commented Oct 15, 2023

<!DOCTYPE html>
<html>
<head>
    <script>
        function sizeOfThings(){
            var windowWidth = window.innerWidth;
            var windowHeight = window.innerHeight;
            
            var screenWidth = screen.width;
            var screenHeight = screen.height;
            
            document.querySelector('.window-size').innerHTML = windowWidth + 'x' + windowHeight;
            document.querySelector('.screen-size').innerHTML = screenWidth + 'x' + screenHeight;
        };
    </script>
</head>
<body onload="sizeOfThings()">
    <h3>Window size is <span class="window-size"></span></h3>
    <p>Knowing this number you can make decisions based in breakpoints of window.</p>
    <hr>
    <h3>Screen size is <span class="screen-size"></span></h3>
    <p>Here you have an idea of device screen size. </p>
</body>
</html>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant