1$(function() { 2 // bootstrap tooltip 3 $('[data-toggle="tooltip"]').tooltip(); 4 5 // slimscroll 6 if (typeof $.fn.slimScroll != 'undefined') { 7 $(".sidebar .slimContent").slimScroll({ 8 height: $(window).height(), 9 color: "rgba(0,0,0,0.15)", 10 size: "5px", 11 position: 'right', 12 // allowPageScroll: true 13 }); 14 } 15 16 $('#collapseToc').on('shown.bs.collapse', function() { 17 // do something⦠18 // slimscroll 19 if (typeof $.fn.slimScroll != 'undefined') { 20 $(".sidebar .slimContent").slimScroll().on('slimscroll'); 21 } 22 }); 23 24 // geopattern èæ¯çæ 25 $(".geopattern").each(function() { 26 $(this).geopattern($(this).data('pattern-id')); 27 }); 28 29 // okayNav 30 var navigation = $('#nav-main').okayNav({ 31 swipe_enabled: false, // If true, you'll be able to swipe left/right to open the navigation 32 }); 33 34 // modalå± ä¸ 35 // $('.modal').on('shown.bs.modal', function(e) { 36 // $(this).show(); 37 // var modalDialog = $(this).find(".modal-dialog"); 38 // // Applying the top margin on modal dialog to align it vertically center 39 // modalDialog.css("margin-top", Math.max(0, ($(window).height() - modalDialog.height()) / 2)); 40 // }); 41 42 // sticky 43 $('[data-stick-bottom]').keepInView({ 44 fixed: false, 45 parentClass: "has-sticky", 46 customClass: "sticky", 47 trigger: 'bottom', 48 zindex: 42, 49 edgeOffset: 0 50 }); 51 52 $('[data-stick-top]').keepInView({ 53 fixed: true, 54 parentClass: "has-sticky", 55 customClass: "sticky", 56 trigger: 'top', 57 zindex: 42, 58 edgeOffset: 0 59 }); 60 61 // menu auto highlight 62 var menuHighlight = $("ul.main-nav").hasClass('menu-highlight'); 63 if (menuHighlight) { 64 var currentPathname = location.pathname, 65 $menuList = $("ul.main-nav>li"), 66 activeIndex = -1; 67 for (var i = 0, length = $menuList.length; i < length; i++) { 68 var itemHref = $($menuList[i]).find('a').attr('href'); 69 if (currentPathname.indexOf(itemHref) > -1 || 70 (currentPathname === '/' && (itemHref === '/.' || itemHref === '/' || itemHref === 'index.html' || itemHref === '/index.html'))) { 71 activeIndex = i; 72 } 73 $($menuList[i]).removeClass('active'); 74 } 75 $menuList[activeIndex] && $($menuList[activeIndex]).addClass('active'); 76 } 77}); 78 79//Hide Disqus Ads above the comments 80(function($){ 81 setInterval(() => { 82 $('#disqus_thread iframe').first().hide(); 83 }, 300); 84})(jQuery);
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.