1/* 2 TXT by HTML5 UP 3 html5up.net | @n33co 4 Free for personal and commercial use under the CCA 3.0 license (html5up.net/license) 5*/ 6 7(function($) { 8 9 skel 10 .breakpoints({ 11 desktop: '(min-width: 737px)', 12 tablet: '(min-width: 737px) and (max-width: 1200px)', 13 mobile: '(max-width: 736px)' 14 }) 15 .viewport({ 16 breakpoints: { 17 tablet: { 18 width: 1080 19 } 20 } 21 }); 22 23 $(function() { 24 25 var $window = $(window), 26 $body = $('body'); 27 28 // Disable animations/transitions until the page has loaded. 29 $body.addClass('is-loading'); 30 31 $window.on('load', function() { 32 $body.removeClass('is-loading'); 33 }); 34 35 // Fix: Placeholder polyfill. 36 $('form').placeholder(); 37 38 // Prioritize "important" elements on mobile. 39 skel.on('+mobile -mobile', function() { 40 $.prioritize( 41 '.important\\28 mobile\\29', 42 skel.breakpoint('mobile').active 43 ); 44 }); 45 46 // CSS polyfills (IE<9). 47 if (skel.vars.IEVersion < 9) 48 $(':last-child').addClass('last-child'); 49 50 // Dropdowns. 51 $('#nav > ul').dropotron({ 52 mode: 'fade', 53 noOpenerFade: true, 54 speed: 300, 55 alignment: 'center' 56 }); 57 58 // Off-Canvas Navigation. 59 60 // Title Bar. 61 $( 62 '<div id="titleBar">' + 63 '<a href="#navPanel" class="toggle" aria-label="Open navigation menu"></a>' + 64 '<span class="title">' + $('#logo').html() + '</span>' + 65 '</div>' 66 ) 67 .appendTo($body); 68 69 // Navigation Panel. 70 $( 71 '<div id="navPanel">' + 72 '<nav>' + 73 $('#nav').navList() + 74 '</nav>' + 75 '</div>' 76 ) 77 .appendTo($body) 78 .panel({ 79 delay: 500, 80 hideOnClick: true, 81 hideOnSwipe: true, 82 resetScroll: true, 83 resetForms: true, 84 side: 'left', 85 target: $body, 86 visibleClass: 'navPanel-visible' 87 }); 88 89 // Fix: Remove navPanel transitions on WP<10 (poor/buggy performance). 90 if (skel.vars.os == 'wp' && skel.vars.osVersion < 10) 91 $('#titleBar, #navPanel, #page-wrapper') 92 .css('transition', 'none'); 93 94 }); 95 96})(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.