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