Skip to content

Commit

Permalink
refactor some files
Browse files Browse the repository at this point in the history
  • Loading branch information
BrokHoly committed Oct 28, 2024
1 parent b36003a commit ef42c85
Show file tree
Hide file tree
Showing 4 changed files with 57 additions and 202 deletions.
62 changes: 0 additions & 62 deletions canvas.html

This file was deleted.

21 changes: 0 additions & 21 deletions echo

This file was deleted.

87 changes: 0 additions & 87 deletions index..html

This file was deleted.

89 changes: 57 additions & 32 deletions index.html
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -4,51 +4,76 @@
<head>
<title>A simple canvas</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css">
<!-- <link href="bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css"> -->
<link href="canvas.css" rel="stylesheet" type="text/css">
</head>

<body>
<div class="container">
<div class="row">
<form>
<div class="mx-button">
<input type="radio" name="mx" id="butRect" checked>
<label for="butRect" unselectable>Rectangle</label>
<div id="container">
<div id="tools">
<div id="shapeSelector">
<div class="radioButton">
<input type="radio" name="mx" id="butRect" checked>
<label for="butRect" unselectable>Rectangle</label>
</div>
<div class="radioButton">
<input type="radio" name="mx" id="butLine">
<label for="butLine" unselectable>Line</label>
</div>
<div class="radioButton">
<input type="radio" name="mx" id="butCircle">
<label for="butCircle" unselectable>Circle</label>
</div>
<div class="radioButton">
<input type="radio" name="mx" id="butPoly">
<label for="butPoly" unselectable>Polygon</label>
</div>
<div id="sidesSelect">
<label for="polySides">Sides</label>
<input id="polySides" type="number" min="3" max="50" step="1" value="3" size="3">
</div>
<div id="backgroundSelect">
<label for="backgroundColor" unselectable>Background</label>
<input type="color" id="backgroundColor" value="#F0F0F0">
</div>
</div>
<div class="mx-button">
<input type="radio" name="mx" id="butLine">
<label for="butLine" unselectable>Line</label>
<div id="styleSelector">
<div>
<label for="lineStyle">Line Style</label>
<select name="" id="lineStyle">
<option value="solid">Solid</option>
<option value="dashed">Dashed</option>
<option value="dotted">Dotted</option>
<option value="dashdot">DashDot</option>
</select>
</div>
<div>
<label for="spinnerWidth">Thickness</label>
<input id="spinnerWidth" type="number" min="1" max="50" step="1" value="5" size="4">
</div>
<div>
<label for="colour">Color</label>
<input id="colour" type="color">
</div>
</div>
<div class="mx-button">
<input type="radio" name="mx" id="butCircle">
<label for="butCircle" unselectable>Circle</label>
</div>
<div class="mx-button">
<input type="radio" name="mx" id="butPoly">
<label for="butPoly" unselectable>Polygon</label>
</div>
</form>
<input id="spinnerWidth" type="number" min="1" max="50" step="1" value="5" size="4">
<input id="colour" type="color">
<input id="polySides" type="number" min="3" max="50" step="1" value="3" size="3">


</div>

<br/>

<div class="row">
<div class="col-md-8" id="canvasDiv">
<div id="workspace">
<div id="canvasDiv">
<canvas class="myCanvas" id="myCanvas"></canvas>
</div>

<div class="col-md-4">
<div id="shapeManager">
<div id="shapeListControllers">
<button id="clearButton">Clear All</button>
<div id="unreDo">
<button id="undoButton">Undo</button>
<button id="redoButton">Redo</button>
</div>
</div>
<ul class="list-unstyled" id="shapeList">
<!-- Here will stand the shapes's list -->
</ul>
</div>
</div>

</div>

<script src="jquery-2.1.3.min.js" type="text/javascript"></script>
Expand Down

0 comments on commit ef42c85

Please sign in to comment.