File tree Expand file tree Collapse file tree 5 files changed +10
-10
lines changed
docs/2-browser-apps/09-project Expand file tree Collapse file tree 5 files changed +10
-10
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
File renamed without changes.
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ title: プロジェクト
55import Term from "@site/src /components/Term";
66import ViewSource from "@site/src /components/ViewSource";
77import ExternalVideoPlayer from "@site/src /components/ExternalVideoPlayer";
8- import calenderVideo from "./calender .mp4";
8+ import calendarVideo from "./calendar .mp4";
99
1010ここまでの知識を使って、今月分の予定管理アプリを作ってみましょう。
1111
@@ -16,7 +16,7 @@ import calenderVideo from "./calender.mp4";
1616- 編集中には消去ボタンが現れ、押すと予定を削除できる。
1717- 編集中に別の場所を押したりエンターキーを押したりすると予定が確定する(何も入力していない状態だと消える)
1818
19- <video src ={calenderVideo } controls loop autoPlay muted />
19+ <video src ={calendarVideo } controls loop autoPlay muted />
2020
2121## ヒント
2222
@@ -89,4 +89,4 @@ window.addEventListener("keypress", pressed);
8989
9090解答例は次のリンクを参照してください。
9191
92- <ViewSource url ={import.meta.url} path =" _samples/calender " />
92+ <ViewSource url ={import.meta.url} path =" _samples/calendar " />
You can’t perform that action at this time.
0 commit comments