ie11 fixes

This commit is contained in:
ed 2025-09-03 19:48:47 +00:00
parent f0caf88185
commit b59b915962
3 changed files with 10 additions and 2 deletions

View file

@ -1555,11 +1555,13 @@ html {
#treepar { #treepar {
z-index: 1; z-index: 1;
position: fixed; position: fixed;
background: #fff;
background: var(--tree-bg); background: var(--tree-bg);
left: -.96em; left: -.96em;
width: calc(.3em + var(--nav-sz) - var(--sbw)); width: calc(.3em + var(--nav-sz) - var(--sbw));
border-bottom: 1px solid var(--bg-u5); border-bottom: 1px solid var(--bg-u5);
overflow: hidden; overflow: hidden;
border-right: .5em solid #999\9;
} }
#treepar.off { #treepar.off {
display: none; display: none;
@ -1995,6 +1997,7 @@ html.y #doc .line-highlight {
} }
#seldoc.sel { #seldoc.sel {
color: var(--fg2-max); color: var(--fg2-max);
background: #f0f;
background: var(--g-sel-b1); background: var(--g-sel-b1);
} }
#pvol, #pvol,
@ -2014,6 +2017,7 @@ a.btn,
user-select: none; user-select: none;
} }
#hkhelp { #hkhelp {
background: #fff;
background: var(--bg); background: var(--bg);
} }
#hkhelp table { #hkhelp table {

View file

@ -217,7 +217,7 @@ function convert_markdown(md_text, dest_dom) {
catch (ex) { catch (ex) {
if (IE) { if (IE) {
dest_dom.innerHTML = 'IE cannot into markdown ;_;'; dest_dom.innerHTML = 'IE cannot into markdown ;_;';
return; return false;
} }
if (ext) if (ext)
@ -344,6 +344,8 @@ function convert_markdown(md_text, dest_dom) {
} }
catch (ex) { } catch (ex) { }
}, 1); }, 1);
return true;
} }

View file

@ -1051,7 +1051,9 @@ ebi('help').onclick = function (e) {
var dom = ebi('helpbox'); var dom = ebi('helpbox');
var dtxt = dom.getElementsByTagName('textarea'); var dtxt = dom.getElementsByTagName('textarea');
if (dtxt.length > 0) { if (dtxt.length > 0) {
convert_markdown(dtxt[0].value, dom); var txt = dtxt[0].value;
if (!convert_markdown(txt, dom))
dom.innerText = txt.split('## markdown')[0];
dom.innerHTML = '<a href="#" id="helpclose">close</a>' + dom.innerHTML; dom.innerHTML = '<a href="#" id="helpclose">close</a>' + dom.innerHTML;
} }