Size window
How do I make an size window?
What is a size window? How do you make a size window? This script and codes were developed by Alex Konstantinov on 08 September 2022, Thursday.
Size window - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Size window</title> <script src="https://s.codepen.io/assets/libs/modernizr.js" type="text/javascript"></script> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"> <link rel="stylesheet" href="css/style.css">
</head>
<body> <p class="blcok">Размер окна <b><span id="w1"></span> X <span id="h1"></span></b></p> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
Size window - Script Codes CSS Codes
.blcok { width: 300px; height: 50px; text-align: center; line-height: 50px; background: gold; position: absolute; left: 50%; top: 50%; margin-top: -25px; margin-left: -150px; }
Size window - Script Codes JS Codes
var myw1 = document.getElementById("w1");
var myh1 = document.getElementById("h1");
window.onresize = function() { h1 = window.innerHeight; w1 = window.innerWidth; myw1.innerHTML = w1; myh1.innerHTML = h1;
}
h1 = window.innerHeight;
w1 = window.innerWidth;
myw1.innerHTML = w1;
myh1.innerHTML = h1;
Developer | Alex Konstantinov |
Username | oxla |
Uploaded | September 08, 2022 |
Rating | 3 |
Size | 1,876 Kb |
Views | 28,336 |
Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!
Name | Size |
Cube Rotating Around | 1,984 Kb |
Svg | 3,468 Kb |
Drag resize rotate | 1,751 Kb |
Web Launch Checklist | 14,329 Kb |
Flex center | 1,696 Kb |
Loader | 3,161 Kb |
Combined font-size and line-height lock, using pixel-based Media Queries | 2,815 Kb |
Pirate pixel art css | 2,025 Kb |
Step bar with description | 3,749 Kb |
Burger menu | 3,424 Kb |
Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!
Name | Username | Size |
Material design buttons | Fischaela | 4,381 Kb |
Custom Checkbox and radio inputs SCSS | Rgfx | 3,367 Kb |
A Pen by Miro Olma | Programiro | 2,342 Kb |
Price table | Serluk | 5,928 Kb |
Day 1 - Portfolio | Chpecson | 3,532 Kb |
Wavy Road with Dashes | Jonobr1 | 2,679 Kb |
FontAwesome icons with animation | Nicotinell | 2,083 Kb |
Revolving Text Landing Page Trial | TimRuby | 2,976 Kb |
Replace url via jquery | Serluk | 1,429 Kb |
A Pen by Ben Babics | Benbabics | 2,957 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!