-
Notifications
You must be signed in to change notification settings - Fork 0
/
dPRAtPageload.html
37 lines (33 loc) · 1.41 KB
/
dPRAtPageload.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="user-scalable=no,initial-scale=1,maximum-scale=1,width=device-width">
<style>
html {
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAIAAAD/gAIDAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAFpSURBVHhe7durEcJAAEVRgsXRCPVCRziQUAI/BdhgKCDXZSYn+oqds2/idhjHcTWz7/z67LabmR1qdbje13M705zPAyvcDixYQSCklgUrCITUsmAFgZBaFqwgEFLLghUEQmpZsIJASC0LVhAIqWXBCgIhtSxYQSCklgUrCITUsmAFgZBaFqwgEFLLghUEQmpZsIJASC0LVhAIqWXBCgIhtSxYQSCklgUrCITUsmAFgZBaFqwgEFLLghUEQmpZsIJASC0LVhAI6XB6vkO+4PT4+A5esk4cgJesE6H+mR988IIFKwiE1LJgBYGQWhasIBBSy4IVBEJqWbCCQEgtC1YQCKllwQoCIbUsWEEgpJYFKwiE1LJgBYGQWhasIBBSy4IVBEJqWbCCQEgtC1YQCKllwQoCIbUsWEEgpJYFKwiE1LJgBYGQWhasIBBSy4IVBEJqWbCCQEgtC1YQCKllwQoCIR32l1vIl53+AI/JGTUBmZViAAAAAElFTkSuQmCC) repeat local;
}
</style>
<script>
var log = "";
function logValues(eventName) {
log += eventName + ": " + devicePixelRatio + ", " + screen.width + ", " + screen.height + "<br />";
}
document.addEventListener("DOMContentLoaded", function() {
logValues("DOMContentLoaded");
});
window.addEventListener("load", function() {
logValues("load");
setTimeout(function() {
logValues("Post load");
}, 1000);
setTimeout(function() {
document.getElementById("output").innerHTML = log;
}, 2000);
});
logValues("Before load");
</script>
</head>
<body>
<div id="output"></div>
</body>
</html>