components_thumbnails.js 661 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
/* ------------------------------------------------------------------------------
*
*  # Thumbnails
*
*  Specific JS code additions for components_thumbnails.html page
*
*  Version: 1.0
*  Latest update: Aug 1, 2015
*
* ---------------------------------------------------------------------------- */

$(function() {

	// Switchery toggle
    var elems = Array.prototype.slice.call(document.querySelectorAll('.switch'));
    elems.forEach(function(html) {
		var switchery = new Switchery(html);
    });


    // Styled checkboxes/radios
    $('.styled').uniform();


    // Image lightbox
    $('[data-popup="lightbox"]').fancybox({
	    padding: 3
    });

});