-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
78 lines (63 loc) · 2.48 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<script src="js/jquery.js"></script>
<link rel="stylesheet" href="css/bootstrap.css">
<link rel="stylesheet" href="css/main.css">
</head>
<body>
<header>
<div class="main-header">
<div class="logo"><img src="images/Grid-grey-red.png" alt="" srcset=""></div>
<h1 class="text-white">Number of Rectangles in a given grid</h1>
</div>
</header>
<div class="row wrapper">
<div class="col-sm-12 col-xs-12 col-lg-6 col-md-8">
<section id="grid">
<table>
<tbody>
</tbody>
</table>
<div id="result">Rectangles Possible: </span> <span id="NumRectangles"></span></div>
</section>
</div>
<div class="col-xs-12 col-sm-12 col-lg-3 col-md-4 p-5 controls">
<h2 class="text-center">Controls</h2>
<p class="text-success">Click on any circle to remove point</p>
<p>Interact with grid here.</p>
<div style="width:180px" class="btn-group btn-group-toggle" data-toggle="buttons">
<label class="btn btn-secondary active">
<input type="radio" name="Rows number" id="" autocomplete="off" checked> Rows: <span id="numRows"></span>
</label>
<label class="btn btn-warning">
<input type="radio" name="options" id="AddRow" autocomplete="off"> +
</label>
<label class="btn btn-danger">
<input type="radio" name="options" id="SubRow" autocomplete="off"> -
</label>
</div>
<div style="width:180px" class="btn-group btn-group-toggle mt-5" data-toggle="buttons">
<label class="btn btn-secondary active">
<input type="radio" name="options" id="" autocomplete="off" checked> Column: <span id="numColumns"></span>
</label>
<label class="btn btn-warning">
<input type="radio" name="options" id="AddCol" autocomplete="off"> +
</label>
<label class="btn btn-danger">
<input type="radio" name="options" id="SubCol" autocomplete="off"> -
</label>
</div>
<div class="mt-5">
<button id="clearAll" type="button" class="btn btn-warning btn-sm">Clear All</button>
<button id='fillAll' type="button" class="btn btn-success btn-sm">Fill All</button>
</div>
</div>
</div>
<script src="js/rect.js"></script>
</body>
</html>