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 $('#posts').find('img').lazyload({ 10 placeholder: '/images/loading.gif', 11 effect: 'fadeIn' 12 }); 13 14 $('.back-to-top').on('click', function () { 15 $('body').velocity('scroll'); 16 }); 17 18 $('.site-nav-toggle button').on('click', function () { 19 var $siteNav = $('.site-nav'); 20 var ON_CLASS_NAME = 'site-nav-on'; 21 var isSiteNavOn = $siteNav.hasClass(ON_CLASS_NAME); 22 var animateAction = isSiteNavOn ? 'slideUp' : 'slideDown'; 23 var animateCallback = isSiteNavOn ? 'removeClass' : 'addClass'; 24 25 $siteNav.stop()[animateAction]('fast', function () { 26 $siteNav[animateCallback](ON_CLASS_NAME); 27 }); 28 }); 29 30 31 CONFIG.fancybox && NexT.utils.wrapImageWithFancyBox(); 32 NexT.utils.embeddedVideoTransformer(); 33 NexT.utils.addActiveClassToMenuItem(); 34 35 36 // Define Motion Sequence. 37 NexT.motion.integrator 38 .add(NexT.motion.middleWares.logo) 39 .add(NexT.motion.middleWares.menu) 40 .add(NexT.motion.middleWares.postList) 41 .add(NexT.motion.middleWares.sidebar); 42 43 $(document).trigger('motion:before'); 44 45 // Bootstrap Motion. 46 CONFIG.motion && NexT.motion.integrator.bootstrap(); 47 48 $(document).trigger('bootstrap:after'); 49});
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.