-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
178 lines (165 loc) · 6.65 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
<!DOCTYPE html>
<html lang="en">
<head>
<title>vue.js</title>
<meta charset="utf-8">
<meta name="description" content="Vue.js - Intuitive, Fast and Composable MVVM for building interactive interfaces.">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<link href='http://fonts.googleapis.com/css?family=Source+Sans+Pro:400,600|Source+Code+Pro|Dosis:300,500' rel='stylesheet' type='text/css'>
<link rel="icon" href="/images/logo.png" type="image/x-icon">
<script>
window.PAGE_TYPE = ""
</script>
<link rel="stylesheet" href="/css/index.css" type="text/css">
<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-46852172-1', 'vuejs.org');
ga('send', 'pageview');
</script>
<script src="/js/vue.js"></script>
</head>
<body>
<div id="mobile-bar">
<a class="menu-button"></a>
<a class="logo" href="/"></a>
</div>
<div id="hero">
<div class="inner">
<ul id="nav">
<li><a href="/guide/" class="nav-link">Guide</a></li>
<li><a href="/api/" class="nav-link">API</a></li>
<li><a href="/examples/" class="nav-link">Examples</a></li>
<li><a href="https://github.com/yyx990803/vue" class="nav-link" target="_blank">GitHub</a></li>
<li><a href="http://forum.vuejs.org" class="nav-link" target="_blank">Forum</a></li>
<li><a href="https://gitter.im/yyx990803/vue" class="nav-link" target="_blank">Chat</a></li>
</ul>
<ul id="translations">
<li><a href="http://cn.vuejs.org" class="nav-link">中文</a></li>
<li class="delimiter">|</li>
<li><a href="http://jp.vuejs.org" class="nav-link">日本語</a></li>
</ul>
<img id="logo" src="/images/logo.png">
<h1>Vue.js</h1>
<p class="desc">Reactive Components for Modern Web Interfaces</p>
<p class="buttons">
<a href="/guide/installation.html" class="button">Install v1.0.0-beta.4</a>
</p>
<ul id="social">
<li><a href="https://twitter.com/vuejs" class="twitter-follow-button" data-show-count="false" data-dnt="true">Follow @vuejs</a></li>
<li><iframe src="http://ghbtns.com/github-btn.html?user=yyx990803&repo=vue&type=watch&count=true"
allowtransparency="true" frameborder="0" scrolling="0" width="100" height="20"></iframe></li>
</ul>
</div>
<div class="down"><img src="/images/down.png"></div>
</div>
<div id="example">
<h2>10 Second Example</h2>
<div class="block">
<figure class="highlight lang-html"><table><tbody><tr><td class="gutter"><pre>1
2
3
4
</pre></td><td class="code"><pre><span class="tag"><<span class="title">div</span> <span class="attribute">id</span>=<span class="value">"demo"</span>></span>
<span class="tag"><<span class="title">p</span>></span>{{message}}<span class="tag"></<span class="title">p</span>></span>
<span class="tag"><<span class="title">input</span> <span class="attribute">v-model</span>=<span class="value">"message"</span>></span>
<span class="tag"></<span class="title">div</span>></span>
</pre></td></tr></tbody></table></figure>
</div>
<div class="sign">+</div>
<div class="block">
<figure class="highlight lang-js"><table><tbody><tr><td class="gutter"><pre>1
2
3
4
5
6
</pre></td><td class="code"><pre><span class="keyword">var</span> demo = <span class="keyword">new</span> Vue({
el: <span class="string">'#demo'</span>,
data: {
message: <span class="string">'Hello Vue.js!'</span>
}
})
</pre></td></tr></tbody></table></figure>
</div>
<div class="sign">=</div>
<div class="block result">
<div id="demo">
<p>{{message}}</p>
<input v-model="message">
</div>
<script>
var demo = new Vue({
el: '#demo',
data: {
message: 'Hello Vue.js!'
}
})
</script>
</div>
</div>
<div id="features">
<div class="feats">
<div class="feat">
<h2><span class="icon simple"></span>Simple</h2>
<p>Write some HTML, grab some JSON, create a Vue instance, that's it.</p>
</div>
<div class="feat">
<h2><span class="icon powerful"></span>Reactive</h2>
<p>Expressions & computed properties with transparent dependency tracking.</p>
</div>
<div class="feat">
<h2><span class="icon composable"></span>Components</h2>
<p>Compose your application with decoupled, reusable components.</p>
</div>
<div class="feat">
<h2><span class="icon compact"></span>Compact</h2>
<p>~23kb min+gzip, no dependency.</p>
</div>
<div class="feat">
<h2><span class="icon fast"></span>Fast</h2>
<p>Precise and efficient async batch DOM updates.</p>
</div>
<div class="feat">
<h2><span class="icon module"></span>Package Ready</h2>
<p>Install via NPM or Bower - leverage your favorite eco system!</p>
</div>
</div>
</div>
<div id="why">
<h2>You should try it out if you like:</h2>
<ul>
<li>Extendable Data bindings</li>
<li>Plain JS object models</li>
<li>API that simply makes sense</li>
<li>Build UI by composing components</li>
<li>Mix & matching small libraries</li>
</ul>
</div>
<div id="footer">
<a class="start" href="/guide/index.html">Get Started</a>
<p>Released under the <a href="http://opensource.org/licenses/MIT" target="_blank">MIT License</a></p>
<p>Copyright (c) 2015 <a href="http://evanyou.me" target="_blank">Evan You</a></p>
</div>
<!-- Twitter follow button script -->
<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>
<script>
// Temporarily block translation links until they are done
// for 1.0 updates.
[].forEach.call(document.querySelectorAll('#translations .nav-link'), function (link) {
link.addEventListener('click', function (e) {
e.preventDefault()
alert('Translations for the 1.0 docs are still work in progress.')
})
})
</script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/fastclick/1.0.6/fastclick.min.js"></script>
<script>
document.addEventListener('DOMContentLoaded', function() {
FastClick.attach(document.body);
}, false);
</script>
</body>
</html>