1/* 2 Alpha by HTML5 UP 3 html5up.net | @ajlkn 4 Free for personal and commercial use under the CCA 3.0 license (html5up.net/license) 5*/ 6 7(function($) { 8 9 skel.breakpoints({ 10 wide: '(max-width: 1680px)', 11 normal: '(max-width: 1280px)', 12 narrow: '(max-width: 980px)', 13 narrower: '(max-width: 840px)', 14 mobile: '(max-width: 736px)', 15 mobilep: '(max-width: 480px)' 16 }); 17 18 $(function() { 19 20 var $window = $(window), 21 $body = $('body'), 22 $header = $('#header'), 23 $banner = $('#banner'); 24 25 // Fix: Placeholder polyfill. 26 $('form').placeholder; 27 28 // Prioritize "important" elements on narrower. 29 skel.on('+narrower -narrower', function() { 30 $.prioritize( 31 '.important\\28 narrower\\29', 32 skel.breakpoint('narrower').active 33 ); 34 }); 35 36 // Dropdowns. 37 $('#nav > ul').dropotron({ 38 alignment: 'left', 39 offsetX: 0 40 }); 41 42 // Off-Canvas Navigation. 43 44 // Navigation Button. 45 $( 46 '<div id="navButton">' + 47 '<a href="#navPanel" class="toggle"></a>' + 48 '</div>' 49 ) 50 .appendTo($body); 51 52 // Navigation Panel. 53 $( 54 '<div id="navPanel">' + 55 '<nav>' + 56 $('#nav').navList() + 57 '</nav>' + 58 '</div>' 59 ) 60 .appendTo($body) 61 .panel({ 62 delay: 500, 63 hideOnClick: true, 64 hideOnSwipe: true, 65 resetScroll: true, 66 resetForms: true, 67 side: 'right', 68 target: $body, 69 visibleClass: 'navPanel-visible' 70 }); 71 72 // Fix: Remove navPanel transitions on WP<10 (poor/buggy performance). 73 if (skel.vars.os == 'wp' && skel.vars.osVersion < 10) 74 $('#navButton, #navPanel, #page-wrapper') 75 .css('transition', 'none'); 76 77 // Header. 78 // If the header is using "alt" styling and #banner is present, use scrollwatch 79 // to revert it back to normal styling once the user scrolls past the banner. 80 // Note: This is disabled on mobile devices. 81 if (!skel.vars.mobile 82 && $header.hasClass('alt') 83 && $banner.length > 0) { 84 85 $window.on('load', function() { 86 87 $banner.scrollwatch({ 88 delay: 0, 89 range: 0.5, 90 anchor: 'top', 91 on: function() { $header.addClass('alt reveal'); }, 92 off: function() { $header.removeClass('alt'); } 93 }); 94 95 }); 96 97 } 98 99 }); 100 101})(jQuery);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.