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.registerESCKeyEvent(); 12 13 NexT.utils.registerBackToTop(); 14 15 // Mobile top menu bar. 16 $('.site-nav-toggle button').on('click', function () { 17 var $siteNav = $('.site-nav'); 18 var ON_CLASS_NAME = 'site-nav-on'; 19 var isSiteNavOn = $siteNav.hasClass(ON_CLASS_NAME); 20 var animateAction = isSiteNavOn ? 'slideUp' : 'slideDown'; 21 var animateCallback = isSiteNavOn ? 'removeClass' : 'addClass'; 22 23 $siteNav.stop()[animateAction]('fast', function () { 24 $siteNav[animateCallback](ON_CLASS_NAME); 25 }); 26 }); 27 28 /** 29 * Register JS handlers by condition option. 30 * Need to add config option in Front-End at 'layout/_partials/head.swig' file. 31 */ 32 CONFIG.fancybox && NexT.utils.wrapImageWithFancyBox(); 33 CONFIG.tabs && NexT.utils.registerTabsTag(); 34 35 NexT.utils.embeddedVideoTransformer(); 36 NexT.utils.addActiveClassToMenuItem(); 37 38 39 // Define Motion Sequence. 40 NexT.motion.integrator 41 .add(NexT.motion.middleWares.logo) 42 .add(NexT.motion.middleWares.menu) 43 .add(NexT.motion.middleWares.postList) 44 .add(NexT.motion.middleWares.sidebar); 45 46 $(document).trigger('motion:before'); 47 48 // Bootstrap Motion. 49 CONFIG.motion.enable && NexT.motion.integrator.bootstrap(); 50 51 $(document).trigger('bootstrap:after'); 52});
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.