Advertisement
lemansky

Untitled

Dec 4th, 2020 (edited)
645
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 2.65 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html lang="en">
  3.   <head>
  4.     <meta charset="UTF-8">
  5.     <title>Document</title>
  6.     <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  7.     <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
  8.  
  9.     <script>
  10.         document.addEventListener("DOMContentLoaded", () => {
  11.             let canvas = document.getElementById("canvasId");
  12.             let context = canvas.getContext("2d");
  13.             let mouse;
  14.  
  15.            
  16.         });
  17.  
  18.         </script>
  19.     <style type="text/css">
  20.     #canvasId{
  21.         background: black;
  22.     }
  23.     </style>
  24. </head>
  25. <body class="p-2">
  26.     <div class="container-fluid">
  27.         <div class="row">
  28.             <div class="col-auto">
  29.                 <canvas id="canvasId" class="d-block" width="800" height="600"></canvas>
  30.             </div>
  31.             <div class="col-3">
  32.  
  33.                 <div class="form-check">
  34.                     <div class="d-inline-block mx-4">
  35.                         <input type="radio" id="shape1" name="shape" class="form-check-input" value="Rect" >
  36.                         <label class="form-check-label" for="shape1">Четириъгълник</label>
  37.                     </div>
  38.                     <div class="d-inline-block mx-4">
  39.                         <input type="radio" id="shape2" name="shape" class="form-check-input" value="Circle">
  40.                         <label class="form-check-label" for="shape2">Окръжност</label>
  41.                     </div>
  42.                 </div>
  43.  
  44.                 <div class="form-group mb-3">
  45.                     <label> Координат по X </label>
  46.                     <input class="form-control" id="posX" value="100"></input>
  47.                 </div>
  48.                 <div class="form-group mb-3">
  49.                     <label> Координат по Y </label>
  50.                     <input class="form-control" id="posY" value="100"></input>
  51.                 </div>
  52.                 <div class="form-group mb-3">
  53.                     <label> Широчина </label>
  54.                     <input class="form-control" id="sizeX" value="200"></input>
  55.                 </div>
  56.                 <div class="form-group mb-3">
  57.                     <label> Височина </label>
  58.                     <input class="form-control" id="sizeY" value="20"></input>
  59.                 </div>
  60.                 <div class="form-group d-grid">
  61.                     <input type="button" class="btn btn-info text-white" id="drawShape" value="Създай">
  62.                 </div>
  63.             </div>
  64.         </div>
  65.     </div>
  66. </body>
  67. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement