/* Venue by Pixelarity pixelarity.com @pixelarity License: pixelarity.com/license */ (function($) { skel.breakpoints({ normal: '(max-width: 1280px)', narrow: '(max-width: 1080px)', narrower: '(max-width: 880px)', mobile: '(max-width: 768px)' }); $(function() { var $window = $(window), $body = $('body'); // Fix: Placeholder polyfill. $('form').placeholder(); // Prioritize "important" elements on mobile. skel.on('+mobile -mobile', function() { $.prioritize( '.important\\28 mobile\\29', skel.breakpoint('mobile').active ); }); // Dropdowns. $('#nav > ul').dropotron({ offsetY: -11, noOpenerFade: true, alignment: 'center' }); // Off-Canvas Navigation. // Title Bar. $( '
' + '' + '
' ) .appendTo($body); // Navigation Panel. $( '' ) .appendTo($body) .panel({ delay: 500, hideOnClick: true, hideOnSwipe: true, resetScroll: true, resetForms: true, side: 'left', target: $body, visibleClass: 'navPanel-visible' }); // Fix: Remove transitions on WP<10 (poor/buggy performance). if (skel.vars.os == 'wp' && skel.vars.osVersion < 10) $('#titleBar, #navPanel, #page-wrapper') .css('transition', 'none'); }); })(jQuery);