mirror of
https://github.com/andrewstephens75/as-dithered-image.git
synced 2026-04-14 12:29:30 -07:00
Simplified code
This commit is contained in:
26
test.html
Normal file
26
test.html
Normal file
@@ -0,0 +1,26 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<title>Test Page</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<script src="as-dithered-image.js"></script>
|
||||
<style>
|
||||
.setSize {
|
||||
width: 80%;
|
||||
min-width: 80%;
|
||||
}
|
||||
</style>
|
||||
|
||||
<as-dithered-image class="setSize" src="Van_Gogh_-_Starry_Night_-_Google_Art_Project.jpg"></as-dithered-image>
|
||||
|
||||
<p>devicePixelRatio = <span id=dpr>0</span></p>
|
||||
</body>
|
||||
|
||||
<script>
|
||||
document.getElementById("dpr").innerText = window.devicePixelRatio
|
||||
</script>
|
||||
|
||||
</html>
|
||||
Reference in New Issue
Block a user