回答編集履歴
2
コメントを受けて追記
test
CHANGED
@@ -9,3 +9,19 @@
|
|
9
9
|
> 与えられた CSS セレクタにマッチする文書中の要素(※深さ優先の先行順走査によるもの)の**全てのリスト** (NodeList) を返します。
|
10
10
|
|
11
11
|
[document.querySelectorAll - Web API インターフェイス | MDN](https://developer.mozilla.org/ja/docs/Web/API/Document/querySelectorAll)
|
12
|
+
|
13
|
+
|
14
|
+
|
15
|
+
|
16
|
+
|
17
|
+
|
18
|
+
|
19
|
+
### コメントを受けて追記
|
20
|
+
|
21
|
+
> new LuminousGallery(document.querySelectorAll('.gallery-demo'));
|
22
|
+
|
23
|
+
[GitHub - imgix/luminous: A simple, lightweight, no-dependencies JavaScript lightbox.](https://github.com/imgix/luminous#luminousgallery-usage)
|
24
|
+
|
25
|
+
|
26
|
+
|
27
|
+
というサンプルコードがあるようです。
|
1
追記
test
CHANGED
@@ -1,3 +1,11 @@
|
|
1
1
|
> 与えられた CSS セレクタにマッチする文書中の**最初の要素**(※深さ優先の先行順走査によるもの)を返します。
|
2
2
|
|
3
3
|
[document.querySelector - Web API インターフェイス | MDN](https://developer.mozilla.org/ja/docs/Web/API/Document/querySelector)
|
4
|
+
|
5
|
+
|
6
|
+
|
7
|
+
|
8
|
+
|
9
|
+
> 与えられた CSS セレクタにマッチする文書中の要素(※深さ優先の先行順走査によるもの)の**全てのリスト** (NodeList) を返します。
|
10
|
+
|
11
|
+
[document.querySelectorAll - Web API インターフェイス | MDN](https://developer.mozilla.org/ja/docs/Web/API/Document/querySelectorAll)
|