s4

changeset 949:d8a258cc8a7d

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 4099e5a30e27
files s4-main.js
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line diff
     1.1 --- a/s4-main.js	Fri Oct 29 17:21:43 2021 +0900
     1.2 +++ b/s4-main.js	Sat Oct 30 16:55:35 2021 +0900
     1.3 @@ -981,7 +981,7 @@
     1.4  	    ta.focus();
     1.5  	    helpMarkdownPreview(ta);
     1.6  	});
     1.7 -	ta.insertAdjacentElement('afterend', btn);
     1.8 +	ta.parentNode.appendChild(btn);
     1.9      }
    1.10      function init() {
    1.11  	isOlderJS = !("insertAdjacentElement" in document.body);