PageSourceSearch

https://zhenyu0519.github.io/assets/js/search.js

js zhenyu0519.github.io collected 2026-10-03 10:14:45 UTC 466 bytes, 17 lines download raw bytes

1jQuery(function() {
2    function adjust_search_box_width() {
3        if ($(".post-directory").length) {
4            if ($(".post-directory").is(":visible")) {
5                $("#site_search").width(300);
6            }
7        }
8        var searchbar_width = $("#site_search").width();
9        $("#search_box").width(searchbar_width - 65);
10    }
11
12    adjust_search_box_width();
13
14    $(window).on("resize", function() {
15        adjust_search_box_width();
16    });
17});

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.