-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.html
61 lines (55 loc) · 2.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
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="css/style.css">
<title>XBM Viewer and Converter</title>
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=0, shrink-to-fit=no">
</head>
<body>
<div id="editor-tools">
<button id="convert-image-to-xbm-button" onclick="onConvertButtonClick()">Convert Image to XBM</button>
<button id="download-file-button" onclick="onDownloadFileClick()">Download XBM File</button>
<button id="convert-image-to-xbm-button" onclick="reset()">Reset</button>
<input type="file" id="convert-image-to-xbm-input-file" accept="image/*" onchange="onConvertInputFileChange(event)" />
<textarea id="xbm-value-textarea" onkeyup="onTextAreaChange(event)" spellcheck="false">
#define logo_width 30
#define logo_height 30
static unsigned char logo_bits[] = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
</textarea>
</div>
<div id="screen-container">
<div id="screen"></div>
</div>
<div id="convert-image-to-xbm-container">
<div id="convert-image-to-xbm">
<div id="convert-image-to-xbm-top">
<span>Convert</span>
<span id="convert-image-to-xbm-back" onclick="closeConvertContainer()">Back</span>
</div>
<canvas id="convert-image-to-xbm-canvas"></canvas>
<form id="convert-image-to-xbm-form">
<div id="convert-image-to-xbm-form-resize">
<input type="number" placeholder="width" id="convert-image-to-xbm-width-input" />
<span>x</span>
<input type="number" placeholder="height" id="convert-image-to-xbm-height-input" />
</div>
<input type="submit" value="Convert" />
</form>
</div>
</div>
<script type="text/javascript" src="js/xbm-values.js"></script>
<script type="text/javascript" src="js/monochrome.js"></script>
<script type="text/javascript" src="js/script.js"></script>
<script type="text/javascript" src="js/convert-script.js"></script>
</body>
</html>