PageSourceSearch

https://jp-pc-info.jp/r6c/assets/js/index.js

js jp-pc-info.jp collected 2026-10-07 03:04:08 UTC 751 bytes, 35 lines download raw bytes

1$(function () {
2    $('.js-btn').on('click', function () {
3      $('.menu , .btn-line').toggleClass('open');
4    })
5  });
6  $(function(){
7    var topBtn=$('#pagetop');
8    topBtn.hide();
9   
10    //ボタンの表示設定
11    $(window).scroll(function(){
12      if($(this).scrollTop()>500){
13        topBtn.fadeIn();
14      }else{
15        topBtn.fadeOut();
16      } 
17    });
18   
19    topBtn.click(function(){
20      $('body,html').animate({
21      scrollTop: 0},500);
22      return false;
23    });
24  });
25
26$(document).on('click', 'a[href*="#"]', function() {
27  let time = 1000;
28  let target = $(this.hash);
29  if (!target.length) return;
30
31  let targetY = target.offset().top;
32  $('html,body').animate({scrollTop: targetY}, time, 'swing');
33  return false;
34});
35  

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.