diff options
author | Felix Hammerl <fhammerl@thoughtworks.com> | 2016-02-26 18:31:29 +0100 |
---|---|---|
committer | Felix Hammerl <fhammerl@thoughtworks.com> | 2016-03-09 15:35:28 +0100 |
commit | 7b5d5ef57289c00b0314522b2c2981e4fc7a0f6c (patch) | |
tree | 755ada7c41372724eab92ce4fd947e2aa6e5ff02 /web-ui/app | |
parent | 3bdb9ecbeccae7842ef566f47b8119583d327cb2 (diff) |
Issue #617: Create sandbox resouces
Diffstat (limited to 'web-ui/app')
-rw-r--r-- | web-ui/app/js/sandbox.js | 9 | ||||
-rw-r--r-- | web-ui/app/sandbox.html | 17 | ||||
-rw-r--r-- | web-ui/app/scss/sandbox.scss | 14 |
3 files changed, 40 insertions, 0 deletions
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 @@ +<!DOCTYPE html> +<html> + +<head> + <meta charset="utf-8"> + <link href="css/opensans.css" rel="stylesheet" type="text/css"> + <link href="css/sandbox.css" rel="stylesheet" type="text/css"> + + <!--usemin_start--> + <script src="js/sandbox.js"></script> + <script src="bower_components/iframe-resizer/js/iframeResizer.contentWindow.min.js"></script> + <!--usemin_end--> +</head> + +<body></body> + +</html> 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; +} |