質問編集履歴
1
cdnとJSを追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -34,6 +34,16 @@
|
|
34
34
|
|
35
35
|
```ここに言語名を入力(PHP)
|
36
36
|
|
37
|
+
<head>
|
38
|
+
|
39
|
+
<script src="https://cdnjs.cloudflare.com/ajax/libs/luminous-lightbox/2.3.2/luminous.min.js"></script>
|
40
|
+
|
41
|
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/luminous-lightbox/2.3.2/luminous-basic.min.css">
|
42
|
+
|
43
|
+
(cdnコード)
|
44
|
+
|
45
|
+
</head>
|
46
|
+
|
37
47
|
<?php printf('<img class="i" img src="image/%s.png">', $ver);?>
|
38
48
|
|
39
49
|
この画像を表示させるphpコードに
|
@@ -42,6 +52,22 @@
|
|
42
52
|
|
43
53
|
</a>
|
44
54
|
|
55
|
+
|
56
|
+
|
57
|
+
<script>
|
58
|
+
|
59
|
+
var luminousTrigger = document.querySelectorAll('.zoom');
|
60
|
+
|
61
|
+
if( luminousTrigger !== null ) {
|
62
|
+
|
63
|
+
new LuminousGallery(luminousTrigger);
|
64
|
+
|
65
|
+
}
|
66
|
+
|
67
|
+
</script>
|
68
|
+
|
69
|
+
|
70
|
+
|
45
71
|
```
|
46
72
|
|
47
73
|
|