mirror of
https://github.com/9001/copyparty.git
synced 2025-08-18 09:22:31 -06:00
ie
This commit is contained in:
parent
8bd94f4a1c
commit
6eef44f212
|
@ -747,7 +747,7 @@ TLDR: yes
|
||||||
| zip selection | - | yep | yep | yep | yep | yep | yep | yep |
|
| zip selection | - | yep | yep | yep | yep | yep | yep | yep |
|
||||||
| file rename | - | yep | yep | yep | yep | yep | yep | yep |
|
| file rename | - | yep | yep | yep | yep | yep | yep | yep |
|
||||||
| file cut/paste | - | yep | yep | yep | yep | yep | yep | yep |
|
| file cut/paste | - | yep | yep | yep | yep | yep | yep | yep |
|
||||||
| navpane | - | `*2` | yep | yep | yep | yep | yep | yep |
|
| navpane | - | yep | yep | yep | yep | yep | yep | yep |
|
||||||
| image viewer | - | yep | yep | yep | yep | yep | yep | yep |
|
| image viewer | - | yep | yep | yep | yep | yep | yep | yep |
|
||||||
| video player | - | yep | yep | yep | yep | yep | yep | yep |
|
| video player | - | yep | yep | yep | yep | yep | yep | yep |
|
||||||
| markdown editor | - | - | yep | yep | yep | yep | yep | yep |
|
| markdown editor | - | - | yep | yep | yep | yep | yep | yep |
|
||||||
|
@ -759,7 +759,6 @@ TLDR: yes
|
||||||
* internet explorer 6 to 8 behave the same
|
* internet explorer 6 to 8 behave the same
|
||||||
* firefox 52 and chrome 49 are the final winxp versions
|
* firefox 52 and chrome 49 are the final winxp versions
|
||||||
* `*1` yes, but extremely slow (ie10: `1 MiB/s`, ie11: `270 KiB/s`)
|
* `*1` yes, but extremely slow (ie10: `1 MiB/s`, ie11: `270 KiB/s`)
|
||||||
* `*2` causes a full-page refresh on each navigation
|
|
||||||
* `*3` using a wasm decoder which consumes a bit more power
|
* `*3` using a wasm decoder which consumes a bit more power
|
||||||
|
|
||||||
quick summary of more eccentric web-browsers trying to view a directory index:
|
quick summary of more eccentric web-browsers trying to view a directory index:
|
||||||
|
|
|
@ -667,7 +667,7 @@ input.eq_gain {
|
||||||
border-radius: 0 .3em 0 0;
|
border-radius: 0 .3em 0 0;
|
||||||
}
|
}
|
||||||
.np_open #thx_ff {
|
.np_open #thx_ff {
|
||||||
padding: 2.5em 0;
|
padding: 4.5em 0;
|
||||||
/* widget */
|
/* widget */
|
||||||
}
|
}
|
||||||
#tree::-webkit-scrollbar-track,
|
#tree::-webkit-scrollbar-track,
|
||||||
|
|
|
@ -286,6 +286,24 @@ var have_webp = sread('have_webp');
|
||||||
})();
|
})();
|
||||||
|
|
||||||
|
|
||||||
|
function set_files_html(html) {
|
||||||
|
var files = ebi('files');
|
||||||
|
try {
|
||||||
|
files.innerHTML = html;
|
||||||
|
return files;
|
||||||
|
}
|
||||||
|
catch (e) {
|
||||||
|
var par = files.parentNode;
|
||||||
|
par.removeChild(files);
|
||||||
|
files = mknod('div');
|
||||||
|
files.innerHTML = '<table id="files">' + html + '</table>';
|
||||||
|
par.insertBefore(files.childNodes[0], ebi('epi'));
|
||||||
|
files = ebi('files');
|
||||||
|
return files;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
var mpl = (function () {
|
var mpl = (function () {
|
||||||
var have_mctl = 'mediaSession' in navigator && window.MediaMetadata;
|
var have_mctl = 'mediaSession' in navigator && window.MediaMetadata;
|
||||||
|
|
||||||
|
@ -1053,8 +1071,8 @@ var need_ogv = true;
|
||||||
try {
|
try {
|
||||||
need_ogv = new Audio().canPlayType('audio/ogg; codecs=opus') !== 'probably';
|
need_ogv = new Audio().canPlayType('audio/ogg; codecs=opus') !== 'probably';
|
||||||
|
|
||||||
if (/ Edge\//.exec(navigator.userAgent + ''))
|
if (document.documentMode)
|
||||||
need_ogv = true;
|
need_ogv = false; // ie8-11
|
||||||
}
|
}
|
||||||
catch (ex) { }
|
catch (ex) { }
|
||||||
|
|
||||||
|
@ -2983,7 +3001,7 @@ document.onkeydown = function (e) {
|
||||||
orig_url = get_evpath();
|
orig_url = get_evpath();
|
||||||
}
|
}
|
||||||
|
|
||||||
ofiles.innerHTML = html.join('\n');
|
ofiles = set_files_html(html.join('\n'));
|
||||||
ofiles.setAttribute("ts", this.ts);
|
ofiles.setAttribute("ts", this.ts);
|
||||||
ofiles.setAttribute("q_raw", this.q_raw);
|
ofiles.setAttribute("q_raw", this.q_raw);
|
||||||
set_vq();
|
set_vq();
|
||||||
|
@ -2998,7 +3016,7 @@ document.onkeydown = function (e) {
|
||||||
function unsearch(e) {
|
function unsearch(e) {
|
||||||
ev(e);
|
ev(e);
|
||||||
treectl.show();
|
treectl.show();
|
||||||
ebi('files').innerHTML = orig_html;
|
set_files_html(orig_html);
|
||||||
ebi('files').removeAttribute('q_raw');
|
ebi('files').removeAttribute('q_raw');
|
||||||
orig_html = null;
|
orig_html = null;
|
||||||
sethash('');
|
sethash('');
|
||||||
|
@ -3372,13 +3390,7 @@ var treectl = (function () {
|
||||||
}
|
}
|
||||||
html.push('</tbody>');
|
html.push('</tbody>');
|
||||||
html = html.join('\n');
|
html = html.join('\n');
|
||||||
try {
|
set_files_html(html);
|
||||||
ebi('files').innerHTML = html;
|
|
||||||
}
|
|
||||||
catch (ex) { //ie9
|
|
||||||
window.location.href = this.top;
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (this.hpush)
|
if (this.hpush)
|
||||||
hist_push(this.top);
|
hist_push(this.top);
|
||||||
|
@ -3468,10 +3480,7 @@ var treectl = (function () {
|
||||||
treectl.goto(url.pathname);
|
treectl.goto(url.pathname);
|
||||||
};
|
};
|
||||||
|
|
||||||
if (window.history && history.pushState) {
|
|
||||||
hist_replace(get_evpath() + window.location.hash);
|
hist_replace(get_evpath() + window.location.hash);
|
||||||
}
|
|
||||||
|
|
||||||
treectl.onscroll = onscroll;
|
treectl.onscroll = onscroll;
|
||||||
return treectl;
|
return treectl;
|
||||||
})();
|
})();
|
||||||
|
|
|
@ -1863,7 +1863,6 @@ function up2k_init(subtle) {
|
||||||
|
|
||||||
var o = QSA('#u2conf .c *[tt]');
|
var o = QSA('#u2conf .c *[tt]');
|
||||||
for (var a = o.length - 1; a >= 0; a--) {
|
for (var a = o.length - 1; a >= 0; a--) {
|
||||||
console.log(o[a]);
|
|
||||||
o[a].parentNode.getElementsByTagName('input')[0].setAttribute('tt', o[a].getAttribute('tt'));
|
o[a].parentNode.getElementsByTagName('input')[0].setAttribute('tt', o[a].getAttribute('tt'));
|
||||||
}
|
}
|
||||||
tt.att(QS('#u2conf'));
|
tt.att(QS('#u2conf'));
|
||||||
|
|
|
@ -715,11 +715,13 @@ function scfg_bind(obj, oname, cname, defval, cb) {
|
||||||
|
|
||||||
function hist_push(url) {
|
function hist_push(url) {
|
||||||
console.log("h-push " + url);
|
console.log("h-push " + url);
|
||||||
|
if (window.history && history.pushState)
|
||||||
history.pushState(url, url, url);
|
history.pushState(url, url, url);
|
||||||
}
|
}
|
||||||
|
|
||||||
function hist_replace(url) {
|
function hist_replace(url) {
|
||||||
console.log("h-repl " + url);
|
console.log("h-repl " + url);
|
||||||
|
if (window.history && history.replaceState)
|
||||||
history.replaceState(url, url, url);
|
history.replaceState(url, url, url);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue