-
Notifications
You must be signed in to change notification settings - Fork 365
/
index.tpl
167 lines (142 loc) · 8.81 KB
/
index.tpl
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
<!DOCTYPE html>
<html lang="${lang.lang}">
<head>
<meta charset="UTF-8">
<title>FontEditor</title>
<link rel="shortcut icon" href="dep/favicon.ico" type="image/x-icon">
<link rel="stylesheet" type="text/css" href="./dep/bootstrap/css/bootstrap.min.css">
</head>
<body>
<section class="navbar" role="navigation">
<div class="logo"></div>
<div class="action-groups btn-groups">
<button data-action="add-new" type="button" class="btn btn-flat btn-new btn-sm"><i class="ico ico-left i-add"></i>${lang.newglyph}</button>
<i class="split"></i>
<button data-disabled="1" data-action="undo" type="button" class="btn btn-flat btn-ico" title="${lang.undo}"><i class="ico i-undo"></i></button>
<button data-disabled="1" data-action="redo" type="button" class="btn btn-flat btn-ico" title="${lang.redo}"><i class="ico i-redo"></i></button>
<i class="split"></i>
<div class="btn-group">
<button type="button" class="btn btn-flat btn-sm dropdown-toggle" data-toggle="dropdown">
${lang.import}
<span class="ico i-down"></span>
</button>
<ul class="dropdown-menu" role="menu">
<li data-disabled="1" data-action="import" title="${lang.import_svg_title}"><a>${lang.import_svg}</a></li>
<li data-disabled="1" data-action="import-pic" title="${lang.import_pic_title}"><a>${lang.import_pic}</a></li>
<li data-disabled="1" data-action="import" title="${lang.import_font_title}"><a>${lang.import_font}</a></li>
<li data-action="add-online"><a>${lang.onlinefont}</a></li>
<li data-action="add-url"><a>${lang.fonturl}</a></li>
<li data-action="sync-from-server"><a>${lang.syncfromserver}</a></li>
</ul>
</div>
<i class="split"></i>
<a data-disabled="1" id="export-btn" href="#" data-action="export" data-type="ttf" class="btn btn-flat btn-ico" title="${lang.export_ttf}"><i class="ico i-ttf"></i></a>
<a data-disabled="1" id="export-btn-woff" href="#" data-action="export" data-type="woff" class="btn btn-flat btn-ico" title="${lang.export_woff}"><i class="ico i-woff"></i></a>
<a data-disabled="1" id="export-btn-woff" href="#" data-action="export" data-type="woff2" class="btn btn-flat btn-ico" title="${lang.export_woff2}"><i class="ico i-woff2"></i></a>
<a data-disabled="1" id="export-btn-zip" href="#" data-action="export" data-type="zip" class="btn btn-flat btn-ico" title="${lang.export_zip}"><i class="ico i-zip"></i></a>
<i class="split"></i>
<button data-disabled="1" data-action="save" type="button" class="btn btn-flat btn-sm"><i class="ico ico-left i-save"></i>${lang.save_proj}</button>
<div class="btn-group">
<button type="button" class="btn btn-flat btn-sm dropdown-toggle" data-toggle="dropdown">
${lang.tool}
<span class="drop ico i-down"></span>
</button>
<ul class="dropdown-menu" role="menu">
<li><a data-disabled="1" data-action="setting-glyf-name">${lang.gen_glyph_name}</a></li>
<li><a data-disabled="1" data-action="setting-glyf-clearname">${lang.clear_glyph_name}</a></li>
<li><a data-disabled="1" data-action="setting-optimize">${lang.optimize_glyph}</a></li>
<li><a data-disabled="1" data-action="setting-sort">${lang.sort_glyf}</a></li>
<li><a data-disabled="1" data-action="setting-compound2simple">${lang.compound2simple}</a></li>
</ul>
</div>
<div class="btn-group">
<button type="button" class="btn btn-flat btn-sm dropdown-toggle" data-toggle="dropdown">
${lang.setting}
<span class="drop ico i-down"></span>
</button>
<ul class="dropdown-menu" role="menu">
<li><a data-disabled="1" data-action="setting-name">${lang.fontinfo}</a></li>
<li><a data-disabled="1" data-action="setting-metrics">${lang.metrics}</a></li>
<li><a data-action="setting-editor">${lang.editor_setting}</a></li>
<li><a data-action="setting-import-and-export">${lang.import_and_export}</a></li>
</ul>
</div>
<i class="split"></i>
<div class="btn-group">
<button type="button" class="btn btn-flat btn-preview btn-sm dropdown-toggle" data-toggle="dropdown">
${lang.preview}
<span class="drop ico i-down"></span>
</button>
<ul class="dropdown-menu" role="menu">
<li><a data-disabled="1" data-format="ttf" data-action="preview">${lang.preview_ttf}</a></li>
<li><a data-disabled="1" data-format="woff2" data-action="preview">${lang.preview_woff2}</a></li>
<li><a data-disabled="1" data-format="woff" data-action="preview">${lang.preview_woff}</a></li>
<li><a data-disabled="1" data-format="svg" data-action="preview">${lang.preview_svg}</a></li>
<li><a data-disabled="1" data-format="eot" data-action="preview">${lang.preview_eot}</a></li>
</ul>
</div>
</div>
<div class="switch-lang">
<a href="./index.html">中文</a> |
<a href="./index-en.html">English</a>
</div>
<a class="ico i-github forkme" href="https://github.com/ecomfe/fonteditor" target="_blank">Fork me on Github</a>
<a class="ico i-help userguide" href="https://kekee000.github.io/fonteditor-doc/" target="_blank">${lang.help}</a>
</section>
<section class="sidebar">
<div class="project-btns action-groups">
<button data-action="new" type="button" class="btn btn-flat btn-sm" title="${lang.new_font_title}"><i class="ico ico-left i-new"></i>${lang.new_font}</button><button data-action="open" type="button" class="btn btn-flat btn-sm" title="${lang.open_font_title}"><i class="ico ico-left i-open"></i>${lang.open_font}</button>
</div>
<div class="project">
<div class="project-title">${lang.project_list}</div>
<div id="project-list" class="project-list"></div>
</div>
</section>
<section class="main">
<div id="glyf-list-spliter" class="spliter"></div>
<ul id="glyf-list-commandmenu" class="command-groups"></ul>
<div id="glyf-list-pager" class="pager"></div>
<div id="glyf-list" class="glyf-list"></div>
</section>
<section class="editor">
<ul id="editor-commandmenu" class="command-groups"></ul>
<i class="ico i-leave close-editor" title="${lang.close_editor}"></i>
<div id="glyf-editor" class="glyf-editor" oncontextMenu="return false"></div>
</section>
<div class="modal" id="model-dialog" tabindex="-1" role="dialog" aria-labelledby="model-label" aria-hidden="true" data-backdrop="false">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">关闭</span></button>
<h4 class="modal-title" id="model-label">${lang.setting}</h4>
</div>
<div class="modal-body"></div>
<div class="modal-footer">
<button type="button" class="btn btn-flat btn-sm" data-dismiss="modal">${lang.cancel}</button>
<button type="button" class="btn btn-flat btn-sm btn-confirm">${lang.confirm}</button>
</div>
</div>
</div>
</div>
<div id="selection-range" class="selection-range"></div>
<div id="loading" class="loading"><span>${lang.msg_loading}</span></div>
<form id="font-form" style="width:0px;height:0px;overflow:hidden;"><input id="font-import" type="file" multiple="multiple"></form>
<iframe id="sync-frame" name="sync-frame" width="0" height="0" frameborder="0" style="display:none;"></iframe>
<script src="./dep/jquery.min.js"></script>
<script src="./dep/jqColorPicker.min.js"></script>
<script src="./dep/bootstrap/js/bootstrap.min.js"></script>
<script src="./dep/hidpi-canvas.js"></script>
<script>
window.language = '${lang.lang}';
</script>
<script>
var _hmt = _hmt || [];
/baidu.com$/.test(location.hostname) && (function() {
var hm = document.createElement("script");
hm.src = "//hm.baidu.com/hm.js?65ce30cdeda584c416e39648915689f7";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
</script>
</body>
</html>