お世話になります。
制作中のWEBサイトにフォトギャラリーを作ろうと思い、「Gamma gallery」という jQuery のスクリプトを実装しようとしているのですが、つまずいています。
これまでは、参考サイトを手がかりに、以下の手順で実装を試みました。
- 公式サイトからスクリプトをダウンロード
- ダウンロードしたフォルダ内の「js」フォルダの中身を、自分の作業フォルダに移動。
- ダウンロードしたフォルダ内の「images」フォルダを、自分の作業フォルダに移動。
- 作業フォルダ内の「index.html」に、以下のソースを記入。
<!DOCTYPE html> <html lang="ja"> <head> <meta charset="UTF-8"> <title>イメージギャラリー</title> <script src="common/js/jquery.js"></script> <!-- 以下のソースでダウンロードしたjsファイルを読み込んでいます。 --> <script src="common/js/gamma-gallery/jquery.masonry.min.js"></script> <script src="common/js/gamma-gallery/jquery.history.js"></script> <script src="common/js/gamma-gallery/js-url.min.js"></script> <script src="common/js/gamma-gallery/jquerypp.custom.js"></script> <script src="common/js/gamma-gallery/gamma.js"></script> </head> <body> <!-- 参考サイトのコピペですが、画像のパスは通しています。 --> <div class="gamma-container gamma-loading" id="gamma-container"> <ul class="gamma-gallery"> <li> <div data-alt="img01" data-description="<h3>Assemblage</h3>" data-max-width="1800" data-max-height="2400"> <div data-src="common/js/images/xxxlarge/3.jpg" data-min-width="1300"></div> <div data-src="common/js/images/xxlarge/3.jpg" data-min-width="1000"></div> <div data-src="common/js/images/xlarge/3.jpg" data-min-width="700"></div> <div data-src="common/js/images/large/3.jpg" data-min-width="300"></div> <div data-src="common/js/images/medium/3.jpg" data-min-width="200"></div> <div data-src="common/js/images/small/3.jpg" data-min-width="140"></div> <div data-src="common/js/images/xsmall/3.jpg"></div> <noscript> <img src="common/js/images/xsmall/3.jpg" alt="img01"/> </noscript> </div> </li> </ul> <div class="gamma-overlay"></div> </div> <script> $(function() { var GammaSettings = { viewport : [ { width : 1200, columns : 5 }, { width : 900, columns : 4 }, { width : 500, columns : 3 }, { width : 320, columns : 2 }, { width : 0, columns : 2 } ] }; Gamma.init( GammaSettings ); }); </script> </body> </html>
jsファイルは読み込んでいるし、画像のパスも通っていると思うのですが、ブラウザ上には何も表示されません。
何か手順が抜けているのだと思いますが、それが全く分からない状態です。
ヒントになりそうなことだけでも結構です。
どなたか知恵を貸していただけると、大変助かります。
よろしくお願いいたします。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2018/08/31 06:27
2018/09/03 01:33 編集