-
Notifications
You must be signed in to change notification settings - Fork 145
/
view.html
31 lines (30 loc) · 956 Bytes
/
view.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Markdown Edit</title>
<link rel="stylesheet" href="vendor/html5-boilerplate-4.0.0/css/normalize.css">
<link rel="stylesheet" href="css/github-style.css">
<link rel="stylesheet" href="vendor/highlight.js/styles/github.css">
<style type="text/css">
body {
margin:20px 30px;
}
</style>
</head>
<body>
<script>
document.body.onload = function(){
var style = opener.document.getElementById("htmlStyle");
var clone = style.cloneNode(true);
document.head.appendChild(clone);
var src = opener.document.getElementById("out");
var clonenode = src.cloneNode(true);
document.body.appendChild(clonenode);
};
</script>
</body>
</html>