File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -190,10 +190,11 @@ describe('ステージ5(意図通りに非同期処理を利用できる)',
190190
191191 it ( 'Github API を使って、VimL、Emacs Lisp でスターが最も多いプロダクト名を' +
192192 'それぞれ 1 つずつ取得できる' , function ( ) {
193- var languages = [ 'VimL ' , '"Emacs Lisp"' ] ;
193+ var languages = [ 'Vim ' , '"Emacs Lisp"' ] ;
194194
195195 function serchRepositriesStarUser ( lang ) {
196196 var queryString = 'q=languages:' + lang + '&sort=stars' ;
197+ console . log ( queryString ) ;
197198
198199 return fetch ( 'https://api.github.com/search/repositories?' + queryString )
199200 . then ( function ( res ) {
Original file line number Diff line number Diff line change 66 < meta name ="viewport " content ="width=device-width, initial-scale=1.0 ">
77 < link href ="http://img.mixi.net/img/basic/favicon.ico " type ="image/vnd.microsoft.icon " rel ="icon ">
88 < link href ="http://img.mixi.net/img/basic/favicon.ico " type ="image/vnd.microsoft.icon " rel ="shortcut icon ">
9- < link rel ="stylesheet " href ="bower_components/Buttons/css/buttons.css " media ="all ">
9+ < link rel ="stylesheet " href ="../public/ bower_components/Buttons/css/buttons.css " media ="all ">
1010 < link rel ="stylesheet " href ="style.css " media ="all ">
11+
12+ < link href ="//netdna.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.css " rel ="stylesheet ">
1113</ head >
1214< body >
1315 < div class ="js-training-playground ">
1416 < button class ="button button-caution button-3d button-pill button-giant js-training-button "> Push</ button >
17+ < button class ="button button-action "> add</ button >
18+ < div class ="star "> ★</ div >
1519 </ div >
1620 < script src ="script.js "> </ script >
1721</ body >
Original file line number Diff line number Diff line change 11// ボタンはサービスです。
22// 自由に使ってください。
3+
4+ var button = document . querySelector ( '.button-action' ) ;
5+ var starElme = document . querySelector ( '.star' ) ;
6+ var oneStar = starElme . textContent ;
7+
8+ button . addEventListener ( 'click' , function ( ) {
9+ starElme . textContent += oneStar ;
10+ } ) ;
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ describe('ステージ6(意図通りにモジュールを書ける)', functi
55 // ボタンはサービスです。
66 // 自由に使ってください。
77
8- var qualityOfYourAppliation = undefined ;
8+ var qualityOfYourAppliation = true ;
99
1010 expect ( qualityOfYourAppliation ) . to . be . ok ;
1111 } ) ;
You can’t perform that action at this time.
0 commit comments