Debian Codegraph @

docs/public/examples/hello-world.html

raw symbols SCIP
1
2 <!DOCTYPE html>
3 <html lang="en">
4 <head>
5 <meta charset="utf-8">
6 <meta http-equiv="x-ua-compatible" content="ie=edge">
7 <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
8 <title>Cropper.js</title>
9 <style>
10 .container {
11 margin: 20px auto;
12 max-width: 640px;
13 }
14
15 img {
16 max-width: 100%;
17 }
18
19 cropper-canvas {
20 height: 360px;
21 }
22 </style>
23 </head>
24 <body>
25 <div class="container">
26 <h1>Hello World</h1>
27 <img id="image" src="/cropperjs/picture.jpg" alt="Picture">
28 </div>
29 <script src="https://unpkg.com/cropperjs"></script>
30 <script>
31 window.addEventListener('DOMContentLoaded', function () {
32 const cropper = new Cropper.default('#image');
33
34 console.log(cropper);
35 });
36 </script>
37 </body>
38 </html>