2022-11-27 17:16:56 +11:00
|
|
|
<!DOCTYPE html>
|
|
|
|
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<script src=
|
|
|
|
"https://cdn.jsdelivr.net/npm/html2canvas@1.0.0-rc.5/dist/html2canvas.min.js">
|
|
|
|
</script>
|
|
|
|
</head>
|
|
|
|
<body>
|
2022-11-30 20:56:37 +11:00
|
|
|
<div>
|
|
|
|
<style>
|
|
|
|
p {
|
|
|
|
font-size: 24;
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
|
|
|
|
<img />
|
|
|
|
|
|
|
|
<button id="snapshot-button">Take snapshot</button>
|
|
|
|
|
|
|
|
<div style="height: 50px; width: 10000px; background-color: blue;"></div>
|
|
|
|
<!-- <img width="400px" height="700px" src="alley.jpg" /> -->
|
|
|
|
|
|
|
|
<p>Nice thanks man awesome</p>
|
|
|
|
<p>Nice thanks man awesome</p>
|
|
|
|
<p>Nice thanks man awesome</p>
|
|
|
|
<p>Nice thanks man awesome</p>
|
|
|
|
<p>Nice thanks man awesome</p>
|
|
|
|
<p>Nice thanks man awesome</p>
|
|
|
|
<p>Nice thanks man awesome</p>
|
|
|
|
<p>Nice thanks man awesome</p>
|
|
|
|
<p>Nice thanks man awesome</p>
|
|
|
|
|
|
|
|
<p>Nice thanks man awesome</p>
|
|
|
|
<p>Nice thanks man awesome</p>
|
|
|
|
<p>Nice thanks man awesome</p>
|
|
|
|
<p>Nice thanks man awesome</p>
|
|
|
|
<p>Nice thanks man awesome</p>
|
|
|
|
<p>Nice thanks man awesome</p>
|
|
|
|
<p>Nice thanks man awesome</p>
|
|
|
|
<p>Nice thanks man awesome</p>
|
|
|
|
<p>Nice thanks man awesome</p>
|
|
|
|
<p>Nice thanks man awesome</p>
|
|
|
|
<p>Nice thanks man awesome</p>
|
|
|
|
<p>Nice thanks man awesome</p>
|
|
|
|
<p>Nice thanks man awesome</p>
|
|
|
|
<p>Nice thanks man awesome</p>
|
|
|
|
<p>Nice thanks man awesome</p>
|
|
|
|
<p>Nice thanks man awesome</p>
|
|
|
|
<p>Nice thanks man awesome</p>
|
|
|
|
<p>Nice thanks man awesome</p>
|
|
|
|
<p>Nice thanks man awesome</p>
|
|
|
|
<p>Nice thanks man awesome</p>
|
|
|
|
<p>Nice thanks man awesome</p>
|
|
|
|
v
|
|
|
|
<p>Nice thanks man awesome</p>
|
|
|
|
<p>Nice thanks man awesome</p>
|
|
|
|
|
|
|
|
<p>Nice thanks man awesome</p>
|
|
|
|
<p>Nice thanks man awesome</p>
|
|
|
|
<p>Nice thanks man awesome</p>
|
|
|
|
<p>Nice thanks man awesome</p>
|
|
|
|
<p>Nice thanks man awesome</p>
|
2022-11-27 17:16:56 +11:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
async function Do() {
|
|
|
|
await html2canvas(document.body)
|
|
|
|
.then(
|
|
|
|
function (canvas) {
|
|
|
|
document.body.appendChild(canvas);
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
Do();
|
|
|
|
</script>
|
|
|
|
</body>
|
|
|
|
</html>
|