PageSourceSearch

https://hiokito.jp/js/cmn.js

js hiokito.jp collected 2026-09-25 05:31:55 UTC 1,197 bytes, 46 lines download raw bytes

1jQuery(document).ready(function($){
2
3  //スクロールしてからページTOPボタンを表示
4  $(window).scroll( function(){
5    if( $(this).scrollTop() > 400 ) {
6      $('.to-pagetop').addClass('show');
7    } else {
8      $('.to-pagetop').removeClass('show');
9    }
10  });
11
12  addBr();
13
14  //windowをリサイズした時の処理
15  var timer = false;
16  $(window).resize( function(){
17    if( timer !== false ) {
18      clearTimeout(timer);
19    }
20    timer = setTimeout( function(){
21      addBr();
22    },100);
23  });
24
25  // グローバルメニューのテキストに改行を追加
26  function addBr() {
27    var windowW;
28    windowW = window.innerWidth ? window.innerWidth: $(window).width();
29    if( windowW < 1025 ) {
30      $('.ldb_menu li a').each( function() {
31        var txt = $(this).html();
32        if( txt.indexOf('<br>') == -1 ) {
33          $(this).html( txt.replace( 'の', 'の<br>' ) );
34        }
35      });
36    } else {
37      $('.ldb_menu li a').each( function() {
38        var txt = $(this).html();
39        if( txt.indexOf('<br>') != -1 ) {
40          $(this).html( txt.replace( 'の<br>', 'の' ) );
41        }
42      });
43    }
44  }
45
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.