-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.html
163 lines (152 loc) · 5.74 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>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<meta name="application-name" content="Braille Printer">
<meta name="keywords" content="braille printer, 점자 프린터">
<meta name="description" content="Cloud Braille Printer, 클라우드 점자 프린터">
<title>Braille Printer</title>
<link rel="stylesheet" href="/static/bootstrap/css/bootstrap.min.css">
<link rel="stylesheet" href="/static/bootstrap/css/bootstrap-responsive.min.css">
<link rel="stylesheet" href="/static/index.css">
<style type="text/css">
body {
padding-top: 20px;
padding-bottom: 30px;
}
</style>
</head>
<body>
<div id="myModal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-body">
<p>점자 내용이 클라우드 프린터에 예약되었습니다. 잠시후 라벨 프린터로 출력됩니다.</p>
</div>
<div class="modal-footer">
<button class="btn btn-primary" data-dismiss="modal" aria-hidden="true">Close</button>
</div>
</div>
<!--
<div id="toast" style="position: absolute; top: 0; left: 430px; width: 500px; height: 26px; background-color: yellow; display: none; text-align: center; line-height: 26px;"></div>
-->
<div class="container" style="text-align: center;">
<div id="title-en" style="display: none;">
<h1 style="font-family: Arial">Braille Printer</h1>
<?xml version="1.0"?>
<svg width="394" height="46"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink">
<circle cx="18" cy="28" r="3" />
<circle cx="31" cy="8" r="3" />
<circle cx="31" cy="18" r="3" />
<circle cx="54" cy="8" r="3" />
<circle cx="54" cy="18" r="3" />
<circle cx="54" cy="28" r="3" />
<circle cx="64" cy="18" r="3" />
<circle cx="77" cy="8" r="3" />
<circle cx="100" cy="18" r="3" />
<circle cx="110" cy="8" r="3" />
<circle cx="123" cy="8" r="3" />
<circle cx="123" cy="18" r="3" />
<circle cx="123" cy="28" r="3" />
<circle cx="146" cy="8" r="3" />
<circle cx="146" cy="18" r="3" />
<circle cx="146" cy="28" r="3" />
<circle cx="169" cy="8" r="3" />
<circle cx="179" cy="18" r="3" />
<circle cx="225" cy="28" r="3" />
<circle cx="238" cy="8" r="3" />
<circle cx="238" cy="18" r="3" />
<circle cx="238" cy="28" r="3" />
<circle cx="248" cy="8" r="3" />
<circle cx="261" cy="8" r="3" />
<circle cx="261" cy="18" r="3" />
<circle cx="261" cy="28" r="3" />
<circle cx="271" cy="18" r="3" />
<circle cx="284" cy="18" r="3" />
<circle cx="294" cy="8" r="3" />
<circle cx="307" cy="8" r="3" />
<circle cx="307" cy="28" r="3" />
<circle cx="317" cy="8" r="3" />
<circle cx="317" cy="18" r="3" />
<circle cx="330" cy="18" r="3" />
<circle cx="330" cy="28" r="3" />
<circle cx="340" cy="8" r="3" />
<circle cx="340" cy="18" r="3" />
<circle cx="340" cy="28" r="3" />
<circle cx="353" cy="8" r="3" />
<circle cx="363" cy="18" r="3" />
<circle cx="376" cy="8" r="3" />
<circle cx="376" cy="18" r="3" />
<circle cx="376" cy="28" r="3" />
<circle cx="386" cy="18" r="3" />
</svg>
</div>
<div id="title-ko">
<h1 style="font-family: Airal">점자 프린터</h1>
<?xml version="1.0"?>
<svg width="302" height="46"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink">
<circle cx="18" cy="8" r="3" />
<circle cx="18" cy="28" r="3" />
<circle cx="31" cy="18" r="3" />
<circle cx="31" cy="28" r="3" />
<circle cx="41" cy="8" r="3" />
<circle cx="54" cy="18" r="3" />
<circle cx="64" cy="28" r="3" />
<circle cx="87" cy="8" r="3" />
<circle cx="87" cy="28" r="3" />
<circle cx="100" cy="8" r="3" />
<circle cx="100" cy="18" r="3" />
<circle cx="110" cy="28" r="3" />
<circle cx="146" cy="8" r="3" />
<circle cx="156" cy="8" r="3" />
<circle cx="156" cy="18" r="3" />
<circle cx="169" cy="18" r="3" />
<circle cx="179" cy="8" r="3" />
<circle cx="179" cy="28" r="3" />
<circle cx="202" cy="18" r="3" />
<circle cx="215" cy="8" r="3" />
<circle cx="215" cy="28" r="3" />
<circle cx="225" cy="18" r="3" />
<circle cx="238" cy="18" r="3" />
<circle cx="248" cy="8" r="3" />
<circle cx="261" cy="8" r="3" />
<circle cx="261" cy="18" r="3" />
<circle cx="271" cy="18" r="3" />
<circle cx="284" cy="18" r="3" />
<circle cx="284" cy="28" r="3" />
<circle cx="294" cy="8" r="3" />
</svg>
</div>
<div>
<input id="input" name="input" type="text" x-webkit-speech onwebkitspeechchange="do_braille()" lang="ko-KR">
</div>
<div style="margin-top: 10px;">
<button id="btn-braille" class="btn btn-primary">Braille</button>
</div>
<div id="ly-result" style="display: none;">
<div id="result"></div>
<!--
<textarea id="result" rows="1" cols="55" readonly="readonly"></textarea>
-->
<div>
<button id="btn-cloud-print" class="btn btn-success" style="height: 33px; font-size: 16px;">Cloud Print</button>
<button id="btn-print" class="btn btn-primary" style="height: 33px; font-size: 16px;">Print</button>
</div>
</div>
<div id="app-logo" style="display: none;">
<img src="/static/appengine-silver-120x30.gif" alt="Powered by Google App Engine" />
<img src="/static/appengine-go.jpg" alt="App Engine for Go" />
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.1/jquery.min.js"></script>
<script src="/static/jquery.printpage.js"></script>
<script src="/static/bootstrap/js/bootstrap.min.js"></script>
<script src="/static/index.js"></script>
<!-- GitHub Ribbon -->
<a id="ribbon" href="https://github.com/golanger/braille-printer" target="_blank"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png" alt="Fork me on GitHub"></a>
</body>
</html>