Login

jQuery My Instagram Gallery


Sebuah jQuery plugin untuk mengambil profil dan foto dari Instagram dan menampilkannya sebagai galeri foto di website Anda. :)

Pemakaian:

CSS

<!-- My instagram gallery -->
<link type="text/css" rel="stylesheet" href="my-instagram-gallery.css" />
<!-- Fancybox -->
<link type="text/css" rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/fancybox/2.1.5/jquery.fancybox.min.css"/>

JS

<!-- jQuery -->
<script src="//code.jquery.com/jquery-2.1.1.min.js"></script>
<!-- My instagram gallery -->
<script src="my-instagram-gallery.js"></script>
<!-- Fancybox -->
<script src="//cdnjs.cloudflare.com/ajax/libs/fancybox/2.1.5/jquery.fancybox.min.js"></script>

Contoh Setting:

HTML

<div class="demo"></div>

jQuery

My Instagram Gallery:
$(document).ready(function(){
    $(".demo").myig(
        ins_id = 503807090, // your user_id
        ins_count = 10, // Count of media to return
        ins_token = '141970.467ede5.edbc9c37472d41b790e1db8948793f11' // your token
    );
});
Fancybox:
$(document).ready(function(){    
    $(".myig_popup").fancybox({
        openEffect : 'fade',
        closeEffect : 'fade'
    });
});

Demo Fork me on GitHub



Contributor:

issues