ssdp: add ie8 compat

This commit is contained in:
ed 2022-12-03 13:59:46 +00:00
parent 99efc290df
commit 89ba12065c
3 changed files with 13 additions and 5 deletions

View file

@ -4586,7 +4586,7 @@ document.onkeydown = function (e) {
], ],
[ [
L.s_ta, L.s_ta,
["tags", "tags", L.s_t1, "30", "^ゲリラ$"] ["tags", "tags", L.s_t1, "30", "^irui$"]
], ],
[ [
L.s_ad, L.s_ad,

View file

@ -53,7 +53,7 @@
<p><em>note: if you are on LAN (or just dont have valid certificates), add <code>--no-check-certificate</code> to the mount command</em><br />---</p> <p><em>note: if you are on LAN (or just dont have valid certificates), add <code>--no-check-certificate</code> to the mount command</em><br />---</p>
{% endif %} {% endif %}
<p>if you want to use the native WebDAV client in windows instead (slow and buggy), first run <a href="/.cpr/a/webdav-cfg.bat">webdav-cfg.bat</a> to remove the 47 MiB filesize limit (also fixes password login), then connect:</p> <p>if you want to use the native WebDAV client in windows instead (slow and buggy), first run <a href="/.cpr/a/webdav-cfg.bat">webdav-cfg.bat</a> to remove the 47 MiB filesize limit (also fixes latency and password login), then connect:</p>
<pre> <pre>
net use <b>w:</b> http{{ s }}://{{ ep }}/{{ vp }}{% if accs %} k /user:<b>{{ pw }}</b>{% endif %} net use <b>w:</b> http{{ s }}://{{ ep }}/{{ vp }}{% if accs %} k /user:<b>{{ pw }}</b>{% endif %}
</pre> </pre>

View file

@ -1,10 +1,18 @@
function QSA(x) {
return document.querySelectorAll(x);
}
var LINUX = /Linux/.test(navigator.userAgent),
MACOS = /[^a-z]mac ?os/i.test(navigator.userAgent),
WINDOWS = /Windows/.test(navigator.userAgent);
var oa = QSA('pre'); var oa = QSA('pre');
for (var a = 0; a < oa.length; a++) { for (var a = 0; a < oa.length; a++) {
var html = oa[a].innerHTML, var html = oa[a].innerHTML,
nd = /^ +/.exec(html)[0].length, nd = /^ +/.exec(html)[0].length,
rd = new RegExp('(^|\n) {' + nd + '}', 'g'); rd = new RegExp('(^|\r?\n) {' + nd + '}', 'g');
oa[a].innerHTML = html.replace(rd, '$1').replace(/[ \r\n]+$/, ''); oa[a].innerHTML = html.replace(rd, '$1').replace(/[ \r\n]+$/, '').replace(/\r?\n/g, '<br />');
} }
@ -14,7 +22,7 @@ for (var a = 0; a < oa.length; a++)
function esetos(e) { function esetos(e) {
ev(e); ev(e);
setos(e.target.id.slice(1)); setos(((e && e.target) || (window.event && window.event.srcElement)).id.slice(1));
} }
function setos(os) { function setos(os) {