1/* global NexT: true */ 2 3$(document).ready(function () { 4 5 $(document).trigger('bootstrap:before'); 6 7 NexT.utils.isMobile() && window.FastClick.attach(document.body); 8 9 NexT.utils.lazyLoadPostsImages(); 10 11 NexT.utils.registerBackToTop(); 12 13 $('.site-nav-toggle button').on('click', function () { 14 var $siteNav = $('.site-nav'); 15 var ON_CLASS_NAME = 'site-nav-on'; 16 var isSiteNavOn = $siteNav.hasClass(ON_CLASS_NAME); 17 var animateAction = isSiteNavOn ? 'slideUp' : 'slideDown'; 18 var animateCallback = isSiteNavOn ? 'removeClass' : 'addClass'; 19 20 $siteNav.stop()[animateAction]('fast', function () { 21 $siteNav[animateCallback](ON_CLASS_NAME); 22 }); 23 }); 24 25 26 CONFIG.fancybox && NexT.utils.wrapImageWithFancyBox(); 27 NexT.utils.embeddedVideoTransformer(); 28 NexT.utils.addActiveClassToMenuItem(); 29 30 31 // Define Motion Sequence. 32 NexT.motion.integrator 33 .add(NexT.motion.middleWares.logo) 34 .add(NexT.motion.middleWares.menu) 35 .add(NexT.motion.middleWares.postList) 36 .add(NexT.motion.middleWares.sidebar); 37 38 $(document).trigger('motion:before'); 39 40 // Bootstrap Motion. 41 CONFIG.motion && NexT.motion.integrator.bootstrap(); 42 43 $(document).trigger('bootstrap:after'); 44});
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.