質問編集履歴
2
画像を添付しました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -4,6 +4,8 @@
|
|
4
4
|
|
5
5
|
fullcalendarはJavaScript側でDOMContentLoadedを利用して下記のように中身を宣言しております。
|
6
6
|
|
7
|
+
![イメージ説明](b6e674b0f2360d20c6ff435c3c267912.png)
|
8
|
+
|
7
9
|
```HTML
|
8
10
|
|
9
11
|
<div id='calendar'></div>
|
1
HTMLの追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -137,3 +137,133 @@
|
|
137
137
|
なんとか時間の欄があるところをクリックした場合のみ、モーダルウィンドウを表示出来るようにならないでしょうか?
|
138
138
|
|
139
139
|
つたない質問で申し訳ございませんが、お答え頂けると幸いです。
|
140
|
+
|
141
|
+
|
142
|
+
|
143
|
+
```HTML全体
|
144
|
+
|
145
|
+
<html>
|
146
|
+
|
147
|
+
<head>
|
148
|
+
|
149
|
+
<!--Javascript用API呼び出し-->
|
150
|
+
|
151
|
+
<link href="{% static '/modules/fullcalendar/main.min.css' %}" rel='stylesheet' />
|
152
|
+
|
153
|
+
<script src="{% static '/modules/fullcalendar/main.min.js' %}"></script>
|
154
|
+
|
155
|
+
|
156
|
+
|
157
|
+
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css" integrity="sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk" crossorigin="anonymous">
|
158
|
+
|
159
|
+
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js" integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj" crossorigin="anonymous"></script>
|
160
|
+
|
161
|
+
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js" integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo" crossorigin="anonymous"></script>
|
162
|
+
|
163
|
+
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.min.js" integrity="sha384-OgVRvuATP1z7JjHLkuOU7Xw704+h835Lr+6QL9UvYjZE3Ipu6Tp75j7Bh/kR0JKI" crossorigin="anonymous"></script>
|
164
|
+
|
165
|
+
|
166
|
+
|
167
|
+
<!--Googleで提供されるAjax用API-->
|
168
|
+
|
169
|
+
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
|
170
|
+
|
171
|
+
|
172
|
+
|
173
|
+
<script type="text/javascript" src="{% static '/js/calendar.js' %}"></script>
|
174
|
+
|
175
|
+
<style>
|
176
|
+
|
177
|
+
/* fullcalendar */
|
178
|
+
|
179
|
+
body {
|
180
|
+
|
181
|
+
margin: 0;
|
182
|
+
|
183
|
+
padding: 0;
|
184
|
+
|
185
|
+
font-family: Arial, Helvetica Neue, Helvetica, sans-serif;
|
186
|
+
|
187
|
+
font-size: 14px;
|
188
|
+
|
189
|
+
}
|
190
|
+
|
191
|
+
|
192
|
+
|
193
|
+
#calendar {
|
194
|
+
|
195
|
+
max-width: 1100px;
|
196
|
+
|
197
|
+
margin: 50px auto;
|
198
|
+
|
199
|
+
}
|
200
|
+
|
201
|
+
</style>
|
202
|
+
|
203
|
+
</head>
|
204
|
+
|
205
|
+
<body>
|
206
|
+
|
207
|
+
<div id='calendar' data-toggle="modal" data-target="#exampleModal" data-whatever="@calendar"></div>
|
208
|
+
|
209
|
+
<div class="modal fade" id="exampleModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
|
210
|
+
|
211
|
+
<div class="modal-dialog" role="document">
|
212
|
+
|
213
|
+
<div class="modal-content">
|
214
|
+
|
215
|
+
<div class="modal-header">
|
216
|
+
|
217
|
+
<h5 class="modal-title" id="exampleModalLabel">New Event</h5>
|
218
|
+
|
219
|
+
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
220
|
+
|
221
|
+
<span aria-hidden="true">×</span>
|
222
|
+
|
223
|
+
</button>
|
224
|
+
|
225
|
+
</div>
|
226
|
+
|
227
|
+
<div class="modal-body">
|
228
|
+
|
229
|
+
<form>
|
230
|
+
|
231
|
+
<div class="form-group">
|
232
|
+
|
233
|
+
<label for="recipient-name" class="col-form-label">start time</label>
|
234
|
+
|
235
|
+
<input type="text" class="form-control" id="recipient-name">
|
236
|
+
|
237
|
+
</div>
|
238
|
+
|
239
|
+
<div class="form-group">
|
240
|
+
|
241
|
+
<label for="message-text" class="col-form-label">end time</label>
|
242
|
+
|
243
|
+
<textarea class="form-control" id="message-text"></textarea>
|
244
|
+
|
245
|
+
</div>
|
246
|
+
|
247
|
+
</form>
|
248
|
+
|
249
|
+
</div>
|
250
|
+
|
251
|
+
<div class="modal-footer">
|
252
|
+
|
253
|
+
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
|
254
|
+
|
255
|
+
<button type="button" class="btn btn-primary">Send message</button>
|
256
|
+
|
257
|
+
</div>
|
258
|
+
|
259
|
+
</div>
|
260
|
+
|
261
|
+
</div>
|
262
|
+
|
263
|
+
</div>
|
264
|
+
|
265
|
+
</body>
|
266
|
+
|
267
|
+
</html>
|
268
|
+
|
269
|
+
```
|