-
Notifications
You must be signed in to change notification settings - Fork 0
/
quomediaview.html
274 lines (225 loc) · 18.5 KB
/
quomediaview.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
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
<!DOCTYPE html>
<html>
<head>
<!--
For updates go to https://github.com/Qronikarz/QuoMediaView
This software is licensed as AGPL 3.0, you should have received a copy of the license in the files
-->
<meta charset="UTF-8" />
<link rel="icon" href="qmvfiles/quomediaview.svg" type="image/svg+xml" />
<title id="pagetitle">QuoMediaView</title>
<link rel="stylesheet" href="qmvfiles/styles.css" />
<link rel="stylesheet" id="themingfile" href="qmvfiles/theme_ultradark.css" />
<style id="easystylechange_searchbar"></style>
<style id="easystylechange_blocklist"></style>
<style id="easystylechange_b_picture"></style>
<style id="easystylechange_b_animated"></style>
<style id="easystylechange_b_video"></style>
<style id="easystylechange_filethumbs"></style>
</head>
<body>
<div id="wrapping_box">
<div id="menu">
<div id="menu_top">
<span id="functionless_logo" class="qmv_logo_text">QMV</span>
<a href="" id="qmv_logo" class="qmv_logo_text no_display_on_start" title="QuoMediaView" onclick="document.getElementById('searchbar').value = ''; searching(''); return false">QMV</a>
<span id="save_warning" class="no_display_on_start">⚠!</span><br />
<div id="menu_controls" class="no_display_on_start">
<form onsubmit="searching(document.getElementById('searchbar').value); return false" id="search">
<input type="text" id="searchbar" list="available_tags_datalist" /><input type="reset" value="X" /> <input type="submit" value="→" />
</form>
<input type="button" onclick="section_open('settings')" value="Settings" />
<datalist id="available_tags_datalist"></datalist>
</div>
</div>
<div id="menu_list">
<ul id="tags_list"></ul>
</div>
<div id="menu_sidesettings" class="no_display_on_start">
<br />
Blocked tags:
<div id="blocklist"></div><br /><hr />
<input type="button" onclick="section_close('generalexit')" value="Close settings" /><input type="button" onclick="section_open('qmvinfostats')" value="QMV Info" /><br /><br />
Theme switch:<br />
<div class="theme_button" onclick="settings_changer('chosentheme_ultradark')">☾<input type="radio" name="themeswitch" id="sidesetting_chosentheme_ultradark" onclick="settings_changer('chosentheme_ultradark')" /></div>
<div class="theme_button" onclick="settings_changer('chosentheme_lightlite')">☼<input type="radio" name="themeswitch" id="sidesetting_chosentheme_lightlite" onclick="settings_changer('chosentheme_lightlite')" /></div><br /><br />
<input type="checkbox" id="sidesetting_customthumbnails" onchange="settings_changer('customthumbnails')" /><label for="sidesetting_customthumbnails">Use thumbnails</label><br />
<input type="checkbox" id="sidesetting_filethumbaspectratio" onchange="settings_changer('filethumbaspectratio')" /><label for="sidesetting_filethumbaspectratio">Keep aspect ratio</label><br />
<input type="checkbox" id="sidesetting_previewresults" onchange="settings_changer('previewresults')" /><label for="sidesetting_previewresults">Preview media that don't have custom set thumbnails</label><br /><br />
<label for="sidesetting_filethumbsize">Thumbnails size:</label><br />
<input type="range" id="sidesetting_filethumbsize" min="20" max="800" onchange="settings_changer('filethumbsize')" /><br /><br />
<label for="sidesetting_maxshownresults">Max files on single page:</label><br />
<input type="number" id="sidesetting_maxshownresults" min="1" onchange="settings_changer('maxshownresults')" /><br /><br />
<label for="sidesetting_infoicon">Info icon:</label><br />
<input type="text" id="sidesetting_infoicon" onchange="settings_changer('infoicon')" /><br /><br />
<label for="sidesetting_sidepanelwidth">Side preview panel size:</label><br />
<input type="range" id="sidesetting_sidepanelwidth" min="20" max="60" onchange="settings_changer('sidepanelwidth')" /><br /><br />
Left click mode:<br />
<input type="radio" name="leftmouseclickswitch" id="sidesetting_leftmouseclick_sidepanelpreview" onclick="settings_changer('leftmouseclick_sidepanelpreview')" /><label for="sidesetting_leftmouseclick_sidepanelpreview">Side panel</label>
<input type="radio" name="leftmouseclickswitch" id="sidesetting_leftmouseclick_lightbox" onclick="settings_changer('leftmouseclick_lightbox')" /><label for="sidesetting_leftmouseclick_lightbox">Lightbox</label><br /><br />
<input type="color" id="sidesetting_searchbar" onchange="settings_changer('searchbar')" /><label for="sidesetting_searchbar">Color of searchbar</label><br />
<input type="color" id="sidesetting_blocklist" onchange="settings_changer('blocklist')" /><label for="sidesetting_blocklist">Color of blocklist</label><br /><br />
File border colors:<br />
<input type="color" id="sidesetting_b_picture" onchange="settings_changer('b_picture')" /><label for="sidesetting_b_picture">Picture</label><br />
<input type="color" id="sidesetting_b_animated" onchange="settings_changer('b_animated')" /><label for="sidesetting_b_animated">Animated</label><br />
<input type="color" id="sidesetting_b_video" onchange="settings_changer('b_video')" /><label for="sidesetting_b_video">Video</label><br /><br />
Search results viewing mode:<br />
<input type="radio" name="mainviewmode" id="sidesetting_resultsviewmode_gridview" onclick="settings_changer('resultsviewmode_gridview')" /><label for="sidesetting_resultsviewmode_gridview">Grid</label>
<input type="radio" name="mainviewmode" id="sidesetting_resultsviewmode_listview" onclick="settings_changer('resultsviewmode_listview')" /><label for="sidesetting_resultsviewmode_listview">List</label><br /><br />
<label for="sidesetting_baselocation">Virtual location:</label><br />
<input type="text" id="sidesetting_baselocation" value="" onchange="settings_changer('baselocation')" /><br /><br />
<input type="button" onclick="settings_default('all')" value="Reset default settings" />
</div>
<div id="singlefileview_infobox" class="no_display_on_start">
<div class="theme_button" onclick="document.getElementById('themingfile').href='qmvfiles/theme_ultradark.css'">☾<input type="radio" name="switch_theme" id="switch_dark" onclick="document.getElementById('themingfile').href='qmvfiles/theme_ultradark.css'" checked /></div>
<div class="theme_button" onclick="document.getElementById('themingfile').href='qmvfiles/theme_lightlite.css'">☼<input type="radio" name="switch_theme" id="switch_light" onclick="document.getElementById('themingfile').href='qmvfiles/theme_lightlite.css'" /></div><br /><br />
<h5>File location and name:</h5>
<div id="singlefileview_fileinfo_locationname" class="fileinfo_texts can_break_sentences"></div>
<h5>Description:</h5>
<div id="singlefileview_fileinfo_description" class="fileinfo_texts"></div>
<h5>Tags:</h5>
<div id="singlefileview_fileinfo_tags" class="fileinfo_texts"></div>
<h5>Details:</h5>
<div id="singlefileview_fileinfo_details" class="fileinfo_texts"></div>
<h5>Full path:</h5>
<div id="singlefileview_fileinfo_fullpath" class="fileinfo_texts can_break_sentences"></div>
<h5>Tools:</h5>
<div id="singlefileview_fileinfo_tools" class="fileinfo_texts">
<input type="button" onclick="file_rotate('singlefileview','left')" value="↶" title="Rotate left" />
<input type="button" onclick="file_rotate('singlefileview','right')" value="↷" title="Rotate right" /><br />
<input type="number" id="cssf_b" onchange="file_cssfilter('singlefileview','brightness',document.getElementById('cssf_b').value)" value="100" min="0" max="1000" step="5" /> Brightness<br />
<input type="number" id="cssf_c" onchange="file_cssfilter('singlefileview','contrast',document.getElementById('cssf_c').value)" value="100" min="0" max="1000" step="5" /> Contrast<br />
<input type="number" id="cssf_h" onchange="file_cssfilter('singlefileview','hue-rotate',document.getElementById('cssf_h').value)" value="0" min="0" max="360" step="5" /> Hue-rotate<br />
<input type="number" id="cssf_i" onchange="file_cssfilter('singlefileview','invert',document.getElementById('cssf_i').value)" value="0" min="0" max="100" step="5" /> Invert<br />
<input type="number" id="cssf_s" onchange="file_cssfilter('singlefileview','saturate',document.getElementById('cssf_s').value)" value="100" min="0" max="1000" step="5" /> Saturate<br />
</div>
</div>
</div>
<div id="singlefileview" class="mainviewsection no_display_on_start">
<div id="singlefileview_main">
<div id="singlefileview_filebox"></div>
</div>
</div>
<div id="filesedit" class="mainviewsection no_display_on_start">
<div id="filesedit_buttonstopbar">
<input type="button" onclick="section_close('filesedit')" value="Close" title="Close edit mode" />
<input type="button" onclick="file_switch('previous','filesedit')" value="←" title="Previous file" />
<input type="button" onclick="file_switch('next','filesedit')" value="→" title="Next file" />
<input type="button" onclick="file_switch('random','filesedit')" value="Random" title="Move to a random file" />
<input type="button" onclick="file_changer('delete','')" value="Delete file from database" />
</div>
<div id="filesedit_main">
<div id="filesedit_filebox"></div><br />
File path:<br />
<input type="text" id="filesedit_file_foldermain" onchange="file_changer('folder','main')" placeholder="folder/" list="qmv_available_folders_list" /> <input type="text" id="filesedit_file_namemain" onchange="file_changer('name','main')" placeholder="file.type" /> <input type="file" id="filesedit_nameupload" onchange="document.getElementById('filesedit_file_namemain').value = document.getElementById('filesedit_nameupload').files[0].name; file_changer('name','main')" /><br />
Thumbnail path:<br />
<input type="text" id="filesedit_file_folderthumb" onchange="file_changer('folder','thumb')" placeholder="folder/" list="qmv_available_folders_list" /> <input type="text" id="filesedit_file_namethumb" onchange="file_changer('name','thumb')" placeholder="file.type" /> <input type="file" id="filesedit_thumbupload" onchange="document.getElementById('filesedit_file_namethumb').value = document.getElementById('filesedit_thumbupload').files[0].name; file_changer('name','thumb')" /><br />
Other details:<br />
<input type="text" id="filesedit_file_description" onchange="file_changer('description','')" placeholder="description" /><br />
File tags:<br />
<div id="filesedit_file_tags"></div><br /><br />
<datalist id="qmv_available_folders_list"></datalist>
</div>
<input type="button" onclick="tags_changer('group','','quickcreate')" value="Add new tag group" />
<form onsubmit="file_changer('tag-add',return_tag_id(document.getElementById('tagsearch_add').value)); document.getElementById('tagsearch_add').value = ''; return false"><label for="tagsearch_add">Search tag to add: </label><input type="text" id="tagsearch_add" list="available_tags_datalist" /><input type="submit" value="→" /></form>
<div id="filesedit_tagcellsbox"></div><br />
</div>
<div id="tagsedit" class="mainviewsection no_display_on_start">
<input type="button" onclick="section_close('generalexit')" value="Close" /> <input type='button' onclick="tags_changer('group','','create')" value='Add new tag group at the bottom' /><br /><br />
<div id="tagsedit_form"></div>
</div>
<div id="qmvinfostats" class="mainviewsection no_display_on_start">
<input type="button" onclick="section_close('generalexit')" value="Close" /><br /><br />
<div id="qmv_info_logo"><img src="qmvfiles/quomediaview.svg" alt="QuoMediaView logo" id="qmv_info_logo_svg" />MV</div>
QuoMediaView v0.3<br /><br />
<input type="button" onclick="section_open('tagsedit')" value="Edit tags" /><br />
<input type="file" onchange="file_upload()" id="file_uploader" multiple /><label for="file_uploader"> - Add new files</label><br />
<input type="button" onclick="tagsorter()" value="Sort tags in every group" /><br /><br />
<input type="button" onclick="export_qmv('empty')" value="Export empty QMV data" /><input type="button" onclick="export_qmv('current')" value="Export current QMV data" /><br />
<input type="text" id="qmv_json_export_holder" /><br /><br />
<input type="button" onclick="export_searchquery()" value="Export search query" /><br />
<textarea id="qmv_searchquery_text_holder"></textarea><hr />
<div id="qmv_data_stats">
QMV data version: <span id="qmv_stats_version"></span><br />
QMV data creation date: <span id="qmv_stats_data"></span><br />
Number of tags: <span id="qmv_stats_tags_count"></span><br />
Number of tag groups: <span id="qmv_stats_taggroups_count"></span><br />
Number of files: <span id="qmv_stats_files_count"></span><br />
Number of files compatible with browser: <span id="qmv_stats_preloadfiles_count"></span><br />
</div><hr />
For QMV updates visit: <a href="https://github.com/Qronikarz/QuoMediaView" target="_blank"><input type="button" value="https://github.com/Qronikarz/QuoMediaView" /></a><br />
Changelog: <a href="https://github.com/Qronikarz/QuoMediaView/blob/main/changelog.txt" target="_blank"><input type="button" value="https://github.com/Qronikarz/QuoMediaView/blob/main/changelog.txt" /></a><br />
This software is licensed as AGPL 3.0. More info here: <a href="https://choosealicense.com/licenses/agpl-3.0/" target="_blank"><input type="button" value="https://choosealicense.com/licenses/agpl-3.0/" /></a>
</div>
<div id="searchresults" ondrop="item_drop(event)" ondragover="item_drag(event)" class="mainviewsection">
<div id="searchresults_main">
<div id="qmvloadingsection">
<form autocomplete="off" id="qmvjsonload" onsubmit="loading('start'); return false">
Load QuoMediaView JSON data: <input type="text" id="qmvjson_loadinput" /><input type="submit" value="→" />
</form>
<input type="button" onclick="document.getElementById('qmvjson_loadinput').value = qmv_data_template; loading('start'); return false" value="Load empty QuoMediaView DB" />
</div>
<noscript>Please enable JavaScript.</noscript>
</div>
<div id="sidepanelpreview" class="no_display_on_start">
<div id="sidepanelpreview_buttonstopbar">
<input type="button" onclick="section_close('generalexit')" value="Close" title="Close side panel preview" />
<input type="button" onclick="file_switch('previous','sidepanelpreview')" value="←" title="Previous file" />
<input type="button" onclick="file_switch('next','sidepanelpreview')" value="→" title="Next file" />
<input type="button" onclick="file_switch('random','sidepanelpreview')" value="Random" title="Move to a random file" />
<a href="#" target="_blank" id="sidepanelpreview_newtablink"><input type="button" value="New tab" title="Open file in single file view" /></a>
<input type="button" onclick="section_open('lightbox')" value="Fullscreen" title="Open file in Lightbox" id="spp_lightboxbtn" />
<input type="button" onclick="section_open('filesedit')" value="Edit" title="Open file in edit mode" id="spp_editbtn" />
</div>
<div id="sidepanelpreview_main">
<div id="sidepanelpreview_filebox"></div>
<hr />
<div id="sidepanelpreview_infobox">
<h5>File location and name:</h5>
<div id="sidepanelpreview_fileinfo_locationname" class="fileinfo_texts can_break_sentences"></div>
<h5>Description:</h5>
<div id="sidepanelpreview_fileinfo_description" class="fileinfo_texts"></div>
<h5>Tags:</h5>
<div id="sidepanelpreview_fileinfo_tags" class="fileinfo_texts"></div>
<h5>Details:</h5>
<div id="sidepanelpreview_fileinfo_details" class="fileinfo_texts"></div>
<h5>Full path:</h5>
<div id="sidepanelpreview_fileinfo_fullpath" class="fileinfo_texts can_break_sentences"></div>
</div>
</div>
</div>
<div id="searchresults_pagination" class="no_display_on_start">
<div id="searchresults_pagination_compact">
<div><a href="" onclick="pagination_pagechange('first'); return false">First</a></div>
<div><a href="" onclick="pagination_pagechange('previous'); return false">Previous</a></div>
<div><a href="" onclick="pagination_pagechange(prompt('Enter page number') * 1); return false"><div id="current_page"></div></a></div>
<div><a href="" onclick="pagination_pagechange('next'); return false">Next</a></div>
<div><a href="" onclick="pagination_pagechange('last'); return false">Last</a></div>
</div>
</div>
</div>
<div id="lightbox" class="no_display_on_start">
<div id="lightbox_buttonstopbar">
<input type="button" onclick="section_close('generalexit')" value="Close" title="Close lightbox" />
<input type="button" onclick="file_switch('previous','lightbox')" value="←" title="Previous file" />
<input type="button" onclick="file_switch('next','lightbox')" value="→" title="Next file" />
<input type="button" onclick="file_switch('random','lightbox')" value="Random" title="Move to a random file" />
<a href="#" target="_blank" id="lightbox_newtablink"><input type="button" value="New tab" title="Open file in single file view" /></a>
<input type="button" onclick="section_open('sidepanelpreview')" value="Side panel" title="Open file in Side panel" />
<input type="button" onclick="section_open('filesedit')" value="Edit" title="Open file in edit mode" />
<input type="button" onclick="lightbox_slideshow('start','next')" value="Slideshow" title="Activate slideshow" />
<input type="button" onclick="lightbox_slideshow('start','random')" value="Random slideshow" title="Activate slideshow in random order" /><br />
<div id="lightbox_tools">
<input type="button" onclick="file_rotate('lightbox','left')" value="Rotate ↶" title="Rotate left" />
<input type="button" onclick="file_rotate('lightbox','right')" value="Rotate ↷" title="Rotate right" />
</div>
</div>
<input type="button" onclick="lightbox_slideshow('stop','')" value="Stop slideshow" id="lightbox_slideshowbtnoff" class="no_display_on_start"/>
<div id="lightbox_main">
<div id="lightbox_filebox"></div>
</div>
</div>
</div>
<script src="qmvfiles/scripts.js"></script>
</body>
</html>