質問編集履歴
2
コード不足のため再追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -102,14 +102,82 @@
|
|
102
102
|
|
103
103
|
|
104
104
|
|
105
|
-
|
106
|
-
|
107
|
-
### 追記
|
105
|
+
### 再追記
|
108
|
-
|
109
|
-
|
110
106
|
|
111
107
|
```html
|
112
108
|
|
109
|
+
<!DOCTYPE html>
|
110
|
+
|
111
|
+
<html>
|
112
|
+
|
113
|
+
|
114
|
+
|
115
|
+
<head>
|
116
|
+
|
117
|
+
<meta charset="utf-8">
|
118
|
+
|
119
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
120
|
+
|
121
|
+
<meta name="description" content="あああああ">
|
122
|
+
|
123
|
+
<title>ああああ</title>
|
124
|
+
|
125
|
+
<script async defer src="https://maps.googleapis.com/maps/api/js?v=3.exp&key=(キー)&callback=initMap">
|
126
|
+
|
127
|
+
</script>
|
128
|
+
|
129
|
+
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
|
130
|
+
|
131
|
+
<script type="text/javascript" src="../js/javascript03.js"></script>
|
132
|
+
|
133
|
+
|
134
|
+
|
135
|
+
<!-- menu -->
|
136
|
+
|
137
|
+
<script>
|
138
|
+
|
139
|
+
$(function() {
|
140
|
+
|
141
|
+
$('#nav_toggle').click(function() {
|
142
|
+
|
143
|
+
$("header").toggleClass('open');
|
144
|
+
|
145
|
+
$("nav").fadeToggle(500);
|
146
|
+
|
147
|
+
});
|
148
|
+
|
149
|
+
});
|
150
|
+
|
151
|
+
</script>
|
152
|
+
|
153
|
+
|
154
|
+
|
155
|
+
<!-- faq -->
|
156
|
+
|
157
|
+
<script>
|
158
|
+
|
159
|
+
$(function() {
|
160
|
+
|
161
|
+
$('.faq_block__list_a').hide();
|
162
|
+
|
163
|
+
$('.faq_block__list_q').click(function() {
|
164
|
+
|
165
|
+
$(this).toggleClass("open");
|
166
|
+
|
167
|
+
$(this).next(".faq_block__list_a").slideToggle();
|
168
|
+
|
169
|
+
});
|
170
|
+
|
171
|
+
});
|
172
|
+
|
173
|
+
</script>
|
174
|
+
|
175
|
+
</head>
|
176
|
+
|
177
|
+
|
178
|
+
|
179
|
+
<body>
|
180
|
+
|
113
181
|
<header>
|
114
182
|
|
115
183
|
<div class="global_menu">
|
@@ -148,300 +216,284 @@
|
|
148
216
|
|
149
217
|
</header>
|
150
218
|
|
219
|
+
|
220
|
+
|
221
|
+
<main>
|
222
|
+
|
223
|
+
<section>
|
224
|
+
|
225
|
+
<div class="main_visual">
|
226
|
+
|
227
|
+
<h1 class="main_visual__logo">あああ</h1>
|
228
|
+
|
229
|
+
<p class="main_visual__sub_text">あああ</p>
|
230
|
+
|
231
|
+
</div>
|
232
|
+
|
233
|
+
</section>
|
234
|
+
|
235
|
+
<section>
|
236
|
+
|
237
|
+
<div class="about_block">
|
238
|
+
|
239
|
+
<h2 class="about_block__title">あああ</h2>
|
240
|
+
|
241
|
+
<ul class="about_block__list">
|
242
|
+
|
243
|
+
<li class="about_block__list_block">
|
244
|
+
|
245
|
+
<p class="about_block__list_block-title">あああ</p>
|
246
|
+
|
247
|
+
<p class="about_block__list_block-text">あああ</p>
|
248
|
+
|
249
|
+
<p class="about_block__list_block-image"><img src="../img/bnr01.png" alt="あああ"></p>
|
250
|
+
|
251
|
+
<p class="about_block__list_block-subtext">あああ</p>
|
252
|
+
|
253
|
+
</li>
|
254
|
+
|
255
|
+
<li class="about_block__list_block">
|
256
|
+
|
257
|
+
<p class="about_block__list_block-title">あああ</p>
|
258
|
+
|
259
|
+
<p class="about_block__list_block-text">あああ</p>
|
260
|
+
|
261
|
+
<p class="about_block__list_block-image"><img src="../img/bnr02.png" alt="あああ"></p>
|
262
|
+
|
263
|
+
</li>
|
264
|
+
|
265
|
+
<li class="about_block__list_block">
|
266
|
+
|
267
|
+
<p class="about_block__list_block-title">あああ</p>
|
268
|
+
|
269
|
+
<p class="about_block__list_block-text">あああ</p>
|
270
|
+
|
271
|
+
<p class="about_block__list_block-image"><img src="../img/bnr03.png" alt="あああ"></p>
|
272
|
+
|
273
|
+
</li>
|
274
|
+
|
275
|
+
</ul>
|
276
|
+
|
277
|
+
</div>
|
278
|
+
|
279
|
+
</section>
|
280
|
+
|
281
|
+
|
282
|
+
|
283
|
+
<section>
|
284
|
+
|
285
|
+
<div class="map_block">
|
286
|
+
|
287
|
+
<div id="map"></div>
|
288
|
+
|
289
|
+
</div>
|
290
|
+
|
291
|
+
</section>
|
292
|
+
|
293
|
+
|
294
|
+
|
295
|
+
<section>
|
296
|
+
|
297
|
+
<div class="faq_block">
|
298
|
+
|
299
|
+
<h2 class="faq_block__title">あああ</h2>
|
300
|
+
|
301
|
+
<dl class="faq_block__list">
|
302
|
+
|
303
|
+
<dt class="faq_block__list_q">あああ</dt>
|
304
|
+
|
305
|
+
<dd class="faq_block__list_a" style="display: none;">あああ</dd>
|
306
|
+
|
307
|
+
</dl>
|
308
|
+
|
309
|
+
</div>
|
310
|
+
|
311
|
+
</section>
|
312
|
+
|
313
|
+
</main>
|
314
|
+
|
315
|
+
|
316
|
+
|
317
|
+
<aside>
|
318
|
+
|
319
|
+
<div class="bg_decoration"></div>
|
320
|
+
|
321
|
+
</aside>
|
322
|
+
|
323
|
+
|
324
|
+
|
325
|
+
<footer id="footer">
|
326
|
+
|
327
|
+
<div class="footer_block">
|
328
|
+
|
329
|
+
<ul class="footer_block__link_list">
|
330
|
+
|
331
|
+
<li><a href="about.html" target="_blank">About Us</a></li>
|
332
|
+
|
333
|
+
<li><a href="privacy.html" target="_blank">Privacy policy</a></li>
|
334
|
+
|
335
|
+
<li><a href="contact.html">Contact</a></li>
|
336
|
+
|
337
|
+
</ul>
|
338
|
+
|
339
|
+
<p class="copyright">あああ</p>
|
340
|
+
|
341
|
+
</div>
|
342
|
+
|
343
|
+
</footer>
|
344
|
+
|
345
|
+
</body>
|
346
|
+
|
347
|
+
</html>
|
348
|
+
|
349
|
+
|
350
|
+
|
151
351
|
```
|
152
352
|
|
153
353
|
|
154
354
|
|
155
|
-
```c
|
355
|
+
```JavaScript
|
356
|
+
|
156
|
-
|
357
|
+
//ピンの表示
|
358
|
+
|
359
|
+
function initMap() {
|
360
|
+
|
361
|
+
var locations = [
|
362
|
+
|
363
|
+
['<div class="comment"><a href="allarea.html#target01">あああ</a></div>', 座標, 座標],
|
364
|
+
|
365
|
+
['<div class="comment"><a href="allarea.html#target02">あああ→</a></div>', 座標, 座標],
|
366
|
+
|
367
|
+
];
|
368
|
+
|
369
|
+
|
370
|
+
|
371
|
+
var map = new google.maps.Map(document.getElementById('map'), {
|
372
|
+
|
373
|
+
zoom: 16,
|
374
|
+
|
375
|
+
gestureHandling: 'greedy', //PC:スクロールでズーム モバイル:指1本のスクロールで地図移動
|
376
|
+
|
377
|
+
mapTypeControl: false, //マップタイプ コントロール
|
378
|
+
|
379
|
+
fullscreenControl: true, //全画面表示コントロール
|
380
|
+
|
381
|
+
streetViewControl: true, //ストリートビュー コントロール
|
382
|
+
|
383
|
+
zoomControl: true, //ズーム コントロール
|
384
|
+
|
385
|
+
center: new google.maps.LatLng(座標, 座標), //MAP初期値
|
386
|
+
|
387
|
+
mapTypeId: google.maps.MapTypeId.ROADMAP
|
388
|
+
|
389
|
+
});
|
390
|
+
|
391
|
+
|
392
|
+
|
393
|
+
var infowindow = new google.maps.InfoWindow;
|
394
|
+
|
395
|
+
var marker, i;
|
396
|
+
|
397
|
+
|
398
|
+
|
399
|
+
for (i = 0; i < locations.length; i++) {
|
400
|
+
|
401
|
+
marker = new google.maps.Marker({
|
402
|
+
|
403
|
+
position: new google.maps.LatLng(locations[i][1], locations[i][2]),
|
404
|
+
|
405
|
+
map: map
|
406
|
+
|
407
|
+
});
|
408
|
+
|
409
|
+
|
410
|
+
|
411
|
+
google.maps.event.addListener(marker, 'click', (function (marker, i) {
|
412
|
+
|
413
|
+
return function () {
|
414
|
+
|
415
|
+
infowindow.setContent(locations[i][0]);
|
416
|
+
|
417
|
+
infowindow.open(map, marker);
|
418
|
+
|
419
|
+
}
|
420
|
+
|
421
|
+
})(marker, i));
|
422
|
+
|
423
|
+
}
|
424
|
+
|
425
|
+
|
426
|
+
|
427
|
+
// スクロールすると戻るボタンが現れる
|
428
|
+
|
429
|
+
$(function() {
|
430
|
+
|
431
|
+
var appear = false;
|
432
|
+
|
433
|
+
var pagetop = $('#page_top');
|
434
|
+
|
435
|
+
$(window).scroll(function () {
|
436
|
+
|
437
|
+
if ($(this).scrollTop() > 100) { //100pxスクロールしたら
|
438
|
+
|
439
|
+
if (appear == false) {
|
440
|
+
|
441
|
+
appear = true;
|
442
|
+
|
443
|
+
pagetop.stop().animate({
|
444
|
+
|
445
|
+
'right': '50px' //右から50pxの位置に
|
446
|
+
|
447
|
+
}, 300); //0.3秒かけて現れる
|
448
|
+
|
449
|
+
}
|
450
|
+
|
451
|
+
} else {
|
452
|
+
|
157
|
-
|
453
|
+
if (appear) {
|
454
|
+
|
158
|
-
|
455
|
+
appear = false;
|
456
|
+
|
457
|
+
pagetop.stop().animate({
|
458
|
+
|
459
|
+
'right': '-50px' //右から-50pxの位置に
|
460
|
+
|
461
|
+
}, 300); //0.3秒かけて隠れる
|
462
|
+
|
463
|
+
}
|
464
|
+
|
465
|
+
}
|
466
|
+
|
467
|
+
});
|
468
|
+
|
469
|
+
pagetop.click(function () {
|
470
|
+
|
471
|
+
$('body, html').animate({ scrollTop: 0 }, 500); //0.5秒かけてトップへ戻る
|
472
|
+
|
159
|
-
|
473
|
+
return false;
|
474
|
+
|
160
|
-
|
475
|
+
});
|
476
|
+
|
477
|
+
});
|
478
|
+
|
479
|
+
|
480
|
+
|
161
|
-
|
481
|
+
//menu
|
162
|
-
|
163
|
-
|
482
|
+
|
164
|
-
|
165
|
-
|
483
|
+
$(function(){
|
484
|
+
|
485
|
+
$('#nav_toggle').click(function(){
|
486
|
+
|
487
|
+
$("header").toggleClass('open');
|
488
|
+
|
489
|
+
$("nav").fadeToggle(500);
|
490
|
+
|
491
|
+
});
|
492
|
+
|
493
|
+
});
|
166
494
|
|
167
495
|
}
|
168
496
|
|
169
|
-
nav{
|
170
|
-
|
171
|
-
display:none;
|
172
|
-
|
173
|
-
position: absolute;
|
174
|
-
|
175
|
-
top:0;
|
176
|
-
|
177
|
-
width: 100%;
|
178
|
-
|
179
|
-
height: 100vh;
|
180
|
-
|
181
|
-
background:rgba(0,0,0,0.85);
|
182
|
-
|
183
|
-
z-index: 90;
|
184
|
-
|
185
|
-
}
|
186
|
-
|
187
|
-
nav ul{
|
188
|
-
|
189
|
-
display: block;
|
190
|
-
|
191
|
-
width: 90%;
|
192
|
-
|
193
|
-
height: 350px;
|
194
|
-
|
195
|
-
position: absolute;
|
196
|
-
|
197
|
-
top: 0px;
|
198
|
-
|
199
|
-
right: 0px;
|
200
|
-
|
201
|
-
bottom: 0px;
|
202
|
-
|
203
|
-
left: 0px;
|
204
|
-
|
205
|
-
margin: auto;
|
206
|
-
|
207
|
-
}
|
208
|
-
|
209
|
-
nav ul li{
|
210
|
-
|
211
|
-
margin: 0 auto;
|
212
|
-
|
213
|
-
text-align: center;
|
214
|
-
|
215
|
-
}
|
216
|
-
|
217
|
-
header nav ul li a{
|
218
|
-
|
219
|
-
display: block;
|
220
|
-
|
221
|
-
color: #fff;
|
222
|
-
|
223
|
-
text-decoration: none;
|
224
|
-
|
225
|
-
padding: 16px 0;
|
226
|
-
|
227
|
-
}
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
/*開閉ボタン*/
|
234
|
-
|
235
|
-
#nav_toggle{
|
236
|
-
|
237
|
-
display: block;
|
238
|
-
|
239
|
-
width: 28px;
|
240
|
-
|
241
|
-
height: 28px;
|
242
|
-
|
243
|
-
position: absolute;
|
244
|
-
|
245
|
-
top: 1.6rem;
|
246
|
-
|
247
|
-
right: 1.6rem;
|
248
|
-
|
249
|
-
z-index: 100;
|
250
|
-
|
251
|
-
}
|
252
|
-
|
253
|
-
@media screen and (min-width:960px){
|
254
|
-
|
255
|
-
#nav_toggle{
|
256
|
-
|
257
|
-
width: 34px;
|
258
|
-
|
259
|
-
height: 34px;
|
260
|
-
|
261
|
-
top: 3.2rem;
|
262
|
-
|
263
|
-
right: 3.2rem;
|
264
|
-
|
265
|
-
}
|
266
|
-
|
267
|
-
}
|
268
|
-
|
269
|
-
#nav_toggle div {
|
270
|
-
|
271
|
-
position: relative;
|
272
|
-
|
273
|
-
}
|
274
|
-
|
275
|
-
#nav_toggle span{
|
276
|
-
|
277
|
-
display: block;
|
278
|
-
|
279
|
-
height: 2px;
|
280
|
-
|
281
|
-
background: #000;
|
282
|
-
|
283
|
-
position:absolute;
|
284
|
-
|
285
|
-
width: 100%;
|
286
|
-
|
287
|
-
left: 0;
|
288
|
-
|
289
|
-
-webkit-transition: 0.5s ease-in-out;
|
290
|
-
|
291
|
-
-moz-transition: 0.5s ease-in-out;
|
292
|
-
|
293
|
-
transition: 0.5s ease-in-out;
|
294
|
-
|
295
|
-
}
|
296
|
-
|
297
|
-
#nav_toggle span:nth-child(1){
|
298
|
-
|
299
|
-
top:0px;
|
300
|
-
|
301
|
-
}
|
302
|
-
|
303
|
-
#nav_toggle span:nth-child(2){
|
304
|
-
|
305
|
-
top:10px;
|
306
|
-
|
307
|
-
}
|
308
|
-
|
309
|
-
#nav_toggle span:nth-child(3){
|
310
|
-
|
311
|
-
top:20px;
|
312
|
-
|
313
|
-
}
|
314
|
-
|
315
|
-
@media screen and (min-width:960px){
|
316
|
-
|
317
|
-
#nav_toggle span:nth-child(2){
|
318
|
-
|
319
|
-
top:14px;
|
320
|
-
|
321
|
-
}
|
322
|
-
|
323
|
-
#nav_toggle span:nth-child(3){
|
324
|
-
|
325
|
-
top:28px;
|
326
|
-
|
327
|
-
}
|
328
|
-
|
329
|
-
}
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
/*開閉ボタンopen時*/
|
334
|
-
|
335
|
-
.open #nav_toggle span:nth-child(1) {
|
336
|
-
|
337
|
-
top: 10px;
|
338
|
-
|
339
|
-
-webkit-transform: rotate(135deg);
|
340
|
-
|
341
|
-
-moz-transform: rotate(135deg);
|
342
|
-
|
343
|
-
transform: rotate(135deg);
|
344
|
-
|
345
|
-
background: #fff;
|
346
|
-
|
347
|
-
}
|
348
|
-
|
349
|
-
.open #nav_toggle span:nth-child(2) {
|
350
|
-
|
351
|
-
width: 0;
|
352
|
-
|
353
|
-
left: 50%;
|
354
|
-
|
355
|
-
}
|
356
|
-
|
357
|
-
.open #nav_toggle span:nth-child(3) {
|
358
|
-
|
359
|
-
top: 10px;
|
360
|
-
|
361
|
-
-webkit-transform: rotate(-135deg);
|
362
|
-
|
363
|
-
-moz-transform: rotate(-135deg);
|
364
|
-
|
365
|
-
transform: rotate(-135deg);
|
366
|
-
|
367
|
-
background: #fff;
|
368
|
-
|
369
|
-
}
|
370
|
-
|
371
497
|
|
372
498
|
|
373
499
|
```
|
374
|
-
|
375
|
-
|
376
|
-
|
377
|
-
```JavaScript
|
378
|
-
|
379
|
-
function initMap() {
|
380
|
-
|
381
|
-
var locations = [
|
382
|
-
|
383
|
-
['<div class="comment"><a href="allarea.html#target01">あああ→</a></div>', 座標, 座標],
|
384
|
-
|
385
|
-
['<div class="comment"><a href="allarea.html#target02">あああ→</a></div>', 座標, 座標],
|
386
|
-
|
387
|
-
];
|
388
|
-
|
389
|
-
|
390
|
-
|
391
|
-
var map = new google.maps.Map(document.getElementById('map'), {
|
392
|
-
|
393
|
-
zoom: 16,
|
394
|
-
|
395
|
-
gestureHandling: 'greedy', //PC:スクロールでズーム モバイル:指1本のスクロールで地図移動
|
396
|
-
|
397
|
-
mapTypeControl: false, //マップタイプ コントロール
|
398
|
-
|
399
|
-
fullscreenControl: true, //全画面表示コントロール
|
400
|
-
|
401
|
-
streetViewControl: true, //ストリートビュー コントロール
|
402
|
-
|
403
|
-
zoomControl: true, //ズーム コントロール
|
404
|
-
|
405
|
-
center: new google.maps.LatLng(座標, 座標), //MAP初期値
|
406
|
-
|
407
|
-
mapTypeId: google.maps.MapTypeId.ROADMAP
|
408
|
-
|
409
|
-
});
|
410
|
-
|
411
|
-
|
412
|
-
|
413
|
-
var infowindow = new google.maps.InfoWindow;
|
414
|
-
|
415
|
-
var marker, i;
|
416
|
-
|
417
|
-
|
418
|
-
|
419
|
-
for (i = 0; i < locations.length; i++) {
|
420
|
-
|
421
|
-
marker = new google.maps.Marker({
|
422
|
-
|
423
|
-
position: new google.maps.LatLng(locations[i][1], locations[i][2]),
|
424
|
-
|
425
|
-
map: map
|
426
|
-
|
427
|
-
});
|
428
|
-
|
429
|
-
|
430
|
-
|
431
|
-
google.maps.event.addListener(marker, 'click', (function (marker, i) {
|
432
|
-
|
433
|
-
return function () {
|
434
|
-
|
435
|
-
infowindow.setContent(locations[i][0]);
|
436
|
-
|
437
|
-
infowindow.open(map, marker);
|
438
|
-
|
439
|
-
}
|
440
|
-
|
441
|
-
})(marker, i));
|
442
|
-
|
443
|
-
}
|
444
|
-
|
445
|
-
|
446
|
-
|
447
|
-
```
|
1
コード記載が不足していたので追記いたします。
test
CHANGED
File without changes
|
test
CHANGED
@@ -99,3 +99,349 @@
|
|
99
99
|
|
100
100
|
|
101
101
|
行き詰ってしまいましたので、ご教授いただけますと幸いです。
|
102
|
+
|
103
|
+
|
104
|
+
|
105
|
+
|
106
|
+
|
107
|
+
### 追記
|
108
|
+
|
109
|
+
|
110
|
+
|
111
|
+
```html
|
112
|
+
|
113
|
+
<header>
|
114
|
+
|
115
|
+
<div class="global_menu">
|
116
|
+
|
117
|
+
<div id="nav_toggle">
|
118
|
+
|
119
|
+
<div>
|
120
|
+
|
121
|
+
<span></span>
|
122
|
+
|
123
|
+
<span></span>
|
124
|
+
|
125
|
+
<span></span>
|
126
|
+
|
127
|
+
</div>
|
128
|
+
|
129
|
+
</div>
|
130
|
+
|
131
|
+
<nav>
|
132
|
+
|
133
|
+
<ul>
|
134
|
+
|
135
|
+
<li><a href="index.html">TOP</a></li>
|
136
|
+
|
137
|
+
<li><a href="about.html" target="_blank">About</a></li>
|
138
|
+
|
139
|
+
<li><a href="privacy.html" target="_blank">プライバシーポリシー</a></li>
|
140
|
+
|
141
|
+
<li><a href="contact.html">お問い合わせ</a></li>
|
142
|
+
|
143
|
+
</ul>
|
144
|
+
|
145
|
+
</nav>
|
146
|
+
|
147
|
+
</div>
|
148
|
+
|
149
|
+
</header>
|
150
|
+
|
151
|
+
```
|
152
|
+
|
153
|
+
|
154
|
+
|
155
|
+
```css
|
156
|
+
|
157
|
+
.global_menu{
|
158
|
+
|
159
|
+
position: fixed;
|
160
|
+
|
161
|
+
width: 100%;
|
162
|
+
|
163
|
+
height: 60px;
|
164
|
+
|
165
|
+
z-index: 80;
|
166
|
+
|
167
|
+
}
|
168
|
+
|
169
|
+
nav{
|
170
|
+
|
171
|
+
display:none;
|
172
|
+
|
173
|
+
position: absolute;
|
174
|
+
|
175
|
+
top:0;
|
176
|
+
|
177
|
+
width: 100%;
|
178
|
+
|
179
|
+
height: 100vh;
|
180
|
+
|
181
|
+
background:rgba(0,0,0,0.85);
|
182
|
+
|
183
|
+
z-index: 90;
|
184
|
+
|
185
|
+
}
|
186
|
+
|
187
|
+
nav ul{
|
188
|
+
|
189
|
+
display: block;
|
190
|
+
|
191
|
+
width: 90%;
|
192
|
+
|
193
|
+
height: 350px;
|
194
|
+
|
195
|
+
position: absolute;
|
196
|
+
|
197
|
+
top: 0px;
|
198
|
+
|
199
|
+
right: 0px;
|
200
|
+
|
201
|
+
bottom: 0px;
|
202
|
+
|
203
|
+
left: 0px;
|
204
|
+
|
205
|
+
margin: auto;
|
206
|
+
|
207
|
+
}
|
208
|
+
|
209
|
+
nav ul li{
|
210
|
+
|
211
|
+
margin: 0 auto;
|
212
|
+
|
213
|
+
text-align: center;
|
214
|
+
|
215
|
+
}
|
216
|
+
|
217
|
+
header nav ul li a{
|
218
|
+
|
219
|
+
display: block;
|
220
|
+
|
221
|
+
color: #fff;
|
222
|
+
|
223
|
+
text-decoration: none;
|
224
|
+
|
225
|
+
padding: 16px 0;
|
226
|
+
|
227
|
+
}
|
228
|
+
|
229
|
+
|
230
|
+
|
231
|
+
|
232
|
+
|
233
|
+
/*開閉ボタン*/
|
234
|
+
|
235
|
+
#nav_toggle{
|
236
|
+
|
237
|
+
display: block;
|
238
|
+
|
239
|
+
width: 28px;
|
240
|
+
|
241
|
+
height: 28px;
|
242
|
+
|
243
|
+
position: absolute;
|
244
|
+
|
245
|
+
top: 1.6rem;
|
246
|
+
|
247
|
+
right: 1.6rem;
|
248
|
+
|
249
|
+
z-index: 100;
|
250
|
+
|
251
|
+
}
|
252
|
+
|
253
|
+
@media screen and (min-width:960px){
|
254
|
+
|
255
|
+
#nav_toggle{
|
256
|
+
|
257
|
+
width: 34px;
|
258
|
+
|
259
|
+
height: 34px;
|
260
|
+
|
261
|
+
top: 3.2rem;
|
262
|
+
|
263
|
+
right: 3.2rem;
|
264
|
+
|
265
|
+
}
|
266
|
+
|
267
|
+
}
|
268
|
+
|
269
|
+
#nav_toggle div {
|
270
|
+
|
271
|
+
position: relative;
|
272
|
+
|
273
|
+
}
|
274
|
+
|
275
|
+
#nav_toggle span{
|
276
|
+
|
277
|
+
display: block;
|
278
|
+
|
279
|
+
height: 2px;
|
280
|
+
|
281
|
+
background: #000;
|
282
|
+
|
283
|
+
position:absolute;
|
284
|
+
|
285
|
+
width: 100%;
|
286
|
+
|
287
|
+
left: 0;
|
288
|
+
|
289
|
+
-webkit-transition: 0.5s ease-in-out;
|
290
|
+
|
291
|
+
-moz-transition: 0.5s ease-in-out;
|
292
|
+
|
293
|
+
transition: 0.5s ease-in-out;
|
294
|
+
|
295
|
+
}
|
296
|
+
|
297
|
+
#nav_toggle span:nth-child(1){
|
298
|
+
|
299
|
+
top:0px;
|
300
|
+
|
301
|
+
}
|
302
|
+
|
303
|
+
#nav_toggle span:nth-child(2){
|
304
|
+
|
305
|
+
top:10px;
|
306
|
+
|
307
|
+
}
|
308
|
+
|
309
|
+
#nav_toggle span:nth-child(3){
|
310
|
+
|
311
|
+
top:20px;
|
312
|
+
|
313
|
+
}
|
314
|
+
|
315
|
+
@media screen and (min-width:960px){
|
316
|
+
|
317
|
+
#nav_toggle span:nth-child(2){
|
318
|
+
|
319
|
+
top:14px;
|
320
|
+
|
321
|
+
}
|
322
|
+
|
323
|
+
#nav_toggle span:nth-child(3){
|
324
|
+
|
325
|
+
top:28px;
|
326
|
+
|
327
|
+
}
|
328
|
+
|
329
|
+
}
|
330
|
+
|
331
|
+
|
332
|
+
|
333
|
+
/*開閉ボタンopen時*/
|
334
|
+
|
335
|
+
.open #nav_toggle span:nth-child(1) {
|
336
|
+
|
337
|
+
top: 10px;
|
338
|
+
|
339
|
+
-webkit-transform: rotate(135deg);
|
340
|
+
|
341
|
+
-moz-transform: rotate(135deg);
|
342
|
+
|
343
|
+
transform: rotate(135deg);
|
344
|
+
|
345
|
+
background: #fff;
|
346
|
+
|
347
|
+
}
|
348
|
+
|
349
|
+
.open #nav_toggle span:nth-child(2) {
|
350
|
+
|
351
|
+
width: 0;
|
352
|
+
|
353
|
+
left: 50%;
|
354
|
+
|
355
|
+
}
|
356
|
+
|
357
|
+
.open #nav_toggle span:nth-child(3) {
|
358
|
+
|
359
|
+
top: 10px;
|
360
|
+
|
361
|
+
-webkit-transform: rotate(-135deg);
|
362
|
+
|
363
|
+
-moz-transform: rotate(-135deg);
|
364
|
+
|
365
|
+
transform: rotate(-135deg);
|
366
|
+
|
367
|
+
background: #fff;
|
368
|
+
|
369
|
+
}
|
370
|
+
|
371
|
+
|
372
|
+
|
373
|
+
```
|
374
|
+
|
375
|
+
|
376
|
+
|
377
|
+
```JavaScript
|
378
|
+
|
379
|
+
function initMap() {
|
380
|
+
|
381
|
+
var locations = [
|
382
|
+
|
383
|
+
['<div class="comment"><a href="allarea.html#target01">あああ→</a></div>', 座標, 座標],
|
384
|
+
|
385
|
+
['<div class="comment"><a href="allarea.html#target02">あああ→</a></div>', 座標, 座標],
|
386
|
+
|
387
|
+
];
|
388
|
+
|
389
|
+
|
390
|
+
|
391
|
+
var map = new google.maps.Map(document.getElementById('map'), {
|
392
|
+
|
393
|
+
zoom: 16,
|
394
|
+
|
395
|
+
gestureHandling: 'greedy', //PC:スクロールでズーム モバイル:指1本のスクロールで地図移動
|
396
|
+
|
397
|
+
mapTypeControl: false, //マップタイプ コントロール
|
398
|
+
|
399
|
+
fullscreenControl: true, //全画面表示コントロール
|
400
|
+
|
401
|
+
streetViewControl: true, //ストリートビュー コントロール
|
402
|
+
|
403
|
+
zoomControl: true, //ズーム コントロール
|
404
|
+
|
405
|
+
center: new google.maps.LatLng(座標, 座標), //MAP初期値
|
406
|
+
|
407
|
+
mapTypeId: google.maps.MapTypeId.ROADMAP
|
408
|
+
|
409
|
+
});
|
410
|
+
|
411
|
+
|
412
|
+
|
413
|
+
var infowindow = new google.maps.InfoWindow;
|
414
|
+
|
415
|
+
var marker, i;
|
416
|
+
|
417
|
+
|
418
|
+
|
419
|
+
for (i = 0; i < locations.length; i++) {
|
420
|
+
|
421
|
+
marker = new google.maps.Marker({
|
422
|
+
|
423
|
+
position: new google.maps.LatLng(locations[i][1], locations[i][2]),
|
424
|
+
|
425
|
+
map: map
|
426
|
+
|
427
|
+
});
|
428
|
+
|
429
|
+
|
430
|
+
|
431
|
+
google.maps.event.addListener(marker, 'click', (function (marker, i) {
|
432
|
+
|
433
|
+
return function () {
|
434
|
+
|
435
|
+
infowindow.setContent(locations[i][0]);
|
436
|
+
|
437
|
+
infowindow.open(map, marker);
|
438
|
+
|
439
|
+
}
|
440
|
+
|
441
|
+
})(marker, i));
|
442
|
+
|
443
|
+
}
|
444
|
+
|
445
|
+
|
446
|
+
|
447
|
+
```
|