1/* 2 Prologue 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: '(min-width: 961px) and (max-width: 1880px)', 11 normal: '(min-width: 961px) and (max-width: 1620px)', 12 narrow: '(min-width: 961px) and (max-width: 1320px)', 13 narrower: '(max-width: 960px)', 14 mobile: '(max-width: 736px)' 15 }); 16 17 $(function() { 18 19 var $window = $(window), 20 $body = $('body'); 21 22 // Disable animations/transitions until the page has loaded. 23 $body.addClass('is-loading'); 24 25 $window.on('load', function() { 26 $body.removeClass('is-loading'); 27 }); 28 29 // CSS polyfills (IE<9). 30 if (skel.vars.IEVersion < 9) 31 $(':last-child').addClass('last-child'); 32 33 // Fix: Placeholder polyfill. 34 $('form').placeholder(); 35 36 // Prioritize "important" elements on mobile. 37 skel.on('+mobile -mobile', function() { 38 $.prioritize( 39 '.important\\28 mobile\\29', 40 skel.breakpoint('mobile').active 41 ); 42 }); 43 44 // Scrolly links. 45 $('.scrolly').scrolly(); 46 47 // Nav. 48 var $nav_a = $('#nav a.scrolly'); 49 50 // Scrolly-fy links. 51 $nav_a 52 .scrolly() 53 .on('click', function(e) { 54 55 var t = $(this), 56 href = t.attr('href'); 57 58 if (href[0] != '#') 59 return; 60 61 e.preventDefault(); 62 63 // Clear active and lock scrollzer until scrolling has stopped 64 $nav_a 65 .removeClass('active') 66 .addClass('scrollzer-locked'); 67 68 // Set this link to active 69 t.addClass('active'); 70 71 }); 72 73 // Initialize scrollzer. 74 var ids = []; 75 76 $nav_a.each(function() { 77 78 var href = $(this).attr('href'); 79 80 if (href[0] != '#') 81 return; 82 83 ids.push(href.substring(1)); 84 85 }); 86 87 $.scrollzer(ids, { pad: 200, lastHack: true }); 88 89 // Header (narrower + mobile). 90 91 // Toggle. 92 $( 93 '<div id="headerToggle">' + 94 '<a href="#header" class="toggle"></a>' + 95 '</div>' 96 ) 97 .appendTo($body); 98 99 // Header. 100 $('#header') 101 .panel({ 102 delay: 500, 103 hideOnClick: true, 104 hideOnSwipe: true, 105 resetScroll: true, 106 resetForms: true, 107 side: 'left', 108 target: $body, 109 visibleClass: 'header-visible' 110 }); 111 112 // Fix: Remove transitions on WP<10 (poor/buggy performance). 113 if (skel.vars.os == 'wp' && skel.vars.osVersion < 10) 114 $('#headerToggle, #header, #main') 115 .css('transition', 'none'); 116 117 }); 118 119})(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.