PageSourceSearch

https://blog.y7n05h.dev/js/main.js

js y7n05h.dev collected 2026-09-25 22:35:11 UTC 3,752 bytes, 1 lines download raw bytes

1(function(a,i,t,e){a('.article img:not(".not-gallery-item")').each(function(){if(a(this).parent("a").length===0){a(this).wrap('<a class="gallery-item" href="'+a(this).attr("src")+'"></a>');if(this.alt){a(this).after('<p class="has-text-centered is-size-6 caption">'+this.alt+"</p>")}}});if(typeof a.fn.lightGallery==="function"){a(".article").lightGallery({selector:".gallery-item"})}if(typeof a.fn.justifiedGallery==="function"){if(a(".justified-gallery > p > .gallery-item").length){a(".justified-gallery > p > .gallery-item").unwrap()}a(".justified-gallery").justifiedGallery()}if(typeof i==="function"){a(".article-meta time").each(function(){a(this).text(i(a(this).attr("datetime")).fromNow())})}a(".article > .content > table").each(function(){if(a(this).width()>a(this).parent().width()){a(this).wrap('<div class="table-overflow"></div>')}});function n(){const i=a(".navbar-main .navbar-start").outerWidth()+a(".navbar-main .navbar-end").outerWidth();if(a(document).outerWidth()<i){a(".navbar-main .navbar-menu").addClass("justify-content-start")}else{a(".navbar-main .navbar-menu").removeClass("justify-content-start")}}n();a(window).resize(n);function l(i,t){const e=a(i).find(".fold i");!t?a(i).removeClass("folded"):a(i).addClass("folded");!t?e.removeClass("fa-angle-right"):e.removeClass("fa-angle-down");!t?e.addClass("fa-angle-down"):e.addClass("fa-angle-right")}function s(i){return'<span class="fold">'+(i==="unfolded"?'<i class="fas fa-angle-down"></i>':'<i class="fas fa-angle-right"></i>')+"</span>"}a("figure.highlight table").wrap('<div class="highlight-body">');if(typeof e!=="undefined"&&typeof e.article!=="undefined"&&typeof e.article.highlight!=="undefined"){a("figure.highlight").addClass("hljs");a("figure.highlight .code .line span").each(function(){const i=a(this).attr("class").split(/\s+/);if(i.length===1){a(this).addClass("hljs-"+i[0]);a(this).removeClass(i[0])}});const o=e.article.highlight.clipboard;const c=e.article.highlight.fold.trim();a("figure.highlight").each(function(){if(a(this).find("figcaption").length){a(this).find("figcaption").addClass("level is-mobile");a(this).find("figcaption").append('<div class="level-left">');a(this).find("figcaption").append('<div class="level-right">');a(this).find("figcaption div.level-left").append(a(this).find("figcaption").find("span"));a(this).find("figcaption div.level-right").append(a(this).find("figcaption").find("a"))}else{if(o||c){a(this).prepend('<figcaption class="level is-mobile"><div class="level-left"></div><div class="level-right"></div></figcaption>')}}});if(typeof t!=="undefined"&&o){a("figure.highlight").each(function(){const i="code-"+Date.now()+(Math.random()*1e3|0);const t='<a href="javascript:;" class="copy" title="Copy" data-clipboard-target="#'+i+' .code"><i class="fas fa-copy"></i></a>';a(this).attr("id",i);a(this).find("figcaption div.level-right").append(t)});new t(".highlight .copy")}if(c){a("figure.highlight").each(function(){if(a(this).find("figcaption").find("span").length>0){const i=a(this).find("figcaption").find("span");if(i[0].innerText.indexOf(">folded")>-1){i[0].innerText=i[0].innerText.replace(">folded","");a(this).find("figcaption div.level-left").prepend(s("folded"));l(this,true);return}}a(this).find("figcaption div.level-left").prepend(s(c));l(this,c==="folded")});a("figure.highlight figcaption .fold").click(function(){const i=a(this).closest("figure.highlight");l(i.eq(0),!i.hasClass("folded"))})}}const f=a("#toc");if(f.length>0){const h=a("<div>");h.attr("id","toc-mask");a("body").append(h);function d(){f.toggleClass("is-active");h.toggleClass("is-active")}f.on("click",d);h.on("click",d);a(".navbar-main .catalogue").on("click",d)}})(jQuery,window.moment,window.ClipboardJS,window.IcarusThemeSettings);

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.