-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtestui.html
99 lines (71 loc) · 3.5 KB
/
testui.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
<!--
Font converter tool for my E INK projects. designed to work with my C++ libs
by nradiowave
Part of Volna 42 project | Actual version of tool can be found here https://volna42.com/tools/fontconverter
-->
<html>
<head>
<link href="common/style.css" rel="stylesheet">
<link href="fontConv/style.css" rel="stylesheet">
</head>
<body>
<div class="app-wrap">
<div class="app-header">
<b id="app-name"></b> <b id="app-version"></b> - тест интерфейса
</div>
<div class="app-body">
<div id="buttons" class="buttons">
<div class="test-ui-buttons"><button id="test-ui">Test UI 4.2</button><button id="test-ui42land">Test UI 4.2 land</button><button id="test-ui154">Test UI 1.54</button><button id="test-ui154clk">Test UI 1.54 Clock</button></div>
Повернуть экран :
<select id="screen-rotate">
<option value="0">0 градусов</option><option value="90">90 градусов</option><option value="180">180 градусов</option><option value="270">270 градусов</option>
</select>
<div id="notice"></div>
<div id="screen-output-buttons">
<button id="font-glyph-editor-display">Редактор символов</button>
<button id="font-to-cpp">C++ код шрифта</button>
<button id="font-to-js">JSON код шрифта</button>
<button id="image-to-cpp">С++ код картинки</button>
<button id="screen-to-cpp">Буфер экрана</button>
<button id="image-to-bin">bin-файл картинки</button>
</div>
</div>
<div class="screen-wrap">
<div id="screen-info"></div>
<div id="screen-wrap"><canvas id="screen"></canvas></div>
<div id="screen-glyphs"></div>
<div id="font-editor-glyph-edit">
</div>
<div id="screen-output-result"><textarea id="screen-output-result-data"></textarea></div>
</div>
<div style="clear : both;"></div>
</div>
<script type="text/javascript" src="fontConv/uitest/font17x17.js"></script> <!-- fontData_cbold17x17 -->
<script type="text/javascript" src="fontConv/uitest/font18x18.js"></script>
<script type="text/javascript" src="fontConv/fontConv/uitest/uitest/font22x22.js"></script>
<script type="text/javascript" src="fontConv/uitest/font44x44.js"></script> <!-- fontData_cbold44x44 -->
<script type="text/javascript" src="fontConv/uitest/cat115x125.js"></script>
<script type="text/javascript" src="fontConv/uitest/frog174x139.js"></script>
<script type="text/javascript" src="fontConv/uitest/ui4inch.js"></script>
<script type="text/javascript" src="fontConv/uitest/ui4inchLand.js"></script>
<script type="text/javascript" src="fontConv/uitest/ui154inch.js"></script>
<script type="text/javascript" src="fontConv/uitest/ui154inchClock.js"></script>
<!--script type="text/javascript" src="kellySimpleSlider.js"></script-->
<script type="text/javascript" src="fontConv/config.js"></script>
<script type="text/javascript" src="fontConv/locale.js"></script>
<script type="text/javascript" src="fontConv/fontConv.js"></script>
<script>
ENV.shortInit = true;
var controller = new KellyEInkConverter();
controller.setLocale(ENVLOC);
controller.init(ENV);
controller.initScreenRotate();
controller.initButtons();
document.getElementById('test-ui').onclick = testUI4in2;
document.getElementById('test-ui154').onclick = testUI1in54;
document.getElementById('test-ui154clk').onclick = testUI1in54Clock;
document.getElementById('test-ui42land').onclick = testUI4in2Land;
testUI4in2Land();
</script>
</body>
</html>