Mercurial > hgrepos > hgweb.cgi > s4
diff s4-main.js @ 949:d8a258cc8a7d draft
Insert-position of MathJax Preview button changed
author | HIROSE Yuuji <yuuji@gentei.org> |
---|---|
date | Sat, 30 Oct 2021 16:55:35 +0900 |
parents | 1310b29b6ab1 |
children | ab78a6e229a6 |
line wrap: on
line diff
--- a/s4-main.js Fri Oct 29 17:21:43 2021 +0900 +++ b/s4-main.js Sat Oct 30 16:55:35 2021 +0900 @@ -981,7 +981,7 @@ ta.focus(); helpMarkdownPreview(ta); }); - ta.insertAdjacentElement('afterend', btn); + ta.parentNode.appendChild(btn); } function init() { isOlderJS = !("insertAdjacentElement" in document.body);