83 lines
2.3 KiB
HTML
83 lines
2.3 KiB
HTML
<!DOCTYPE html>
|
|
|
|
<html>
|
|
<head>
|
|
<script src=
|
|
"https://cdn.jsdelivr.net/npm/html2canvas@1.0.0-rc.5/dist/html2canvas.min.js">
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<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>
|
|
</div>
|
|
|
|
<script type="text/javascript">
|
|
async function Do() {
|
|
await html2canvas(document.body, {
|
|
width: 100,
|
|
height: 100,
|
|
x: 20,
|
|
y: 20
|
|
})
|
|
.then(
|
|
function (canvas) {
|
|
document.body.appendChild(canvas);
|
|
});
|
|
}
|
|
|
|
Do();
|
|
</script>
|
|
</body>
|
|
</html> |