forked from stefangordon/dotmatrixtool
-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
177 lines (147 loc) · 7.08 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
<!DOCTYPE html>
<html lang="en">
<head>
<link href='https://fonts.googleapis.com/css?family=Roboto+Mono:400,500' rel='stylesheet' type='text/css'>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<meta name="description" content="You can use this tool to draw dot matrix and get cpp code, dot matrix to c++ array.">
<meta name="author" content="Mahmoud Al-Omoush">
<link rel="icon" href="favicon.png">
<title>Dot Matrix Tool</title>
<link href="css/bootstrap.min.css" rel="stylesheet">
<!-- Custom styles for this template -->
<link href="cover.css" rel="stylesheet">
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-151319159-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-151319159-1');
</script>
</head>
<body>
<nav class="navbar navbar-inverse navbar-fixed-top">
<div class="container">
<div class="navbar-header">
<a class="navbar-brand" href="#">Dot Matrix Tool</a>
<div class="navbar-brand " href="#">
( <span id="coor_row">Col</span> ,
<span id="coor_col">Row</span> )
</div>
</div>
</div>
</nav>
<!-- Body Contents -->
<div class="site-wrapper">
<div class="site-wrapper-inner">
<div class="cover-container">
<div class="inner cover">
<!-- instructions -->
<p class="text-muted">Left mouse button to draw. Right mouse button (or ctrl+left) to erase.</p>
<!-- Grid bits -->
<div class="col-xs-12" style="height:55px;"></div>
<div id="_grid" oncontextmenu="return false;" style="display: flex;justify-content: center;align-items: center;width: 100%;"></div>
<div class="col-xs-12" style="height:20px;"></div>
<!-- Options -->
<div class="btn-group">
<button type="button" class="btn btn-default" id="generateButton">Generate</button>
</div>
<div class="btn-group">
<button type="button" class="btn btn-default" id="clearButton">Clear</button>
</div>
<br/>
<div class="col-xs-12" style="height:10px;"></div>
<div class="btn-group">
<div class="dropdown" id="widthDropDiv">
<button class="btn btn-default dropdown-toggle" type="button" id="widthDrop" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
Width
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="widthDrop" id="dropdown_width">
<li><a href="#">4</a></li>
<li><a href="#">6</a></li>
<li><a href="#">8</a></li>
<li><a href="#">16</a></li>
<li><a href="#">24</a></li>
<li><a href="#">32</a></li>
<li><input class="text_list" type="number" id="add_width" min="2" value="2"/></li>
</ul>
</div>
</div>
<div class="btn-group">
<div class="dropdown" id="heightDropDiv">
<button class="btn btn-default dropdown-toggle" type="button" id="heightDrop" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
Height
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="heightDrop" id="dropdown_height">
<li><a href="#">8</a></li>
<li><a href="#">16</a></li>
<li><a href="#">24</a></li>
<li><a href="#">32</a></li>
<li><input class="text_list" type="number" id="add_height" min="4" value="4" ></li>
</ul>
</div>
</div>
<!-- Options - Byte Order -->
<div class="btn-group">
<div class="dropdown" id="byteDropDiv">
<button class="btn btn-default dropdown-toggle" type="button" id="byteDrop" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
Byte Order
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="heightDrop">
<li><a href="#">Row Major</a></li>
<li><a href="#">Column Major</a></li>
</ul>
</div>
</div>
<!-- Options - Endian -->
<div class="btn-group">
<div class="dropdown" id="endianDropDiv">
<button class="btn btn-default dropdown-toggle" type="button" id="endianDrop" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
Endian
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="heightDrop">
<li><a href="#">Big Endian (MSB)</a></li>
<li><a href="#">Little Endian (LSB)</a></li>
</ul>
</div>
</div>
<!-- Summary -->
<div class="col-xs-12" style="height:20px;"></div>
<div id ="_summary"></div>
<!-- Output -->
<div class="col-xs-12" style="height:20px;"></div>
<div>
<pre id="_output" class="prettyprint lang-c"></pre>
</div>
</div>
<!-- footer -->
<div class="col-xs-12" style="height:20px;"></div>
<footer class="footer">
<p class="text-muted">Created By <a href="http://mahmod.dev" target="_blank">Mahmoud Al-Omoush</a>, Source at <a href="https://github.com/m7modg97/dotmatrix">GitHub</a></p>
<p class="text-muted"> Forked From <a href="https://github.com/stefangordon/dotmatrixtool">Stefan Gordon</a> </p>
</footer>
</div>
</div>
</div>
<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<link href="prettify/prettify.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="prettify/prettify.js"></script>
<script src="app.js"></script>
</body>
</html>