Skip to content

Commit

Permalink
doc: improve mobile device view (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
oncilla authored Jul 2, 2023
1 parent ce1ffe4 commit cdfff40
Showing 1 changed file with 2 additions and 19 deletions.
21 changes: 2 additions & 19 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<head>
<title>Old Man Yells At!</title>
<meta charset="utf-8" />
<meta charset="utf-8" name="viewport" content="width=device-width, initial-scale=1.0" />
<script src="wasm_exec.js"></script>
<script src="https://cdn.tailwindcss.com"></script>
<script>
Expand Down Expand Up @@ -68,24 +68,7 @@ <h1 class="font-bold text-4xl text-cyan-600 mb-4">Old Man Yells At!</h1>
reader.readAsDataURL(file);
}
}

async function loadImageData(url) {
return new Promise((resolve, reject) => {
const image = new Image();
image.onload = function () {
canvas.width = image.width;
canvas.height = image.height;
context.drawImage(image, 0, 0);
const imageData = context.getImageData(0, 0, canvas.width, canvas.height);
resolve(imageData);
};
image.onerror = function (error) {
reject(error);
};
image.src = url;
});
}
</script>
</body>

</html>
</html>

0 comments on commit cdfff40

Please sign in to comment.