-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpopup.html
142 lines (142 loc) · 6.73 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>DOM Capture</title>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Open+Sans" type="text/css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.1/css/all.min.css"
integrity="sha512-+4zCK9k+qNFUR5X+cKL9EIR+ZOhtIloNl9GIKS57V1MyNsYpYcUrUeQc9vNfzsWfV28IaLL3i96P9sdNyeRssA=="
crossorigin="anonymous"/>
<link rel="stylesheet" href="lib/bootstrap.min.css" type="text/css">
<link rel="stylesheet" href="lib/jquery-editable-select.min.css" type="text/css">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body>
<div id="modal" class="dc-modal" style="display: none; opacity: 0;">
<div id="loading" class="dc-modal-content" style="display: none;">
<div class="dc-modal-v-center">
<div class="spinner-border text-primary" role="status">
<span class="sr-only">Loading...</span>
</div>
<div class="dc-loading-text dc-modal-text">Please wait...</div>
</div>
</div>
<div id="error" class="dc-modal-content" style="display: none;">
<div class="dc-modal-v-center">
<i class="fa fa-exclamation-triangle"></i>
<span id="error-text" class="dc-modal-text"></span>
<div>
<button id="closeErrorModal" type="button" class="btn btn-primary">Close</button>
</div>
</div>
</div>
<div id="modal-ok" class="dc-modal-content" style="display: none;">
<div class="dc-modal-v-center">
<i class="fa fa-check-circle"></i>
<span class="dc-modal-text">Image successfully stored.</span>
<div>
<button id="closeOkModal" type="button" class="btn btn-primary">Close</button>
</div>
</div>
</div>
</div>
<div class="capture-header">
<h1>DOM Capture <span class="version">(1.0.1)</span></h1>
</div>
<div class="capture-content">
<div class="d-flex">
<select id="favorites" placeholder="Favorites">
</select>
<button id="saveFavorite" type="button" class="btn btn-success btn-sm"><i class="fa fa-save"></i></button>
</div>
<textarea class="form-control" id="selector" rows="3" placeholder="Selector"></textarea>
<div class="settings-dropdown">
<a id="settings-btn" data-toggle="collapse" href="#settings" role="button" aria-expanded="false">
Settings <i class="fa fa-chevron-up"></i>
</a>
</div>
<div id="settings" class="settings collapse">
<div class="settings-content container">
<div class="settings-row settings-bg-color d-flex justify-content-between">
<div>
Background
</div>
<div>
<div class="input-group">
<div class="input-group-btn">
<div class="btn-group">
<span title="Toggle color picker"
class="btn btn-sm btn-primary dc-color-input-switcher"
data-original-title="Switch color picker"><i
class="fa fa-paint-brush"></i></span>
</div>
</div>
<input id="bgColor" value="" placeholder="default"
class="form-control form-control-sm pre-input-color" type="text">
<div class="input-group-btn">
<div class="btn-group">
<span title="Empty" class="btn btn-sm btn-danger dc-color-input-clearer"
data-original-title="Empty Field"><i class="fa fa-times"></i></span>
</div>
</div>
</div>
</div>
</div>
<div class="settings-row settings-layout d-flex justify-content-between">
<div>
Multi Element Layout
</div>
<div class="btn-group btn-group-sm" data-toggle="buttons">
<label class="btn btn-primary form-check-label" title="keep">
<input class="form-check-input" type="radio" name="options" id="layout-keep"
autocomplete="off">
<i class="fa fa-expand"></i>
</label>
<label class="btn btn-primary form-check-label" title="vertical">
<input class="form-check-input" type="radio" name="options" id="layout-vertical"
autocomplete="off">
<i class="fa fa-arrows-alt-v"></i>
</label>
<label class="btn btn-primary form-check-label" title="horizontal">
<input class="form-check-input" type="radio" name="options" id="layout-horizontal"
autocomplete="off">
<i class="fa fa-arrows-alt-h"></i>
</label>
</div>
</div>
<div class="settings-row settings-traversal d-flex justify-content-between">
<div>
DOM Traversal
</div>
<div class="btn-group btn-group-sm" data-toggle="buttons">
<label class="btn btn-primary form-check-label" title="document">
<input class="form-check-input" type="radio" name="options" id="traversal-document"
autocomplete="off">
Document
</label>
<label class="btn btn-primary form-check-label" title="user">
<input class="form-check-input" type="radio" name="options" id="traversal-user"
autocomplete="off">
User
</label>
</div>
</div>
</div>
</div>
</div>
<div class="capture-footer d-flex justify-content-between">
<div>
<button id="clipboard" type="button" class="btn btn-primary">Copy to Clipboard</button>
<button id="file" type="button" class="btn btn-success">Save as Image</button>
</div>
<button id="help" type="button" class="btn btn-info">
<i class="fa fa-question"></i>
</button>
</div>
<script src="lib/jquery-3.5.1.min.js"></script>
<script src="lib/jquery-editable-select.min.js"></script>
<script src="lib/bootstrap.min.js"></script>
<script src="popup.js"></script>
</body>
</html>