mirror of
https://github.com/9001/copyparty.git
synced 2025-08-17 09:02:15 -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 |
|
||||
| file rename | - | 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 |
|
||||
| video player | - | yep | 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
|
||||
* firefox 52 and chrome 49 are the final winxp versions
|
||||
* `*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
|
||||
|
||||
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;
|
||||
}
|
||||
.np_open #thx_ff {
|
||||
padding: 2.5em 0;
|
||||
padding: 4.5em 0;
|
||||
/* widget */
|
||||
}
|
||||
#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 have_mctl = 'mediaSession' in navigator && window.MediaMetadata;
|
||||
|
||||
|
@ -1053,8 +1071,8 @@ var need_ogv = true;
|
|||
try {
|
||||
need_ogv = new Audio().canPlayType('audio/ogg; codecs=opus') !== 'probably';
|
||||
|
||||
if (/ Edge\//.exec(navigator.userAgent + ''))
|
||||
need_ogv = true;
|
||||
if (document.documentMode)
|
||||
need_ogv = false; // ie8-11
|
||||
}
|
||||
catch (ex) { }
|
||||
|
||||
|
@ -2983,7 +3001,7 @@ document.onkeydown = function (e) {
|
|||
orig_url = get_evpath();
|
||||
}
|
||||
|
||||
ofiles.innerHTML = html.join('\n');
|
||||
ofiles = set_files_html(html.join('\n'));
|
||||
ofiles.setAttribute("ts", this.ts);
|
||||
ofiles.setAttribute("q_raw", this.q_raw);
|
||||
set_vq();
|
||||
|
@ -2998,7 +3016,7 @@ document.onkeydown = function (e) {
|
|||
function unsearch(e) {
|
||||
ev(e);
|
||||
treectl.show();
|
||||
ebi('files').innerHTML = orig_html;
|
||||
set_files_html(orig_html);
|
||||
ebi('files').removeAttribute('q_raw');
|
||||
orig_html = null;
|
||||
sethash('');
|
||||
|
@ -3372,13 +3390,7 @@ var treectl = (function () {
|
|||
}
|
||||
html.push('</tbody>');
|
||||
html = html.join('\n');
|
||||
try {
|
||||
ebi('files').innerHTML = html;
|
||||
}
|
||||
catch (ex) { //ie9
|
||||
window.location.href = this.top;
|
||||
return;
|
||||
}
|
||||
set_files_html(html);
|
||||
|
||||
if (this.hpush)
|
||||
hist_push(this.top);
|
||||
|
@ -3468,10 +3480,7 @@ var treectl = (function () {
|
|||
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;
|
||||
return treectl;
|
||||
})();
|
||||
|
|
|
@ -1863,7 +1863,6 @@ function up2k_init(subtle) {
|
|||
|
||||
var o = QSA('#u2conf .c *[tt]');
|
||||
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'));
|
||||
}
|
||||
tt.att(QS('#u2conf'));
|
||||
|
|
|
@ -715,12 +715,14 @@ function scfg_bind(obj, oname, cname, defval, cb) {
|
|||
|
||||
function hist_push(url) {
|
||||
console.log("h-push " + url);
|
||||
history.pushState(url, url, url);
|
||||
if (window.history && history.pushState)
|
||||
history.pushState(url, url, url);
|
||||
}
|
||||
|
||||
function hist_replace(url) {
|
||||
console.log("h-repl " + url);
|
||||
history.replaceState(url, url, url);
|
||||
if (window.history && history.replaceState)
|
||||
history.replaceState(url, url, url);
|
||||
}
|
||||
|
||||
function sethash(hv) {
|
||||
|
|
Loading…
Reference in a new issue