-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpopup.html
97 lines (91 loc) · 4.65 KB
/
popup.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
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<title>MME Extension</title>
<link href="css/bootstrap.css" rel="stylesheet" />
<link href="css/popup.css" rel="stylesheet" />
</head>
<body>
<div class="title-app text-center">
<span class="title-text">Highlighter Basic</span>
<span class="label label-success">0.1 beta</span>
</div>
<div>
<ul class="nav nav-tabs" role="tablist">
<li role="presentation" class="active"><a href="#home" aria-controls="home" role="tab" data-toggle="tab">Home</a></li>
<li role="presentation"><a href="#customCmd" aria-controls="customCmd" role="tab" data-toggle="tab">Custom hotkeys</a></li>
</ul>
<div class="tab-content">
<div role="tabpanel" class="tab-pane active" id="home">
<form class="form-horizontal" action="javascript:void(0);" method="post" id="form-import">
<div class="form-group">
<textarea rows="3" class="form-control" id="jsontext" placeholder="Enter your JSON data to import..." required autofocus></textarea>
</div>
<div class="form-group">
<button type="submit" class="btn btn-primary">
<span class="glyphicon glyphicon glyphicon-import" aria-hidden="true"></span> Import from text
</button>
<button class="btn btn-success" id="btn-file">
<span class="glyphicon glyphicon-open-file" aria-hidden="true"></span> Import from file
</button>
<input type="file" id="files" class="btn btn-success" name="files[]" accept=".json,.txt" multiple />
</div>
</form>
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">
<span class="glyphicon glyphicon glyphicon-cog" aria-hidden="true"></span>
Commands & using
</h3>
</div>
<div class="panel-body">
<code>Ctrl + B</code>: <span>make highlight for selected text.</span>
<br>
<code>Shift + N</code>: <span>move to next red point position.</span>
<br>
<code>Ctrl + Shift + F</code>: <span>create the highlight file (*.json).</span>
<br>
<code>Ctrl + Shift + L</code>: <span>clear the highlight data for this page.</span>
<br>
<br>
<strong>NOTICE</strong>: <span>If you created the highlight with null description then it will become to italic highlight.</span>
</div>
</div>
</div>
<div role="tabpanel" class="tab-pane" id="customCmd">
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">
<span class="glyphicon glyphicon glyphicon-cog" aria-hidden="true"></span>
Define hotkeys
</h3>
</div>
<div class="panel-body">
<code>Ctrl + B</code>
<input prop="makeHighlight" value="Ctrl_B" id="Ctrl_B" class="form-control" />
<br>
<code>Shift + N</code>
<input prop="scrollRedPoint" value="Ctrl_N" id="Shift_N" class="form-control" />
<br>
<code>Ctrl + Shift + F</code>
<input prop="createFile" value="Ctrl_Shift_F" id="CtrlShift_F" class="form-control" />
<br>
<code>Ctrl + Shift + L</code>
<input prop="clearData" value="Ctrl_Shift_L" id="CtrlShift_L" class="form-control" />
<br>
<div style="display:none" class="alert alert-success" role="alert"><span class="glyphicon glyphicon-ok" aria-hidden="true"></span> Changed success</div>
<br>
</div>
</div>
</div>
</div>
</div>
<footer class="text-center">
GitHub: <a href="https://github.com/jinhduong/highlighter-basic" target="_blank">github.com/jinhduong/highlighter-basic</a>
</footer>
<script src="libs/jquery.min.js"></script>
<script src="libs/bootstrap.js"></script>
<script src="popup.js"></script>
</body>
</html>