forked from trembacz/xpath-finder
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoptions.html
More file actions
90 lines (80 loc) · 2.17 KB
/
options.html
File metadata and controls
90 lines (80 loc) · 2.17 KB
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<style>
label {
padding: 5px;
margin-left: 5px;
min-width: 200px;
display: inline-block;
}
label span {
font-size: 0.9em;
}
#shortcut {
width: 20px;
}
.command {
font-weight: bold;
}
.desc {
display: block;
font-size: 0.9em;
padding: 5px;
margin-left: 5px;
}
.submit {
margin-left: 10px;
padding: 5px 10px;
background: #f9f9fa;
border: 1px solid #ccc;
}
.submit:hover {
background: #ebebeb;
cursor: pointer;
}
.status {
padding: 10px;
color: #008000;
min-height: 40px;
}
</style>
</head>
<body>
<form id="#xpath-form">
<div class="options-elem">
<label for="inspector">Highlight elements:</label>
<input checked id="inspector" type="checkbox">
</div>
<div class="options-elem">
<label for="copy">Auto copy to clipboard:</label>
<input checked id="copy" type="checkbox">
</div>
<div class="options-elem">
<label for="shortid">Short ID's: <span>eg. //*[@id="logo"]</span></label>
<input checked id="shortid" type="checkbox">
</div>
<div class="options-elem">
<label for="position">Xpath box align:</label>
<select id="position" class="icon">
<option value="tl">Top left</option>
<option value="tr">Top right</option>
<option value="br">Bottom right</option>
<option value="bl" selected>Bottom left</option>
</select>
</div>
<div class="options-elem">
<label for="shortcut">Keyboard shortcut:</label>
<span class="command">CTRL+SHIFT+</span>
<input type="text" required maxlength="1" id="shortcut" pattern="[A-Z]">
<button id="reset" type="reset">Reset</button>
<span class="desc">Shortcut is editable only in Firefox version of extension. Only A-Z capital letters allowed,
please remember that you can't override browser default shortcuts.</span>
</div>
<div class="status"></div>
<button type="submit" class="submit">Save options</button>
</form>
<script src="options.js"></script>
</body>
</html>