{"size": 1579, "ext": "js", "max_stars_repo_path": "public/scripts/pages/lightbox.js", "max_stars_repo_name": "mrlizzard/AlphaManager-Web", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "public/scripts/pages/lightbox.js", "max_issues_repo_name": "mrlizzard/AlphaManager-Web", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "public/scripts/pages/lightbox.js", "max_forks_repo_name": "mrlizzard/AlphaManager-Web", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 22.884057971, "max_line_length": 75, "alphanum_fraction": 0.4623179227}
/* ----------------------------------------------------
 *  Lightbox
 *
 *  JavaScript file for the ui.lightbox.html.
 *
 *  Description: Contains codes from jquery lightgallery.js
 *  Offical Site: http://sachinchoolur.github.io/lightGallery/
 * ---------------------------------------------------- */


/*global
    jQuery
*/ 

var LightGallery = (function($) {
    'use strict';


    /* ------------------------- 
        Begin Light Gallery
     ------------------------- */

    var initLightGallery = function() {
        // Basic
        $('#lightgallery-default').lightGallery({
            thumbnail:true
        }); 

        // Animated Entrance for the images
        $('#aniimated-thumbnials2').lightGallery({
            thumbnail:true
        });


        // Calling the trans
        $('#select-trans').on('change', function() {
            $('#aniimated-thumbnials2').data('lightGallery').destroy(true);
            customTransitions($(this).val());
        });

        function customTransitions(trans) {
            $('#aniimated-thumbnials2').lightGallery({
                mode: trans
            })
        };


        // Light Gallery with Videos
        $('#gallery-video').lightGallery(); 
        $('#gallery-video-v').lightGallery();
    };

    /* ------------------------- 
        End Light Gallery
     ------------------------- */

    // Return all the functions under Init
    return {
        Init: function() {
            initLightGallery();
        }
    };


})(jQuery);


// Initiate the Gallery
$(function() { LightGallery.Init(); });