2013-06-25 20:19:49 +00:00
|
|
|
/*! Plugin options and other jQuery stuff */
|
|
|
|
|
|
|
|
// Responsive Nav
|
|
|
|
var navigation = responsiveNav("#site-nav", { // Selector: The ID of the wrapper
|
|
|
|
animate: true, // Boolean: Use CSS3 transitions, true or false
|
|
|
|
transition: 400, // Integer: Speed of the transition, in milliseconds
|
2014-08-08 19:52:28 +00:00
|
|
|
label: "<i class='fa fa-bars'></i> Menu", // String: Label for the navigation toggle
|
2013-06-25 20:19:49 +00:00
|
|
|
insert: "before", // String: Insert the toggle before or after the navigation
|
|
|
|
customToggle: "", // Selector: Specify the ID of a custom toggle
|
|
|
|
openPos: "relative", // String: Position of the opened nav, relative or static
|
|
|
|
jsClass: "js", // String: 'JS enabled' class which is added to <html> el
|
|
|
|
init: function(){}, // Function: Init callback
|
|
|
|
open: function(){}, // Function: Open callback
|
|
|
|
close: function(){} // Function: Close callback
|
|
|
|
});
|
|
|
|
|
2013-09-11 18:43:35 +00:00
|
|
|
$('html').click(function() {
|
|
|
|
//Hide the menus if visible
|
2014-08-27 12:34:18 +00:00
|
|
|
if ($(navigation.wrapper).hasClass('opened')) {
|
|
|
|
navigation.toggle();
|
|
|
|
}
|
2013-09-11 18:43:35 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
$('#site-nav').click(function(event){
|
|
|
|
event.stopPropagation();
|
|
|
|
});
|
|
|
|
|
2013-06-25 20:19:49 +00:00
|
|
|
// FitVids options
|
|
|
|
$(function() {
|
|
|
|
$("article").fitVids();
|
2014-07-23 12:18:43 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
// 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
|
|
|
|
// 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'
|
|
|
|
});
|
2014-08-27 12:34:18 +00:00
|
|
|
});
|