質問編集履歴
3
変更
test
CHANGED
File without changes
|
test
CHANGED
@@ -152,7 +152,7 @@
|
|
152
152
|
|
153
153
|
link.target = '_blank';
|
154
154
|
|
155
|
-
//
|
155
|
+
//link.textContent = event.title; 下記に変更
|
156
156
|
|
157
157
|
link.textContent = eventInfo.title;
|
158
158
|
|
2
変更
test
CHANGED
File without changes
|
test
CHANGED
@@ -152,7 +152,9 @@
|
|
152
152
|
|
153
153
|
link.target = '_blank';
|
154
154
|
|
155
|
+
//event.title → eventInfo.titleに変更
|
156
|
+
|
155
|
-
link.textContent = event.title;
|
157
|
+
link.textContent = eventInfo.title;
|
156
158
|
|
157
159
|
var li = document.createElement('li');
|
158
160
|
|
@@ -170,6 +172,20 @@
|
|
170
172
|
|
171
173
|
|
172
174
|
|
175
|
+
// 追記
|
176
|
+
|
177
|
+
var formatDate = function (dateString) {
|
178
|
+
|
179
|
+
var date = new Date(dateString);
|
180
|
+
|
181
|
+
return (date.getMonth() + 1) + '/' + date.getDate();
|
182
|
+
|
183
|
+
};
|
184
|
+
|
185
|
+
|
186
|
+
|
187
|
+
|
188
|
+
|
173
189
|
searchForm.addEventListener('submit', searchEvents);
|
174
190
|
|
175
191
|
window.callback = showEvents;
|
1
追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -191,3 +191,17 @@
|
|
191
191
|
## お手本
|
192
192
|
|
193
193
|
![イメージ説明](8fdfd8326efa9497104732e18c64d37d.png)
|
194
|
+
|
195
|
+
|
196
|
+
|
197
|
+
## 追記
|
198
|
+
|
199
|
+
|
200
|
+
|
201
|
+
![イメージ説明](261ea61421d740db5e5a3e997e1a7b9c.png)
|
202
|
+
|
203
|
+
|
204
|
+
|
205
|
+
- formatData → formatDate
|
206
|
+
|
207
|
+
![イメージ説明](33bd2f36c3971aa93b6d98efea1298f4.png)
|