Skip to content

Commit 0e914a1

Browse files
committed
Rename variable name
1 parent 7a8d9e4 commit 0e914a1

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

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/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/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

0 commit comments

Comments
 (0)