Sha256: d7dd6c5d93bbf3e3284bf9e040992d3b4be5a86e11d5527acc07a09310ea8ca2
Contents?: true
Size: 1011 Bytes
Versions: 12
Compression:
Stored size: 1011 Bytes
Contents
/*! Plugin options and other jQuery stuff */ // FitVids options $(function () { $("article").fitVids(); }); // Table of Contents toggle $(function () { $(".toc h3").click(function () { $("#drawer").toggleClass("hidden"); }); }); // Add lightbox class to all image links $("a[href$='.jpg'],a[href$='.png'],a[href$='.gif']").addClass("image-popup"); // Magnific-Popup options $(document).ready(function () { $('.image-popup').magnificPopup({ type: 'image', tLoading: 'Loading image #%curr%...', gallery: { enabled: true, navigateByImgClick: true, preload: [0, 1] // Will preload 0 - before current, and 1 after the current image }, image: { tError: '<a href="%url%">Image #%curr%</a> could not be loaded.', }, removalDelay: 300, // Delay in milliseconds before popup is removed // Class that is added to body when popup is open. // make it unique to apply your CSS animations just to this exact popup mainClass: 'mfp-fade' }); });
Version data entries
12 entries across 12 versions & 1 rubygems