PageSourceSearch

https://www.displaymuseum.co.jp/js/suggest_word.js

js displaymuseum.co.jp collected 2026-09-25 21:16:59 UTC 650 bytes, 25 lines download raw bytes

1// suggest
2$(function () {
3  var baseUrl = '';
4  $('input.suggest-search').autocomplete({
5    source: function (request, response) {
6      $.ajax({
7        type: 'get',
8        url: baseUrl + '/suggest.php?search_word=' + encodeURIComponent(request.term) + '&c=SuggestApi',
9        dataType: 'json'
10      }).done(function (res) {
11        response(res);
12      }).fail(function (res) {
13        response([]);
14      });
15    },
16    delay: 500,
17    minLength: 2,
18    select: function( event, ui ) {
19      $(this).val(ui.item.value);
20      $(this).next('input[type=submit]').click();
21      $(this).next('button').click();
22      return false;
23    }
24  });
25});

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.