PageSourceSearch

https://micorochio.github.io/js/src/bootstrap.js?v=5.1.1

js micorochio.github.io collected 2026-10-03 09:36:41 UTC 1,245 bytes, 46 lines download raw bytes

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  $('.site-nav-toggle button').on('click', function () {
16    var $siteNav = $('.site-nav');
17    var ON_CLASS_NAME = 'site-nav-on';
18    var isSiteNavOn = $siteNav.hasClass(ON_CLASS_NAME);
19    var animateAction = isSiteNavOn ? 'slideUp' : 'slideDown';
20    var animateCallback = isSiteNavOn ? 'removeClass' : 'addClass';
21
22    $siteNav.stop()[animateAction]('fast', function () {
23      $siteNav[animateCallback](ON_CLASS_NAME);
24    });
25  });
26
27
28  CONFIG.fancybox && NexT.utils.wrapImageWithFancyBox();
29  NexT.utils.embeddedVideoTransformer();
30  NexT.utils.addActiveClassToMenuItem();
31
32
33  // Define Motion Sequence.
34  NexT.motion.integrator
35    .add(NexT.motion.middleWares.logo)
36    .add(NexT.motion.middleWares.menu)
37    .add(NexT.motion.middleWares.postList)
38    .add(NexT.motion.middleWares.sidebar);
39
40  $(document).trigger('motion:before');
41
42  // Bootstrap Motion.
43  CONFIG.motion && NexT.motion.integrator.bootstrap();
44
45  $(document).trigger('bootstrap:after');
46});

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.