質問編集履歴

5

2020/10/06 01:04

投稿

gomamon
gomamon

スコア1

test CHANGED
File without changes
test CHANGED
@@ -6,6 +6,8 @@
6
6
 
7
7
 
8
8
 
9
+
10
+
9
11
  ※追記
10
12
 
11
13
  エラーはありません

4

2020/10/06 01:04

投稿

gomamon
gomamon

スコア1

test CHANGED
File without changes
test CHANGED
@@ -14,6 +14,12 @@
14
14
 
15
15
  ### 該当のソースコード
16
16
 
17
+
18
+
19
+ ```lang-HTML
20
+
21
+
22
+
17
23
  <!DOCTYPE html>
18
24
 
19
25
  <html>

3

2020/10/06 01:04

投稿

gomamon
gomamon

スコア1

test CHANGED
File without changes
test CHANGED
@@ -224,224 +224,6 @@
224
224
 
225
225
  </body>
226
226
 
227
- </html>```ここに言語を入力
228
-
229
-
230
-
231
-
232
-
233
- ### 該当のソースコード
234
-
235
- <!DOCTYPE html>
236
-
237
- <html>
238
-
239
- <head>
240
-
241
- <meta charset='utf-8' />
242
-
243
- <link href='../lib/main.css' rel='stylesheet' />
244
-
245
- <script src='../lib/main.js'></script>
246
-
247
- <script src="lib/jquery.min.js"></script>
248
-
249
- <script src="lib/moment.min.js"></script>
250
-
251
- <script src="fullcalendar.js"></script>
252
-
253
- <script>
254
-
255
-
256
-
257
- document.addEventListener('DOMContentLoaded', function() {
258
-
259
- var calendarEl = document.getElementById('calendar');
260
-
261
-
262
-
263
- var calendar = new FullCalendar.Calendar(calendarEl, {
264
-
265
- headerToolbar: {
266
-
267
- left: 'prev,next today',
268
-
269
- center: 'title',
270
-
271
- right: 'dayGridMonth,timeGridWeek,timeGridDay,listMonth'
272
-
273
- },
274
-
275
- initialDate: '2020-09-12',
276
-
277
- navLinks: true, // can click day/week names to navigate views
278
-
279
- businessHours: true, // display business hours
280
-
281
- editable: true,
282
-
283
- selectable: true,
284
-
285
-
286
-
287
-
288
-
289
- events: [
290
-
291
- {//ここにイベントを記述していく
292
-
293
- title: 'Business Lunch',
294
-
295
- start: '2020-09-03T13:00:00',
296
-
297
- constraint: 'businessHours'
298
-
299
- },
300
-
301
- {
302
-
303
- title: 'Meeting',
304
-
305
- start: '2020-09-13T11:00:00',
306
-
307
- constraint: 'availableForMeeting', // defined below
308
-
309
- color: '#257e4a'
310
-
311
- },
312
-
313
-
314
-
315
- // areas where "Meeting" must be dropped
316
-
317
- {
318
-
319
- groupId: 'availableForMeeting',
320
-
321
- start: '2020-09-11T10:00:00',
322
-
323
- end: '2020-09-11T16:00:00',
324
-
325
- display: 'background'
326
-
327
- },
328
-
329
-
330
-
331
- // red areas where no events can be dropped
332
-
333
- {
334
-
335
- start: '2020-09-24',
336
-
337
- end: '2020-09-28',
338
-
339
- overlap: false,
340
-
341
- display: 'background',
342
-
343
- color: '#ff9f89'
344
-
345
- },
346
-
347
- ],
348
-
349
- dayClick: function(date, allDay, jsEvent, view) {
350
-
351
- console.log('a');
352
-
353
- var title = prompt('予定を入力してください:');
354
-
355
- $('#calendar').fullCalendar('addEventSource', [{
356
-
357
- id:date, //(date それぞれのボックスが持つ日付。)
358
-
359
- title: title,
360
-
361
- start: date, //(日付)
362
-
363
- allDay: allDay
364
-
365
- }]);
366
-
367
- },
368
-
369
- });
370
-
371
-
372
-
373
- calendar.render();
374
-
375
- });
376
-
377
-
378
-
379
- </script>
380
-
381
- <style>
382
-
383
-
384
-
385
- body {
386
-
387
- margin: 40px 10px;
388
-
389
- padding: 0;
390
-
391
- font-family: Arial, Helvetica Neue, Helvetica, sans-serif;
392
-
393
- font-size: 14px;
394
-
395
- }
396
-
397
-
398
-
399
- #calendar {
400
-
401
- max-width: 1100px;
402
-
403
- margin: 0 auto;
404
-
405
- }
406
-
407
- /* 日曜日*/
408
-
409
- .fc-sun {
410
-
411
- color: red;
412
-
413
- background-color: #fff0f0;
414
-
415
- }
416
-
417
-
418
-
419
- /* 土曜日 */
420
-
421
- .fc-sat {
422
-
423
- color: blue;
424
-
425
- background-color: #f0f0ff;
426
-
427
- }
428
-
429
-
430
-
431
- </style>
432
-
433
- </head>
434
-
435
- <body>
436
-
437
-
438
-
439
- <div id='calendar'></div>
440
-
441
-
442
-
443
- </body>
444
-
445
227
  </html>
446
228
 
447
229
 

2

2020/10/06 01:01

投稿

gomamon
gomamon

スコア1

test CHANGED
File without changes
test CHANGED
@@ -6,6 +6,10 @@
6
6
 
7
7
 
8
8
 
9
+ ※追記
10
+
11
+ エラーはありません
12
+
9
13
 
10
14
 
11
15
  ### 該当のソースコード
@@ -220,4 +224,226 @@
220
224
 
221
225
  </body>
222
226
 
227
+ </html>```ここに言語を入力
228
+
229
+
230
+
231
+
232
+
233
+ ### 該当のソースコード
234
+
235
+ <!DOCTYPE html>
236
+
237
+ <html>
238
+
239
+ <head>
240
+
241
+ <meta charset='utf-8' />
242
+
243
+ <link href='../lib/main.css' rel='stylesheet' />
244
+
245
+ <script src='../lib/main.js'></script>
246
+
247
+ <script src="lib/jquery.min.js"></script>
248
+
249
+ <script src="lib/moment.min.js"></script>
250
+
251
+ <script src="fullcalendar.js"></script>
252
+
253
+ <script>
254
+
255
+
256
+
257
+ document.addEventListener('DOMContentLoaded', function() {
258
+
259
+ var calendarEl = document.getElementById('calendar');
260
+
261
+
262
+
263
+ var calendar = new FullCalendar.Calendar(calendarEl, {
264
+
265
+ headerToolbar: {
266
+
267
+ left: 'prev,next today',
268
+
269
+ center: 'title',
270
+
271
+ right: 'dayGridMonth,timeGridWeek,timeGridDay,listMonth'
272
+
273
+ },
274
+
275
+ initialDate: '2020-09-12',
276
+
277
+ navLinks: true, // can click day/week names to navigate views
278
+
279
+ businessHours: true, // display business hours
280
+
281
+ editable: true,
282
+
283
+ selectable: true,
284
+
285
+
286
+
287
+
288
+
289
+ events: [
290
+
291
+ {//ここにイベントを記述していく
292
+
293
+ title: 'Business Lunch',
294
+
295
+ start: '2020-09-03T13:00:00',
296
+
297
+ constraint: 'businessHours'
298
+
299
+ },
300
+
301
+ {
302
+
303
+ title: 'Meeting',
304
+
305
+ start: '2020-09-13T11:00:00',
306
+
307
+ constraint: 'availableForMeeting', // defined below
308
+
309
+ color: '#257e4a'
310
+
311
+ },
312
+
313
+
314
+
315
+ // areas where "Meeting" must be dropped
316
+
317
+ {
318
+
319
+ groupId: 'availableForMeeting',
320
+
321
+ start: '2020-09-11T10:00:00',
322
+
323
+ end: '2020-09-11T16:00:00',
324
+
325
+ display: 'background'
326
+
327
+ },
328
+
329
+
330
+
331
+ // red areas where no events can be dropped
332
+
333
+ {
334
+
335
+ start: '2020-09-24',
336
+
337
+ end: '2020-09-28',
338
+
339
+ overlap: false,
340
+
341
+ display: 'background',
342
+
343
+ color: '#ff9f89'
344
+
345
+ },
346
+
347
+ ],
348
+
349
+ dayClick: function(date, allDay, jsEvent, view) {
350
+
351
+ console.log('a');
352
+
353
+ var title = prompt('予定を入力してください:');
354
+
355
+ $('#calendar').fullCalendar('addEventSource', [{
356
+
357
+ id:date, //(date それぞれのボックスが持つ日付。)
358
+
359
+ title: title,
360
+
361
+ start: date, //(日付)
362
+
363
+ allDay: allDay
364
+
365
+ }]);
366
+
367
+ },
368
+
369
+ });
370
+
371
+
372
+
373
+ calendar.render();
374
+
375
+ });
376
+
377
+
378
+
379
+ </script>
380
+
381
+ <style>
382
+
383
+
384
+
385
+ body {
386
+
387
+ margin: 40px 10px;
388
+
389
+ padding: 0;
390
+
391
+ font-family: Arial, Helvetica Neue, Helvetica, sans-serif;
392
+
393
+ font-size: 14px;
394
+
395
+ }
396
+
397
+
398
+
399
+ #calendar {
400
+
401
+ max-width: 1100px;
402
+
403
+ margin: 0 auto;
404
+
405
+ }
406
+
407
+ /* 日曜日*/
408
+
409
+ .fc-sun {
410
+
411
+ color: red;
412
+
413
+ background-color: #fff0f0;
414
+
415
+ }
416
+
417
+
418
+
419
+ /* 土曜日 */
420
+
421
+ .fc-sat {
422
+
423
+ color: blue;
424
+
425
+ background-color: #f0f0ff;
426
+
427
+ }
428
+
429
+
430
+
431
+ </style>
432
+
433
+ </head>
434
+
435
+ <body>
436
+
437
+
438
+
439
+ <div id='calendar'></div>
440
+
441
+
442
+
443
+ </body>
444
+
223
445
  </html>
446
+
447
+
448
+
449
+ ```

1

2020/10/06 01:00

投稿

gomamon
gomamon

スコア1

test CHANGED
File without changes
test CHANGED
@@ -6,6 +6,8 @@
6
6
 
7
7
 
8
8
 
9
+
10
+
9
11
  ### 該当のソースコード
10
12
 
11
13
  <!DOCTYPE html>