diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2017-08-11 23:24:50 +0900 |
---|---|---|
committer | Shin'ya Ueoka <ueokande@i-beam.org> | 2017-08-11 23:24:50 +0900 |
commit | b501db2a46f6ef639d4f2e176f320514770dd7a5 (patch) | |
tree | 40c43ec8b69e329d755b835e6f52a2e6512bf8d1 /src | |
parent | f39c14c127fc0746fc728b36d3774bf64055c61f (diff) | |
parent | 816c3488439c6264eac73bbbea359eaf60bfb1c8 (diff) |
Merge branch 'init-project'
Diffstat (limited to 'src')
-rw-r--r-- | src/index.js | 3 | ||||
-rw-r--r-- | src/module.js | 18 |
2 files changed, 21 insertions, 0 deletions
diff --git a/src/index.js b/src/index.js new file mode 100644 index 0000000..8c9b627 --- /dev/null +++ b/src/index.js @@ -0,0 +1,3 @@ +import * as Module from './module'; + +Module.initialize() 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 }; |