File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed
docs/2-browser-apps/09-project/_samples/calendar Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 22< html lang ="ja ">
33 < head >
44 < meta charset ="UTF-8 " />
5- < title > Calender </ title >
5+ < title > Calendar </ title >
66 < link rel ="stylesheet " href ="style.css " />
77 </ head >
88 < body >
9- < table id ="calender "> </ table >
9+ < table id ="calendar "> </ table >
1010 < button id ="button "> 消去</ button >
1111 < script src ="script.js "> </ script >
1212 </ body >
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ const year = today.getFullYear();
44const month = today . getMonth ( ) ;
55const startDate = new Date ( year , month , 1 ) ;
66const endDate = new Date ( year , month + 1 , 0 ) ;
7- const calender = document . getElementById ( "calender " ) ;
7+ const calendar = document . getElementById ( "calendar " ) ;
88const button = document . getElementById ( "button" ) ;
99
1010// 編集中の予定を追うための変数
@@ -22,12 +22,12 @@ for (let i = 0; i < 7; i += 1) {
2222}
2323
2424// 曜日の行を追加
25- calender . appendChild ( firstRow ) ;
25+ calendar . appendChild ( firstRow ) ;
2626
2727// 日付の行を作成
2828for ( let x = 1 ; x <= 6 ; x += 1 ) {
2929 const tr = document . createElement ( "tr" ) ;
30- calender . appendChild ( tr ) ;
30+ calendar . appendChild ( tr ) ;
3131 for ( let y = 1 ; y <= 7 ; y += 1 ) {
3232 const td = document . createElement ( "td" ) ;
3333 const ul = document . createElement ( "ul" ) ;
Original file line number Diff line number Diff line change 1- # calender > td ,
1+ # calendar > td ,
22th {
33 border : 1px solid black;
44}
55
6- # calender {
6+ # calendar {
77 border-collapse : collapse;
88}
99
You can’t perform that action at this time.
0 commit comments