forked from knockout/knockout
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
126 lines (121 loc) · 5.27 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
---
layout: default
title: Home
mainmenukey: home
---
<div id="masthead">
<div id="slogan">
<p class="engraved">Simplify dynamic JavaScript UIs by applying the Model-View-View Model (MVVM) pattern</p>
<a class="download-button" href="http://github.com/downloads/SteveSanderson/knockout/knockout-2.0.0.js">
<p>Download</p>
<p class="smallprint">v2.0.0 - 13kb min+gz</p>
</a>
</div>
<img src="img/ko-logo.png" />
</div>
<div class="clear vspace"></div>
<div class="sticker fullWidth">
<div class="stickerHeading titillium">
<h1>Key concepts</h1>
</div>
<ul id="introBadges">
<li>
<img src="img/feature-icons/declarative-bindings.png" />
<p class="titillium heading">Declarative Bindings</p>
<p>Easily associate DOM elements with model data using a concise, readable syntax</p>
</li>
<li>
<img src="img/feature-icons/automatic-refreshing.png" />
<p class="titillium heading">Automatic UI Refresh</p>
<p>When your data model's state changes, your UI updates automatically</p>
</li>
<li>
<img src="img/feature-icons/dependency-tracking.png" />
<p class="titillium heading">Dependency Tracking</p>
<p>Implicitly set up chains of relationships between model data, to transform and combine it</p>
</li>
<li>
<img src="img/feature-icons/templating.png" />
<p class="titillium heading">Templating</p>
<p>Quickly generate sophisticated, nested UIs as a function of your model data</p>
</li>
</ul>
<div class="clear"></div>
</div>
<div class="floatLeft">
<div class="sticker" style="width: 380px">
<div class="stickerHeading titillium">
<h1>More features</h1>
</div>
<ul class="tickIcons">
<li>Free, open source (<a href="http://www.opensource.org/licenses/mit-license.php">MIT license</a>)</li>
<li>Pure JavaScript — works with any web framework</li>
<li>
Small & lightweight — 39kb minified
<p class="smallprint">... in fact, around 13kb when using HTTP compression</p>
</li>
<li>No dependencies</li>
<li>
Supports all mainstream browsers
<p class="smallprint">IE 6+, Firefox 2+, Chrome, Opera, Safari (desktop/mobile)</p>
</li>
<li>
Fully documented
<p class="smallprint">API docs, live examples, and interative tutorials included</p>
</li>
</ul>
</div>
<div class="sticker" style="width: 380px">
<div class="stickerHeading titillium">
<h1>Get started</h1>
</div>
<ul class="stickerList">
<li>
<a href="http://learn.knockoutjs.com">Interactive tutorials</a>
<p class="smallprint">Learn the easy way with an in-browser code editor</p>
</li>
<li>
<a href="http://channel9.msdn.com/Events/MIX/MIX11/FRM08">20-minute demo video</a>
<p>
<a href="http://channel9.msdn.com/Events/MIX/MIX11/FRM08">
<img src="img/mixVideo.jpg" width="320" height="145" style="display: block; margin: 1em auto"/>
</a>
</p>
<p class="smallprint">Grab a coffee and watch this fast-paced introductory session, filmed at the 2011 MIX conference.</p>
</li>
<li>
<a href="documentation/introduction.html">Introduction to Knockout</a>
<p class="smallprint">Tutorial, benefits, comparisons with other frameworks</p>
</li>
<li>
<a href="documentation/observables.html#mvvm_and_view_models">Introduction to the Model-View-View Model pattern</a>
<p class="smallprint">How KO enables it with observables and dependent observables</p>
</li>
<li>
<a href="examples/">More live examples</a>
</li>
<li>
<a href="documentation/links.html">External links and blog posts</a>
</li>
<li>
<a href="http://github.com/SteveSanderson/knockout/">Source code on Github</a>
</li>
</ul>
</div>
</div>
<div class="sticker floatRight" style="width:494px">
<div class="stickerHeading titillium">
<h1><b>New:</b> Interactive tutorials</h1>
</div>
<p>
Get started with knockout.js quickly, learning to build <em>single-page applications</em>, <em>custom bindings</em> and more
with <a href="http://learn.knockoutjs.com">these interactive tutorials</a>.
</p>
</div>
<div class="sticker floatRight homepageExample" style="width:494px">
<div class="stickerHeading titillium">
<h1>Live example</h1>
</div>
{% include homepage-example.html %}
<p>By encapsulating data and behavior into a view model, you get a clean, extensible foundation on which to build sophisticated UIs without getting lost in a tangle of event handlers and manual DOM updates.</p>
</div>