Skip to content

Commit ca97a11

Browse files
authored
Merge pull request #312 from ut-code/fix-variable-name
Fix variable name
2 parents 30593f2 + 0e914a1 commit ca97a11

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

docs/2-browser-apps/09-project/_samples/calender/index.html renamed to docs/2-browser-apps/09-project/_samples/calendar/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
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>

docs/2-browser-apps/09-project/_samples/calender/script.js renamed to docs/2-browser-apps/09-project/_samples/calendar/script.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const year = today.getFullYear();
44
const month = today.getMonth();
55
const startDate = new Date(year, month, 1);
66
const endDate = new Date(year, month + 1, 0);
7-
const calender = document.getElementById("calender");
7+
const calendar = document.getElementById("calendar");
88
const 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
// 日付の行を作成
2828
for (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");

docs/2-browser-apps/09-project/_samples/calender/style.css renamed to docs/2-browser-apps/09-project/_samples/calendar/style.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
#calender > td,
1+
#calendar > td,
22
th {
33
border: 1px solid black;
44
}
55

6-
#calender {
6+
#calendar {
77
border-collapse: collapse;
88
}
99

File renamed without changes.

docs/2-browser-apps/09-project/index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ title: プロジェクト
55
import Term from "@site/src/components/Term";
66
import ViewSource from "@site/src/components/ViewSource";
77
import 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" />

0 commit comments

Comments
 (0)