From 23408bcd256769a709dfbd4c07a1ed38128ed6dc Mon Sep 17 00:00:00 2001 From: sienori Date: Mon, 25 Jun 2018 18:30:47 +0900 Subject: [PATCH] Insert button and panel after body element --- simple-translate/simple-translate.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simple-translate/simple-translate.js b/simple-translate/simple-translate.js index f5773d3..b43a38d 100644 --- a/simple-translate/simple-translate.js +++ b/simple-translate/simple-translate.js @@ -3,7 +3,7 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -document.body.insertAdjacentHTML("beforeend", "

...

"); //body末尾にボタン配置 +document.body.insertAdjacentHTML("afterend", "

...

"); //bodyの直後にボタン配置 var button = document.getElementById("simple-translate-button"); var panel = document.getElementById("simple-translate-panel"); var selectionWord;