forked from stefangordon/dotmatrixtool
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
163 lines (141 loc) · 6.71 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
<!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="An online tool for generating C/C++ character or image byte arrays for dot matrix style OLED or LCD displays.">
<link rel="icon" href="favicon.png">
<title>Dot Matrix Tool - LCD Font Generator</title>
<link href="css/bootstrap.min.css" rel="stylesheet">
<!-- Custom styles for this template -->
<link href="cover.css" rel="stylesheet">
</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>
</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>
<div class="col-xs-12" style="height:20px;"></div>
<div style="display: flex;width: 100%;align-items: center;">
<textarea id="load_area" rows="1" cols="50" placeholder="Paste hex here to load" style="margin-right: 10px;"></textarea>
<div class="btn-group">
<button type="button" class="btn btn-default" id="loadButton">Load</button>
</div>
</div>
<div class="col-xs-12" style="height:20px;"></div>
<div class="btn-group">
<button type="button" class="btn btn-default" id="modeButton">Mode: Pencil</button>
</div>
<!-- Grid bits -->
<div class="col-xs-12" style="height:55px;"></div>
<div id="_grid" oncontextmenu="return false;"></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">
<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><a href="#">64</a></li>
<li><a href="#">128</a></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">
<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><a href="#">64</a></li>
<li><a href="#">128</a></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://www.stefangordon.com">Stefan Gordon</a>, <a href="https://twitter.com/stefangordon">@stefangordon</a>. Source at <a href="https://github.com/stefangordon/dotmatrixtool">GitHub</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>