From fe4b1bf362a563c7112ab8bc584e2a3c9284efc3 Mon Sep 17 00:00:00 2001 From: Shin'ya Ueoka Date: Fri, 11 Aug 2017 23:15:47 +0900 Subject: add webpack.config --- src/module.js | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 src/module.js (limited to 'src/module.js') diff --git a/src/module.js b/src/module.js new file mode 100644 index 0000000..4378d0d --- /dev/null +++ b/src/module.js @@ -0,0 +1,18 @@ +const initialize = (url) => { + let p = document.createElement("p"); + p.textContent = "Hello Vim Vixen"; + p.style.position = 'fixed'; + p.style.right = '0'; + p.style.bottom = '0'; + p.style.padding = '0rem .5rem'; + p.style.margin = '0'; + p.style.backgroundColor = 'lightgray'; + p.style.border = 'gray'; + p.style.boxShadow = '0 0 2px gray inset'; + p.style.borderRadius = '3px'; + p.style.fontFamily = 'monospace'; + + document.body.append(p) +} + +export { initialize }; -- cgit v1.2.3