From 7b5d5ef57289c00b0314522b2c2981e4fc7a0f6c Mon Sep 17 00:00:00 2001 From: Felix Hammerl Date: Fri, 26 Feb 2016 18:31:29 +0100 Subject: Issue #617: Create sandbox resouces --- web-ui/app/js/sandbox.js | 9 +++++++++ web-ui/app/sandbox.html | 17 +++++++++++++++++ web-ui/app/scss/sandbox.scss | 14 ++++++++++++++ 3 files changed, 40 insertions(+) create mode 100644 web-ui/app/js/sandbox.js create mode 100644 web-ui/app/sandbox.html create mode 100644 web-ui/app/scss/sandbox.scss (limited to 'web-ui/app') diff --git a/web-ui/app/js/sandbox.js b/web-ui/app/js/sandbox.js new file mode 100644 index 00000000..f9e708d6 --- /dev/null +++ b/web-ui/app/js/sandbox.js @@ -0,0 +1,9 @@ +(function () { + 'use strict'; + + window.onmessage = function (e) { + if (e.data.html) { + document.body.innerHTML = e.data.html; + } + }; +})(); diff --git a/web-ui/app/sandbox.html b/web-ui/app/sandbox.html new file mode 100644 index 00000000..13a86f25 --- /dev/null +++ b/web-ui/app/sandbox.html @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + diff --git a/web-ui/app/scss/sandbox.scss b/web-ui/app/scss/sandbox.scss new file mode 100644 index 00000000..e722753d --- /dev/null +++ b/web-ui/app/scss/sandbox.scss @@ -0,0 +1,14 @@ +body { + font-family: "Open Sans", "Microsoft YaHei", "Hiragino Sans GB", "Hiragino Sans GB W3", "微软雅黑", "Helvetica Neue", Arial, sans-serif; + font-size: 13px; + line-height: 1.2em; + background: white; + color: #333; + padding: 0; + margin: 0; + font-weight: normal; + -webkit-font-smoothing: antialiased; + font-style: normal; + box-sizing: border-box; + word-wrap: break-word; +} -- cgit v1.2.3