Whatsizeisthisscreen.com

Developer
Size
4,413 Kb
Views
32,384

How do I make an whatsizeisthisscreen.com?

A quick little tool used for measuring the size of a device or a window. Go to this page on any device and it will tell you the size of the window and the device. It will also tell you the pixel ratio of touch devices.. What is a whatsizeisthisscreen.com? How do you make a whatsizeisthisscreen.com? This script and codes were developed by Andy McFee on 09 August 2022, Tuesday.

Whatsizeisthisscreen.com Previews

Whatsizeisthisscreen.com - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>whatsizeisthisscreen.com</title> <script src="http://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> <div class="vert-align"> <h2><a href="http://whatsizeisthisscreen.com" target="_blank">whatsizeisthisscreen.com</a></h2> <div class="box"> <h1 id="device-width"></h1> x <h1 id="device-height"></h1> </div> <h3>device</h3> <div class="box"> <h1 id="window-width"></h1> x <h1 id="window-height"></h1> </div> <h3>window</h3> <div class="visible-touch"> <div class="box"> <h1 id="pixel-ratio">???</h1> </div> <h3>pixel ratio</h3> </div>
</div> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>

Whatsizeisthisscreen.com - Script Codes CSS Codes

html { height: 100%;
}
body { background-color: #a92b8c; *zoom: 1; filter: progid:DXImageTransform.Microsoft.gradient(gradientType=1, startColorstr='#FFA92B8C', endColorstr='#FF72138E'); background-image: url('data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4gPHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IGlkPSJncmFkIiBncmFkaWVudFVuaXRzPSJvYmplY3RCb3VuZGluZ0JveCIgeDE9IjAuMCIgeTE9IjAuMCIgeDI9IjEuMCIgeTI9IjEuMCI+PHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2E5MmI4YyIvPjxzdG9wIG9mZnNldD0iMTAwJSIgc3RvcC1jb2xvcj0iIzcyMTM4ZSIvPjwvbGluZWFyR3JhZGllbnQ+PC9kZWZzPjxyZWN0IHg9IjAiIHk9IjAiIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9InVybCgjZ3JhZCkiIC8+PC9zdmc+IA=='); background-size: 100%; background-image: -webkit-gradient(linear, 0% 0%, 100% 100%, color-stop(0%, #a92b8c), color-stop(100%, #72138e)); background-image: -moz-linear-gradient(left top, #a92b8c 0%, #72138e 100%); background-image: -webkit-linear-gradient(left top, #a92b8c 0%, #72138e 100%); background-image: linear-gradient(to right bottom, #a92b8c 0%, #72138e 100%); -webkit-backface-visibility: hidden; -webkit-font-smoothing: antialiased; -webkit-text-stroke: 0; background-attachment: fixed; background-repeat: no-repeat; color: #581649; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; height: 100%; margin: 0;
}
.box { background: url('data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4gPHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IGlkPSJncmFkIiBncmFkaWVudFVuaXRzPSJvYmplY3RCb3VuZGluZ0JveCIgeDE9IjAuNSIgeTE9IjAuMCIgeDI9IjAuNSIgeTI9IjEuMCI+PHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2ZmZmZmZiIgc3RvcC1vcGFjaXR5PSIwLjEiLz48c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiNmZmZmZmYiIHN0b3Atb3BhY2l0eT0iMC4yIi8+PC9saW5lYXJHcmFkaWVudD48L2RlZnM+PHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgZmlsbD0idXJsKCNncmFkKSIgLz48L3N2Zz4g') transparent; background: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, rgba(255, 255, 255, 0.1)), color-stop(100%, rgba(255, 255, 255, 0.2))) transparent; background: -moz-linear-gradient(rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.2)) transparent; background: -webkit-linear-gradient(rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.2)) transparent; background: linear-gradient(rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.2)) transparent; -moz-border-radius: 5px; -webkit-border-radius: 5px; border-radius: 5px; -moz-box-shadow: 0 0 15px rgba(88, 22, 73, 0.3) inset; -webkit-box-shadow: 0 0 15px rgba(88, 22, 73, 0.3) inset; box-shadow: 0 0 15px rgba(88, 22, 73, 0.3) inset; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; border: 1px solid rgba(215, 99, 188, 0.2); color: #80216a; font-size: 18px; margin: 0 auto; max-width: 160px; padding: 10px 5px; text-align: center; width: 80%;
}
h1, h2, h3 { text-shadow: 1px 1px 0 #581649; font-weight: 300; text-align: center;
}
h3 { text-shadow: 1px 1px 1px rgba(229, 103, 200, 0.4); color: #581649; font-size: 14px; font-weight: normal; line-height: 1.5em; margin: 0 0 20px;
}
h3:last-child { margin-bottom: 0;
}
h1 { color: #ecb4df; display: inline; font-size: 24px; font-weight: bold;
}
h2 { font-size: 14px;
}
h2 a { color: #581649; text-shadow: 1px 1px 1px rgba(229, 103, 200, 0.4);
}
a, a:visited { color: #581649; text-decoration: none;
}
a:hover, a:visited:hover { color: #440235;
}
.visible-touch { display: none;
}
.touch .visible-touch { display: block;
}

Whatsizeisthisscreen.com - Script Codes JS Codes

var update = function(){ $("#device-width").text(window.screen.width); $("#device-height").text(window.screen.height); $("#window-width").text($(document).width()); $("#window-height").text($(document).height()); $("#pixel-ratio").text(window.devicePixelRatio);
}
var vert_align = function (){ var parentHeight = $('body').height(); var childHeight = $('.vert-align').height(); $('.vert-align').css('padding-top', (parentHeight - childHeight) / 2);
}
$(function(){ update(); vert_align(); $(window).resize(function() { update(); vert_align(); });
});
Whatsizeisthisscreen.com - Script Codes
Whatsizeisthisscreen.com - Script Codes
Home Page Home
Developer Andy McFee
Username andymcfee
Uploaded August 09, 2022
Rating 3
Size 4,413 Kb
Views 32,384
Do you need developer help for Whatsizeisthisscreen.com?

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!

Andy McFee (andymcfee) Script Codes
Create amazing love letters with AI!

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!