-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpopup.html
193 lines (176 loc) · 6.56 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
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
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
<!doctype html>
<html>
<head>
<title>Save Links From Tabs</title>
<style>
:root {
--buttons-bg-color:rgba(0,0,0,0.04);
--buttons-bg-blur:blur(5px);
}
body {
margin: 0px;
min-width: 600px;
overflow-x: hidden;
}
main {
padding: 8px 8px 96px;
}
img {
margin: 5px;
border: 2px solid black;
vertical-align: middle;
width: 75px;
height: 75px;
}
.refresh {
cursor: pointer;
}
#top-section{
position: sticky;
top: 0px;
left: 0px;
width: 100vw;
}
#top-section p {
margin: 0px;
}
#trello-filters {
padding: 8px 8px 8px;
color: white;
background: #026AA7;
}
/* #trello-list-select-span {
white-space: nowrap;
} */
#trello-list-exact-position {
text-align: center;
}
#trello-list-exact-position:disabled {
display:none;
}
#chrome-tab-filters {
padding: 8px 8px 8px;
background: var(--buttons-bg-color);
backdrop-filter: var(--buttons-bg-blur);
}
#session-title-span, #session-tags-span {
white-space: nowrap;
}
#save-buttons {
position: fixed;
left: 0px;
bottom: 0px;
width: 100vw;
padding: 8px 8px 8px;
background: var(--buttons-bg-color);
backdrop-filter: var(--buttons-bg-blur);
}
</style>
<!--
- JavaScript and HTML must be in separate files: see our Content Security
- Policy documentation[1] for details and explanation.
-
- [1]: http://developer.chrome.com/extensions/contentSecurityPolicy.html
-->
</head>
<body>
<form id="the-form">
<div id="top-section">
<p id="trello-filters">
<span id="trello-list-select-span">
<label for="trello-workspaces">Workspace:</label>
<select id="trello-workspaces"></select>
<span id="refresh-workspaces" class="refresh">🔄</span>
<input id="open-trello-workspace" type="button" value="Go To Workspace">
<br>
<label for="trello-boards">Board:</label>
<select id="trello-boards"></select>
<span id="refresh-boards" class="refresh">🔄</span>
<input id="open-trello-board" type="button" value="Go To Board">
<br>
<label for="trello-lists">List:</label>
<select id="trello-lists"></select>
<span id="refresh-lists" class="refresh">🔄</span>
<label for="trello-list-position">Position:</label>
<select id="trello-list-position">
<!--<option value="default" selected>Default</option>-->
<option value="top">Top</option>
<option value="bottom">Bottom</option>
<!--<option value="precise">Precise</option>-->
</select>
<input type="number" id="trello-list-exact-position" min="1" max="5000" value="1" disabled>
<!--
<br>
Set Defaults:
<br>
Position:
<label for="trello-default-global-list-position">Global:</label>
<select id="trello-default-global-list-position">
<option value="most recent">Most Recent</option>
<option value="top" selected>Top</option>
<option value="bottom">Bottom</option>
<option value="precise">Precise</option>
</select>
<input type="number" id="trello-default-global-exact-list-position" min="1" max="5000" value="1" disabled>
<label for="trello-default-workspace-list-position">Workspace:</label>
<select id="trello-default-workspace-list-position">
<option value="most recent">Most Recent</option>
<option value="top" selected>Top</option>
<option value="bottom">Bottom</option>
<option value="precise">Precise</option>
</select>
<input type="number" id="trello-default-workspace-exact-list-position" min="1" max="5000" value="1" disabled>
<label for="trello-default-board-list-position">Board:</label>
<select id="trello-default-board-list-position">
<option value="most recent">Most Recent</option>
<option value="top" selected>Top</option>
<option value="bottom">Bottom</option>
<option value="precise">Precise</option>
</select>
<input type="number" id="trello-default-board-exact-list-position" min="1" max="5000" value="1" disabled>
<label for="trello-default-list-position">List:</label>
<select id="trello-default-list-position">
<option value="most recent">Most Recent</option>
<option value="top" selected>Top</option>
<option value="bottom">Bottom</option>
<option value="precise">Precise</option>
</select>
<input type="number" id="trello-default-exact-list-position" min="1" max="5000" value="1" disabled>
<br>
Save as:
<input type="radio" name="save-mode" value="cards-only"><label>Cards</label>
<input type="radio" name="save-mode" value="cards-with-attachments"><label>Cards w/ attachments</label>
<input type="radio" name="save-mode" value="attachments-only"><label>Attachments</label>
-->
</span>
</p>
<p id="chrome-tab-filters">
Tabs:
<br>
<span id="toggle-buttons">
<input id="select-all-button" type="button" value="Select All">
<input id="deselect-all-button" type="button" value="Deselect All">
<!--<input id="tag-editor-toggle" type="button" value="Show/Hide tag editor">-->
<input id="url-display-toggle" type="button" value="Show/Hide urls">
<select id="devices">
<option value="this-window">This Window</option>
</select>
</span>
</p>
</div>
<main>
<div id="bookmarks"></div>
</main>
<div id="save-buttons">
<div><span id="selected-count"></span></div>
<div><span id="results"></span></div>
<input id="save-selected" type="button" value="Save Selected">
<!--<input id="save-selected-close-selected" type="button" value="Save & Close Selected">-->
<!--<input id="save-selected-close-all" type="button" value="Save Selected, Close All">-->
</div>
</form>
<script src="jquery-3.6.1.js"></script>
<script src="api.js"></script>
<script src="popup.js"></script>
</body>
</html>