-
Notifications
You must be signed in to change notification settings - Fork 40
/
Copy pathasset.html
285 lines (243 loc) · 11.4 KB
/
asset.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
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
<!DOCTYPE html>
<html ng-app>
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, user-scalable=no" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<title>Usage | tmlib.js</title>
<link rel="shortcut icon" href="logo.png" />
<link rel="apple-touch-icon-precomposed" href="icon.png" />
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="http://netdna.bootstrapcdn.com/bootstrap/3.0.1/css/bootstrap.min.css">
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="https://code.jquery.com/jquery-1.10.2.min.js"></script>
<!-- Latest compiled and minified JavaScript -->
<script src="http://netdna.bootstrapcdn.com/bootstrap/3.0.1/js/bootstrap.min.js"></script>
<!-- anguler -->
<!--
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.0/angular.min.js"></script>
-->
</head>
<body>
<div class="navbar navbar-inverse navbar-fixed-top">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="./index.html">tmlib.js</a>
</div>
<div class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li class="active"><a href="./usage.html">Usage</a></li>
<li><a href="./tutorial.html">Tutorial</a></li>
<li><a href="./example.html">Example</a></li>
<li><a href="./docs/index.html">Docs</a></li>
<li><a href="http://banraku-games.sakura.ne.jp/" target="_blank">Assets</a></li>
<li><a href="http://tmlife.net" target="_blank">Blog</a></li>
<li><a href="https://twitter.com/phi_jp" target="_blank">Contact</a></li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li>
<div>
<a href="https://twitter.com/share" class="twitter-share-button" data-url="http://phi-jp.github.io/tmlib.js/" data-text="ヒヨコ始めました!! 『JavaScript ライブラリ tmlib.js』" data-via="phi_jp" data-hashtags="tmlib">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>
</li>
<li>
<div>
<a data-pocket-label="pocket" data-pocket-count="horizontal" class="pocket-btn" data-lang="en"></a>
<script type="text/javascript">!function(d,i){if(!d.getElementById(i)){var j=d.createElement("script");j.id=i;j.src="https://widgets.getpocket.com/v1/j/btn.js?v=1";var w=d.getElementById(i);d.body.appendChild(j);}}(document,"pocket-btn-js");</script>
</div>
</li>
<li>
<div>
<a href="http://b.hatena.ne.jp/entry/http://phi-jp.github.io/tmlib.js/" class="hatena-bookmark-button" data-hatena-bookmark-title="tmlib.js" data-hatena-bookmark-layout="standard-balloon" data-hatena-bookmark-lang="en" title="このエントリーをはてなブックマークに追加"><img src="http://b.st-hatena.com/images/entry-button/[email protected]" alt="このエントリーをはてなブックマークに追加" width="20" height="20" style="border: none;" /></a><script type="text/javascript" src="http://b.st-hatena.com/js/bookmark_button.js" charset="utf-8" async="async"></script>
</div>
</li>
</ul>
</div>
</div>
</div>
<div class="container">
<div class="row">
<div>
<div class="page-header">
<h1>
Assets
</h1>
</div>
<p>
tmlib.js の使い方.
とぉ〜っても簡単♪
</p>
<div>
<h2>
ひよこ置き場
</h2>
<div data-bind="foreach: imageList" class="image-box row">
<div class="col-lg-4" data-bind="attr: { 'id' : id }">
<div class="image-box-inner">
<div class="image-wrapper">
<img width=200px data-bind="attr: { 'src' : src }" />
</div>
<div>
<h3 data-bind="text: name"></h3>
<div data-bind="text: description"></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<footer class="footer">
<div class="container">
<p>
Copyright © TM Life. All Rights Reserved.
</p>
<ul class="footer-links">
<li><a href="http://tmlife.net">Blog</a></li>
<li class="muted">·</li>
<li><a href="https://github.com/phi1618/tmlib.js/issues?state=open">Issues</a></li>
<li class="muted">·</li>
<li><a href="https://github.com/phi1618/tmlib.js/blob/master/CHANGELOG.md">Changelog</a></li>
</ul>
</div>
</footer>
<!-- Github ribbon -->
<a href="https://github.com/phi-jp/tmlib.js/" target="_blank"><img style="position: fixed; top: 0; right: 0; border: 0; z-index: 9999;" src="https://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png" alt="Fork me on GitHub"></a>
<img height="200" src="resource/img/burokkori.png" style="position: fixed; bottom: 40px; right: 0; border: 0; z-index: 9999;" />
<script src="build/tmlib.js"></script>
<!-- hiyoko -->
<link rel="stylesheet" href="plugins/hiyoko/hiyoko.css">
<script src="plugins/hiyoko/hiyoko.js"></script>
<style>
body {
padding-top: 50px;
}
@media(min-width:1200px) {
.container {
width: 1000px;
}
}
.page-header {
border-bottom: 1px solid #eee;
margin: 40px 0 20px;
padding-bottom: 9px;
}
.col-lg-3 {
text-align: center;
margin-bottom: 20px;
}
.col-lg-4 {
text-align: center;
margin-bottom: 20px;
}
.example-inner {
background: hsl(240, 80%, 98%);
box-shadow: 0px 0px 2px 0px #aaa;
border-radius: 4px;
padding: 5px 10px;
}
p.description {
min-height: 60px;
}
.affix {
top: 100px;
}
</style>
<link href='http://fonts.googleapis.com/css?family=Mystery+Quest' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="css/base.css" />
<link rel="stylesheet" href="css/header.css" />
<link rel="stylesheet" href="css/footer.css" />
<style>
body {
padding-top: 80px;
}
.image-box .image-box-inner {
background: rgb(240, 240, 240);
box-shadow: 0px 0px 2px 0px hsl(0, 0%, 67%);
border-radius: 4px;
padding: 20px 15px;
}
.image-box .image-wrapper {
box-shadow: 0px 0px 2px 0px hsl(0, 0%, 67%);
min-height: 180px;
max-height: 180px;
background: white;
text-align: center;
}
.image-box img {
width: auto;
max-height: 180px;
/* max-width: 180px;
height: auto;
*/ }
</style>
<!-- prettify -->
<link rel="stylesheet" href="plugins/prettify/prettify.css" />
<script src="plugins/prettify/prettify.js"></script>
<script>prettyPrint();</script>
<!-- knockout -->
<script src="http://cdnjs.cloudflare.com/ajax/libs/knockout/3.0.0/knockout-debug.js"></script>
<script>
tm.main(function() {
var viewModel = function() {
var self = this;
self.imageList = ko.observableArray();
self.imageList([
{
"id": "hoge",
"name": "ひよこ",
"description": "320*320のデカいひよこ画像ぴよ。タイトル画像に合成して使うとかの使い道があるぴよ。存分に愛でて欲しいぴよ。",
"src":"http://banraku-games.sakura.ne.jp/hiyoco_big.png"
},
{
"id": "hoge",
"name": "ひよこ",
"description": "Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text ",
"src":"http://banraku-games.sakura.ne.jp/hiyoco_nomal_full.png"
},
{
"id": "hoge",
"name": "ひよこ",
"description": "Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text ",
"src":"http://banraku-games.sakura.ne.jp/hiyoco_big_lady.png"
},
{
"id": "hoge",
"name": "ひよこ",
"description": "Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text ",
"src":"http://banraku-games.sakura.ne.jp/hiyoco_lady_full.png"
},
{
"id": "hoge",
"name": "ひよこ",
"description": "Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text ",
"src":"http://banraku-games.sakura.ne.jp/hiyoco_big.png"
},
{
"id": "hoge",
"name": "ひよこ",
"description": "Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text ",
"src":"http://banraku-games.sakura.ne.jp/hiyoco_nomal_full.png"
},
{
"id": "hoge",
"name": "ひよこ",
"description": "Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text ",
"src":"http://banraku-games.sakura.ne.jp/hiyoco_big.png"
},
]);
};
var viewModel = new viewModel();
ko.applyBindings(viewModel);
});
</script>
</body>
</html>