forked from Juicy/juicy-ace-editor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
93 lines (85 loc) · 2.91 KB
/
index.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title><juicy-ace-editor></title>
<link rel="stylesheet" href="http://juicy.github.io/juicy-tile-list/examples/github-markdown.css">
<!-- Importing Web Component's Polyfill -->
<script src="//cdnjs.cloudflare.com/ajax/libs/polymer/0.3.3/platform.js"></script>
<!-- Importing Custom Elements -->
<link rel="import" href="src/juicy-ace-editor.html">
<style type="text/css" media="screen">
html,body{
height: 100%;
}
#editor {
top: 0;
right: 0;
bottom: 0;
left: 0;
width: 100%;
height: 40%;
}
juicy-ace-editor {
margin: 15px 15px;
width: 45%;
height: 13em;
}
.markdown-body{
margin: 1em auto;
width: 70%;
}
.code-comparison{
display: flex;
justify-content: space-around ;
}
.code-comparison>section{
width: 45%;
}
iframe{ float: right; }
</style>
</head>
<body>
<article class="markdown-body">
<iframe src="http://ghbtns.com/github-btn.html?user=juicy&repo=juicy-ace-editor&type=fork&count=true&size=medium"
allowtransparency="true" frameborder="0" scrolling="0" width="90" height="30"></iframe>
<iframe src="http://ghbtns.com/github-btn.html?user=juicy&repo=juicy-ace-editor&type=watch&count=true&size=medium"
allowtransparency="true" frameborder="0" scrolling="0" width="90" height="30"></iframe>
<h1><juicy-ace-editor></h1>
<blockquote><p>
Even <strong>more</strong> embeddable code editor.
Custom Element - just one tag, and no JS needed to provide <a href="http://ace.c9.io/">Ace</a>
- The High Performance Code Editor</p></blockquote>
<!-- Using Custom Elements -->
<div class="code-comparison">
<section>
<p>Here you have:
<pre><juicy-ace-editor theme="ace/theme/monokai" mode="ace/mode/html">
<juicy-ace-editor></pre>element.
</p>
<p>
You can switch modes and themes as regular HTML attributes to
<a href="https://github.com/ajaxorg/ace-builds/tree/master/src">
whatever is supported by Ace
</a>
</p>
</section>
<juicy-ace-editor theme="ace/theme/monokai" mode="ace/mode/html"><p>Here you have:
<pre>&lt;juicy-ace-editor theme="ace/theme/monokai" mode="ace/mode/html"&gt;
&lt;/juicy-ace-editor&gt;</pre>element.
</p>
<p>
You can switch modes and themes as regular HTML attributes to
<a href="https://github.com/ajaxorg/ace-builds/tree/master/src">
whatever is supported by Ace
</a>
</p>
</juicy-ace-editor>
</div>
<p>Ok, in fact you have seen
<pre><juicy-ace-editor theme="ace/theme/monokai" mode="ace/mode/html">&lt;p&gt;Here you have:..</pre>
</p>
<h3>Looking for a more full-featured demo? Check out the <a href="kitchen-sink.html">kitchen sink</a>.</h3>
</article>
</body>
</html>