Comments (2)
- https://imasters.com.br/front-end/tamanho-da-tela-e-tamanho-da-janela-com-javascript
- https://horadecodar.com.br/como-pegar-a-altura-e-largura-da-pagina-com-javascript/
- https://horadecodar.com.br/como-detectar-resolucao-da-tela-com-javascript/
- https://pt.stackoverflow.com/questions/7551/capturar-tamanho-da-tela-no-momento-da-requisi%C3%A7%C3%A3o
from ludsce.
<!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>
from ludsce.
Related Issues (16)
- Criar tela inicial com avisos
- Info usuário inclusão
- Traduzir mensagens e campos
- Pequenos erros
- Alterando icone vídeo
- melhorias documentação
- Bug : diversos bugs
- Bug: hora não está aparecendo completo
- Veriricar se arquivos são deletados HOT 1
- Ativar FullScreen HOT 1
- Bug: Autoplay vídeo
- instalar em ambiente linux ubuntu server HOT 5
- Update para Adianti Fork Template 7.6.0.1
- Melhorar Manifest.json
- LUDS Sistema HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ludsce.