diff --git a/README.md b/README.md index bb4bc448..7bd5ea4f 100644 --- a/README.md +++ b/README.md @@ -87,7 +87,7 @@ JavaScriptTraining リポジトリを fork します。 なお、トレーニング中はこのコマンドを 終了しないでください。 - npm run serve + npm start diff --git a/gulp/serve.js b/gulp/serve.js index cc532f28..0f8bf2cc 100644 --- a/gulp/serve.js +++ b/gulp/serve.js @@ -46,6 +46,6 @@ var serve = function() { }; -serve.PORT = 8000; +serve.PORT = process.env.PORT || 8000; module.exports = serve; diff --git a/package.json b/package.json index e75d2089..0fa65628 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "scripts": { "postinstall": "bower install", "help": "gulp help", - "serve": "gulp serve", + "start": "gulp serve", "presentation": "reveal-md README.md --theme solarized --separator '^\\n\\n\\n' --verticalSeparator '^\\n\\n'", "lint-stage-1": "gulp lint-stage-1", "lint-stage-2": "gulp lint-stage-2", diff --git a/public/stage1/analytics.js b/public/stage1/analytics.js index d2e4b2d1..1a139d43 100644 --- a/public/stage1/analytics.js +++ b/public/stage1/analytics.js @@ -11,11 +11,11 @@ style.position = 'absolute'; style.fontSize = '100px'; - style.webkitAnimationName = 'moveHorizontal'; - style.webkitAnimationDuration = '1s'; - style.webkitAnimationIterationCount = 'infinite'; - style.webkitAnimationDirection = 'alternate-reverse'; - style.webkitAnimationFillMode = 'forwards'; + style.animationName = 'moveHorizontal'; + style.animationDuration = '1s'; + style.animationIterationCount = 'infinite'; + style.animationDirection = 'alternate-reverse'; + style.animationFillMode = 'forwards'; }; var XFlyingSushiMonster = document.registerElement('x-flying-sushi-monster', { diff --git a/public/stage4/tests.js b/public/stage4/tests.js index 599536b6..848bc074 100644 --- a/public/stage4/tests.js +++ b/public/stage4/tests.js @@ -103,8 +103,7 @@ describe('ステージ4(意図通りにイベントを利用できる)', fun function createClickEvent() { var event = document.createEvent('MouseEvents'); - event.initMouseEvent('click', true, true, window, - 0, 0, 0, 80, 20, false, false, false, false, 0, null); + event.initEvent('click', false, true); return event; }