Skip to content

Commit 8dd652d

Browse files
author
Kuniwak
committed
Merge branch '2015' into 2015-example-solution
2 parents fc6bfe7 + f988393 commit 8dd652d

2 files changed

Lines changed: 101 additions & 5 deletions

File tree

LICENSE

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
Copyright (c) 2015, mixi, inc.
2+
All rights reserved.
3+
4+
Redistribution and use in source and binary forms, with or without
5+
modification, are permitted provided that the following conditions are met:
6+
7+
1. Redistributions of source code must retain the above copyright notice,
8+
this list of conditions and the following disclaimer.
9+
2. Redistributions in binary form must reproduce the above copyright notice,
10+
this list of conditions and the following disclaimer in the documentation
11+
and/or other materials provided with the distribution.
12+
13+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
14+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
15+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
16+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
17+
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
18+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
19+
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
20+
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
21+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
22+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
23+
24+
The views and conclusions contained in the software and documentation are those
25+
of the authors and should not be interpreted as representing official policies,
26+
either expressed or implied, of the FreeBSD Project.

README.md

Lines changed: 75 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -551,6 +551,16 @@ CSS セレクタについては、[MDN のCSS リファレンス](https://develo
551551

552552

553553

554+
#### クリアできたら
555+
556+
Lint をかけてみましょう。
557+
558+
gulp lint-stage1
559+
560+
警告があれば、修正してみてください。
561+
562+
563+
554564
### ステージ2
555565

556566
DOM 要素の属性・テキストを変更する
@@ -637,6 +647,16 @@ HTML/JavaScript/CSS 分業の基本です。
637647

638648

639649

650+
#### クリアできたら
651+
652+
Lint をかけてみましょう。
653+
654+
gulp lint-stage2
655+
656+
警告があれば、修正してみてください。
657+
658+
659+
640660
### ステージ3
641661

642662
DOM の構造を変更するトレーニング
@@ -726,6 +746,16 @@ DOM 構造の操作が重要なのです。
726746

727747

728748

749+
#### クリアできたら
750+
751+
Lint をかけてみましょう。
752+
753+
gulp lint-stage3
754+
755+
警告があれば、修正してみてください。
756+
757+
758+
729759
### ステージ4
730760

731761
DOM イベントを利用するトレーニング
@@ -922,6 +952,16 @@ button.addEventListener('click', function(event) {
922952

923953

924954

955+
#### クリアできたら
956+
957+
Lint をかけてみましょう。
958+
959+
gulp lint-stage4
960+
961+
警告があれば、修正してみてください。
962+
963+
964+
925965
### ステージ5
926966

927967
非同期処理のトレーニング
@@ -974,7 +1014,7 @@ console.log(2);
9741014
JavaScript にはサーバーと非同期に通信するための
9751015
API が用意されています。
9761016

977-
- [fetch API](http://www.hcn.zaq.ne.jp/___/WEB/Fetch-ja.html)
1017+
- [Fetch API](http://www.hcn.zaq.ne.jp/___/WEB/Fetch-ja.html)
9781018

9791019
現在策定中の新しい標準仕様
9801020

@@ -986,14 +1026,14 @@ API が用意されています。
9861026

9871027

9881028
今回は、JavaScript の将来を見据えて、
989-
fetch API によるサーバーとの通信を
1029+
Fetch API によるサーバーとの通信を
9901030
トレーニングします。
9911031

9921032

9931033

994-
#### fetch API
1034+
#### Fetch API
9951035

996-
fetch API は下のように書きます。
1036+
Fetch API は下のように書きます。
9971037
このコードは、`/users.json`
9981038
取得します。
9991039

@@ -1124,11 +1164,21 @@ fetch('/api/foo')
11241164

11251165
- [Promise に関する参考情報](https://developer.mozilla.org/ja/docs/Web/JavaScript/Reference/Global_Objects/Promise)
11261166
- [Promise 参考情報(重量級)](http://azu.github.io/promises-book/)
1127-
- [fetch API に関する参考情報](https://github.com/github/fetch)
1167+
- [Fetch API に関する参考情報](https://github.com/github/fetch)
11281168
- [Github API に関する参考情報](https://developer.github.com/v3/)
11291169

11301170

11311171

1172+
#### クリアできたら
1173+
1174+
Lint をかけてみましょう。
1175+
1176+
gulp lint-stage5
1177+
1178+
警告があれば、修正してみてください。
1179+
1180+
1181+
11321182
### ステージ6
11331183

11341184
モジュールを実装するトレーニング
@@ -1392,6 +1442,16 @@ y でレジストリへの公開ができないように設定します。
13921442

13931443

13941444

1445+
#### クリアできたら
1446+
1447+
Lint をかけてみましょう。
1448+
1449+
gulp lint-stage6
1450+
1451+
警告があれば、修正してみてください。
1452+
1453+
1454+
13951455
### ステージ7
13961456

13971457
よくあるイディオムを読むトレーニング
@@ -1424,6 +1484,16 @@ y でレジストリへの公開ができないように設定します。
14241484

14251485

14261486

1487+
#### クリアできたら
1488+
1489+
Lint をかけてみましょう。
1490+
1491+
gulp lint-stage7
1492+
1493+
警告があれば、修正してみてください。
1494+
1495+
1496+
14271497
付録
14281498
----
14291499

0 commit comments

Comments
 (0)