From 008d9b1834d9fcea7ca12fed6f16d99dfbca881f Mon Sep 17 00:00:00 2001 From: ed Date: Fri, 2 Dec 2022 18:33:04 +0000 Subject: [PATCH] add textbox placeholders --- copyparty/web/browser.css | 2 +- copyparty/web/browser.html | 6 +++--- copyparty/web/browser.js | 31 ++++++++++++++++--------------- 3 files changed, 20 insertions(+), 19 deletions(-) diff --git a/copyparty/web/browser.css b/copyparty/web/browser.css index 0852c403..029ce581 100644 --- a/copyparty/web/browser.css +++ b/copyparty/web/browser.css @@ -1388,7 +1388,7 @@ input.eq_gain { display: none; } #op_search input { - margin: 0; + margin: .1em 0 0 0; } #srch_q { white-space: pre; diff --git a/copyparty/web/browser.html b/copyparty/web/browser.html index 732f1901..b5662e45 100644 --- a/copyparty/web/browser.html +++ b/copyparty/web/browser.html @@ -42,7 +42,7 @@
- 📂 + 📂
@@ -50,14 +50,14 @@
- 📝 + 📝
- 📟 + 📟
diff --git a/copyparty/web/browser.js b/copyparty/web/browser.js index ea3026a0..3ac6dbc5 100644 --- a/copyparty/web/browser.js +++ b/copyparty/web/browser.js @@ -338,7 +338,7 @@ var Ls = { "s_r1": "path contains   (space-separated)", "s_f1": "name contains   (negate with -nope)", "s_t1": "tags contains   (^=start, end=$)", - "s_a1": "key>=1A  key<=2B  .bpm>165", + "s_a1": "specific metadata properties", "md_eshow": "cannot show ", @@ -778,7 +778,7 @@ var Ls = { "s_r1": "mappenavn inneholder", "s_f1": "filnavn inneholder", "s_t1": "sang-info inneholder", - "s_a1": "key>=1A  key<=2B  .bpm>165", + "s_a1": "konkrete egenskaper", "md_eshow": "kan ikke vise ", @@ -3168,8 +3168,8 @@ var fileman = (function () { '', - '', - '', + '', + '', ''); + 'em" name="' + sconf[a][b][1] + '" placeholder="' + sconf[a][b][4] + '" />'); if (csp == 2) break; } @@ -4619,7 +4620,7 @@ document.onkeydown = function (e) { for (var a = 0; a < trs.length; a += 2) { html.push('
regex
format
regex
format
preset', '', '', @@ -4399,6 +4399,7 @@ document.onkeydown = function (e) { if (k == 'Escape') { ae && ae.blur(); + tt.hide(); if (ebi('hkhelp')) return qsr('#hkhelp'); @@ -4567,29 +4568,29 @@ document.onkeydown = function (e) { var sconf = [ [ L.s_sz, - ["szl", "sz_min", L.s_s1, "14"], - ["szu", "sz_max", L.s_s2, "14"] + ["szl", "sz_min", L.s_s1, "14", ""], + ["szu", "sz_max", L.s_s2, "14", ""] ], [ L.s_dt, - ["dtl", "dt_min", L.s_d1, "14"], - ["dtu", "dt_max", L.s_d2, "14"] + ["dtl", "dt_min", L.s_d1, "14", "1997-08-15, 01:00"], + ["dtu", "dt_max", L.s_d2, "14", "2020"] ], [ L.s_rd, - ["path", "path", L.s_r1, "30"] + ["path", "path", L.s_r1, "30", "windows -system32"] ], [ L.s_fn, - ["name", "name", L.s_f1, "30"] + ["name", "name", L.s_f1, "30", ".exe$"] ], [ L.s_ta, - ["tags", "tags", L.s_t1, "30"] + ["tags", "tags", L.s_t1, "30", "^nhato"] ], [ L.s_ad, - ["adv", "adv", L.s_a1, "30"] + ["adv", "adv", L.s_a1, "30", "key>=1A key<=2B .bpm>165"] ] ]; @@ -4608,7 +4609,7 @@ document.onkeydown = function (e) { '\n' + '\n' + '
' + (trs[a].concat(trs[a + 1])).join('\n') + '
'); } - html.push('
raw
'); + html.push('
raw
'); ebi('srch_form').innerHTML = html.join('\n'); var o = QSA('#op_search input'); @@ -6645,7 +6646,7 @@ function ev_row_tgl(e) { var unpost = (function () { ebi('op_unpost').innerHTML = ( L.un_m1 + ' –
' + L.un_upd + '' + - '

' + L.un_flt + ' ' + L.un_fclr + '

' + + '

' + L.un_flt + ' ' + L.un_fclr + '

' + '
' );