-
Notifications
You must be signed in to change notification settings - Fork 2
/
example.html
35 lines (35 loc) · 1.02 KB
/
example.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
32
33
34
35
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>A Component Editor</title>
<link rel="stylesheet" href="build/build.css">
<link rel="stylesheet" href="http://lab.lepture.com/yue.css/yue.css">
<style>
#editor {
max-width: 680px;
min-height: 300px;
margin: 40px auto;
}
</style>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-21475122-5']);
_gaq.push(['_setCustomVar', 1, 'Repo', 'lepture/ed']);
_gaq.push(['_trackPageview']);
_gaq.push(['_trackPageLoadTime']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = '//www.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</head>
<body>
<div id="editor" class="yue"></div>
<script src="build/build.js"></script>
<script>
require('ed')(document.getElementById('editor'));
</script>
</body>
</html>