hacks-guide-minimal-mistake.../_assets/js/_main.js
Michael Rose 2b494bb9d8 Update vendor files
- Drop IE8 polyfill scripts
2016-03-09 21:23:27 -05:00

34 lines
945 B
JavaScript

/* ==========================================================================
jQuery plugin settings and other scripts
========================================================================== */
/* fitvids.js */
$(function() {
$("article").fitVids();
});
/* add lightbox class to all image links */
$("a[href$='.jpg'],a[href$='.jpeg'],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
mainClass: "mfp-fade"
});
});