-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
executable file
·172 lines (139 loc) · 5.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Ember Starter Kit</title>
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/style.css" rel="stylesheet">
</head>
<body>
<script type="text/x-handlebars">
<div class="navbar navbar-inverse navbar-fixed-top">
<div class="navbar-inner">
<div class="container-fluid">
<button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="brand" href="#">Ember.js Samples</a>
<div class="nav-collapse collapse">
<p class="navbar-text pull-right">
</p>
<ul class="nav">
<li>{{#linkTo index}}Index{{/linkTo}}</li>
<li>{{#linkTo bindings}}Bindings{{/linkTo}}</li>
<li>{{#linkTo bootstrap}}Bootstrap{{/linkTo}}</li>
<li>{{#linkTo users}}Users{{/linkTo}}</li>
<li>{{#linkTo tweets}}Tweets{{/linkTo}}</li>
<li>{{#linkTo tweetList}}Tweet List{{/linkTo}}</li>
</ul>
</div>
</div>
</div>
</div>
<div class="container-fluid">
<div class="row-fluid">
{{outlet}}
</div>
</div>
</div>
</script>
<script type="text/x-handlebars" data-template-name="index">
<div class="hero-unit">
<h1>Ember.js Dublin Samples</h1>
<h2>@gavinjoyce</h2>
</div>
</script>
<script type="text/x-handlebars" data-template-name="bindings">
<h1>value: [{{name}}]</h1>
{{view Ember.TextField valueBinding="name" }}
{{view Ember.TextField valueBinding="name" }}
{{view Ember.TextField valueBinding="name" }}
{{view Ember.TextField valueBinding="name" }}
{{view Ember.TextField valueBinding="name" }}
{{view Ember.TextField valueBinding="name" }}
{{view Ember.TextField valueBinding="name" }}
{{view Ember.TextField valueBinding="name" }}
{{view Ember.TextField valueBinding="name" }}
{{view Ember.TextField valueBinding="name" }}
{{view Ember.TextField valueBinding="name" }}
{{view Ember.TextField valueBinding="name" }}
</script>
<script type="text/x-handlebars" data-template-name="bootstrap">
{{view Bootstrap.ProgressBar isStriped=true isAnimated=true progressBinding="progress"}}
{{view Bootstrap.AlertMessage typeBinding="type" messageBinding="message"}}
<button {{action decreaseProgress}} type="button" class="btn btn-mini btn-warning">- 1</button>
<button {{action increaseProgress}} type="button" class="btn btn-mini btn-success">+ 1</button>
{{#if isOdd}}
{{view Bootstrap.Label type="important" content="Odd"}}
{{else}}
{{view Bootstrap.Label type="inverse" content="Even"}}
{{/if}}
<hr />
https://github.com/emberjs-addons/ember-bootstrap
</script>
<script type="text/x-handlebars" data-template-name="users">
<h2>There are {{length}} users</h2>
<button {{action createUser}}>Create User</button>
<hr />
{{#each controller}}
<img {{bindAttr src="avatar"}} width="100" class="avatar-big" {{bindAttr title="username"}}/>
{{/each}}
</script>
<script type="text/x-handlebars" data-template-name="tweets">
<button {{action createTweet}}>Create Tweet</button>
<ul class="tweets">
{{#each controller}}
{{partial "tweet"}}
{{/each}}
</ul>
</script>
<script type="text/x-handlebars" data-template-name='_tweet'>
<li class="tweet">
<span class="avatar">
<img {{bindAttr src="user.avatar"}} class="avatar-small" />
</span>
<span class="message">
<strong>{{user.username}}</strong> ({{timeAgo}}): <span class="message">{{message}}</span>
</span>
</li>
</script>
<script type="text/x-handlebars" data-template-name="tweetList">
<h2>There are {{length}} tweets</h2>
<button {{action createTweets}}>Create Lots Of Tweet</button>
{{#collection Ember.ListView contentBinding="controller" height=400 rowHeight=60 width=700}}
{{partial "tweet"}}
{{/collection}}
<hr />
https://github.com/emberjs/list-view
</script>
<script type="text/x-handlebars" data-template-name="parent">
<h2>parent</h2>
<hr />
{{outlet}}
<hr />
</script>
<script type="text/x-handlebars" data-template-name="child">
<h3>child</h3>
<hr />
{{outlet}}
<hr />
</script>
<script type="text/x-handlebars" data-template-name="grandchild">
<h4>grandchild</h4>
{{view Ember.TextField valueBinding="name" }}
<hr />
https://github.com/tildeio/ember-extension<br />
http://www.kaspertidemann.com/how-to-try-out-the-ember-inspector-in-google-chrome/
</script>
<script src="js/libs/jquery-1.9.1.js"></script>
<script src="js/libs/handlebars-1.0.0-rc.4.js"></script>
<script src="js/libs/ember-1.0.0-rc.5.js"></script>
<script src="js/libs/ember-data-latest.js"></script>
<script src="js/libs/localstorage_adapter.js"></script>
<script src="js/libs/ember-bootstrap.js"></script>
<script src="js/libs/list-view.js"></script>
<script src="js/app.js"></script>
</body>
</html>