-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
211 lines (158 loc) · 8.17 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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
<!DOCTYPE html>
<html>
<head prefix="og: http://ogp.me/ns#">
<meta charset="utf-8">
<title>Regularjs - A concise, flexible framework for creating data-driven component</title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link rel="shortcut icon" href="/icon.png" >
<link rel="canonical" href="http://regularjs.github.io/index.html">
<link rel="stylesheet" href="/bower_components/codemirror/lib/codemirror.css" type="text/css">
<link rel="stylesheet" href="/css/style.css" type="text/css">
<meta name="description" content="A concise, flexible framework for creating data-driven component">
<meta property="og:type" content="website">
<meta property="og:title" content="home">
<meta property="og:url" content="http://regularjs.github.io/index.html">
<meta property="og:site_name" content="Regularjs">
<meta property="og:description" content="A concise, flexible framework for creating data-driven component">
<meta property="og:image" content="image/fedlogo.png">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="home">
<meta name="twitter:description" content="A concise, flexible framework for creating data-driven component">
<meta name="twitter:site" content="@regularjs">
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-54220110-1', 'regularjs.github.io');
ga('send', 'pageview');
</script>
</head>
<body>
<header class="g-top" id='header'>
<div class="m-nav m-nav-2 g-cnt">
<div class="logo"><a href="/" class="inner"><img src="/image/regular-icon-neg.png" alt="" with=50 height=50></a></div>
<ul class="nav">
<li> <a href="/example/markdown.html" class=" inner">Example</a></li>
<li> <a href="/guide" class=" inner">Guide</a></li>
<li> <a href="/reference/" class=" inner">Reference</a></li>
<li> <a href="/blog/" class=" inner">Blog</a></li>
<li> <a href="https://github.com/regularjs/regular" class=" inner">Github</a></li>
<li><a href="#" id="search-btn" class="icon-search2 st-search-launcher icon" title="Search"></a></li>
</ul>
</div>
</header>
<header class="g-hd" id="header">
<div class="m-slogan">
<div class="slogan">
<h2 id="slogan">Regular</h2>
<p>a concise, flexible framework for creating data-driven component</p>
<div class="btns">
<a href="https://github.com/regularjs/regular" class="u-btn u-btn-s1" target="_blank" rel="external">Source on Github</a>
<a href="https://github.com/regularjs/regular/archive/master.zip" class="u-btn u-btn-s1" target="_blank" rel="external">Download Latest</a>
</div>
<div class="img">
<p>BUILT BY</p>
<a href="https://github.com/NetEase" target="_blank" rel="external">
<img src="image/fedlogo.png" alt="NetEaseWD">
</a>
</div>
<div class="social">
<iframe src="http://ghbtns.com/github-btn.html?user=regularjs&repo=regular&type=watch&count=true" allowtransparency="true" frameborder="0" scrolling="0" width="110" height="20"></iframe>
<iframe src="http://ghbtns.com/github-btn.html?user=regularjs&repo=regular&type=fork&count=true" allowtransparency="true" frameborder="0" scrolling="0" width="95" height="20"></iframe>
<a href="https://twitter.com/share" class="twitter-share-button" data-url="http://regularjs.github.io/" data-text="regularjs.js- A concise, flexible framework for creating data-driven component" data-dnt="true" target="_blank" rel="external">Tweet</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>
</div>
</div>
</div>
</header>
<div class="g-bd">
<div class="m-intro">
<h2> Creating Component with MVVM Pattern</h2>
<p><em> you will enjoy it just like you enjoy angularjs :)</em></p>
<div class="sec">
<em class="icon-bulb icon"></em>
<h3>Powerful</h3>
<p> live templating is string-based, take more control on templating logic.</p>
</div>
<div class="sec">
<em class="icon-paperplane icon"></em>
<h3>Concise</h3>
<p>data-binding, directive, filter, event and animation... all of them is supported out of box with concise API </p>
</div>
<div class="sec">
<em class="icon-diamond icon"></em>
<h3>Flexible</h3>
<p>compeletely self-contained, easily integrated and well encapsulation. make it be friendly with large-project </p>
</div>
<div class="more">
<a href="https://github.com/regularjs/regular" target="_blank" rel="external">Learn more About Regularjs →</a>
</div>
</div>
</div>
<div class="m-start">
<a class="full" href="/guide">Getting Start with Regularjs's Guide <span class="icon-redo2"></span> </a>
</div>
<div class="m-demo">
<h2>OR CHECK THE DEMO</h2>
<div id="demo-html" data-title="template" class="demo"></div>
<div data-title="javascript" class="demo demo-2">
<div id="demo-js-1" class="demo_sub"></div>
<div id="demo-js" class=""></div>
<div id="demo-js-3" class="demo_sub"></div>
</div>
<div class="console">
<a class="u-btn u-btn-block j-run" href="#">RUN</a>
<div id="demo-view"> </div>
</div>
</div>
<script id="example" type="text/regularjs">
<div class="m-todo">
{#if !username}
Friend, please <a href='#' on-click={this.login()}>Login</a>
{#else}
Welcome, {username} <a href='javascript:;' on-click={username = ''}>Logout</a>
<input on-enter={this.add(draft)} r-model={draft}/>
<ul class='list'>
<h3>you have {todos.length} todos </h3>
{#list todos as todo}
<li class={todo.compeleted? 'compeleted': ''}>
{todo.content} <a href='#' on-click={this.remove(todo_index)}>X</a>
</li>
{/list}
</ul>
{/if}
</div>
</script>
<footer class="m-footer">
<p class="license">Release under <a href="https://github.com/regularjs/regular/blob/master/LICENSE" target="_blank">MIT License</a>| Copyright © 2014 <a href="https://leeluolee.github.io" target="_blank">@leeluolee</a>. Reserved</p>
<p class="rights"> Background from <a href="http://subtlepatterns.com/shattered/" target="_blank">Shattered</a> | powered by <a href="//hexo.io">Hexo</a></p>
</footer>
<!-- Disqus -->
<script>
var disqus_shortname = 'regularjs';
var disqus_url = 'http://regularjs.github.io/index.html';
</script>
<!-- Swiftype -->
<script>
var Swiftype = window.Swiftype || {};
(function() {
Swiftype.key = 'fDxc-hEngMPFuZ1VP_FJ';
/** DO NOT EDIT BELOW THIS LINE **/
var script = document.createElement('script'); script.type = 'text/javascript'; script.async = true;
script.src = "//s.swiftypecdn.com/embed.js";
var entry = document.getElementsByTagName('script')[0];
document.getElementsByTagName('script')[0].parentNode.insertBefore(script, entry);
}());
</script>
<script src="/bower_components/jquery/dist/jquery.min.js" type="text/javascript"></script>
<script src="/bower_components/regularjs/dist/regular.min.js" type="text/javascript"></script>
<script src="/bower_components/codemirror/lib/codemirror.js" type="text/javascript"></script>
<script src="/bower_components/codemirror/mode/javascript/javascript.js" type="text/javascript"></script>
<script src="/bower_components/codemirror/mode/xml/xml.js" type="text/javascript"></script>
<script async src="//codepen.io/assets/embed/ei.js"></script>
<script src="/js/home.js" type="text/javascript"></script>
<!-- Twitter -->
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>
</body>
</html>