Naloga 1: drag and drop

This commit is contained in:
Gašper Dobrovoljc
2024-10-23 15:43:29 +02:00
parent ff56a51b82
commit d825f4e090
2 changed files with 31 additions and 11 deletions

View File

@@ -7,7 +7,20 @@
<script defer src="script.js"></script>
</head>
<body style="margin: 0; padding: 0;">
<canvas id="canvas" width="512px" height="512px"></canvas>
<style>
body {
margin: 0;
padding: 0;
}
#drop-zone {
width: 100vw;
height: 100vh;
}
</style>
<body>
<div id="drop-zone">
<canvas id="canvas" width="512px" height="512px"></canvas>
</div>
</body>
</html>