Skip to content
This repository was archived by the owner on Jun 20, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -536,11 +536,17 @@ CSS セレクタについては、[MDN のCSS リファレンス](https://develo

### ステージ2

DOM 要素のスタイルを変更するトレーニング
DOM 要素の属性・テキストを変更する
トレーニング



このステージでは、スタイルの変更や
表示文字列を変更するやり方を学びます。



#### DOM 要素のスタイル
#### DOM 要素の属性・テキスト

DOM 要素には、

Expand Down Expand Up @@ -622,7 +628,7 @@ DOM の構造を変更するトレーニング

#### DOM の構造

このステージでは、DOM のスタイルではなく
このステージでは、DOM の属性ではなく
構造を変更するトレーニングをおこないます。

たとえば、書籍を検索する Web API を使って、
Expand Down
13 changes: 0 additions & 13 deletions gulpfile.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
'use strict';

var util = require('util');
var path = require('path');
var gulp = require('gulp-help')(require('gulp'));
var merge = require('merge-stream');
Expand Down Expand Up @@ -33,18 +32,6 @@ var tasks = [
];


tasks.forEach(function(task) {
var run = require('gulp-run');
var url = util.format('http://localhost:%d/%s/', serve.PORT, task.id);

gulp.task(task.id, task.help, ['lint-' + task.id], function() {
// We expected that mocha-phantomjs print colorized results, but it isn't.
// So, I take a fast way that is using gulp-run.
return run('$(npm bin)/mocha-phantomjs ' + url + ' || true').exec();
});
});


tasks.forEach(function(task) {
var stage = path.join('public', task.id);
var js = path.join(stage, '**/*.js');
Expand Down
2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,8 @@
"gulp-eslint": "^0.6.0",
"gulp-help": "^1.3.3",
"gulp-nodemon": "^1.0.5",
"gulp-run": "^1.6.6",
"gulp-util": "^3.0.4",
"merge-stream": "^0.1.7",
"mocha-phantomjs": "^3.5.3",
"stream-combiner2": "^1.0.2"
},
"dependencies": {
Expand Down
6 changes: 3 additions & 3 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ <h1>mixi JavaScript Training</h1>
</div>
<ol>
<li><a href="stage1">DOM 要素を取得するトレーニング</a></li>
<li><a href="stage2">DOM 要素のスタイルを変更するトレーニング</a></li>
<li><a href="stage2">DOM 要素の属性・テキストを変更するトレーニング</a></li>
<li><a href="stage3">DOM の構造を変更するトレーニング</a></li>
<li><a href="stage4">DOM イベントを利用するトレーニング</a></li>
<li><a href="stage5">サーバーと通信するトレーニング</a></li>
<li><a href="stage5">非同期処理を書くトレーニング</a></li>
<li><a href="stage6">モジュールを実装するトレーニング</a></li>
<li><a href="stage7">よくあるイディオムを読み書きするトレーニング</a></li>
<li><a href="stage7">よくあるイディオムを読むトレーニング</a></li>
</ol>
</div>
</body>
Expand Down
3 changes: 0 additions & 3 deletions public/stage1/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,6 @@
</script>
<script>mocha.setup('bdd')</script>
<script src="analytics.js"></script>
<script>
describe.skipWhenPhantomJS = window.mochaPhantomJS ? describe.skip : describe;
</script>
<script src="tests.js"></script>
<script>
if (window.mochaPhantomJS) { mochaPhantomJS.run(); }
Expand Down
Loading