PageSourceSearch

https://tachikawabus.co.jp/recruit/common/js/main.js

js tachikawabus.co.jp collected 2026-10-02 17:07:24 UTC 1,408 bytes, 54 lines download raw bytes

1// JavaScript Document
2
3$(function(){
4  var pagetop = $('#page-topp');
5  pagetop.hide();
6	$('body').append('<p id="page-top"><a href="#">TOP</a></p>');
7  $(window).scroll(function () {
8     if ($(this).scrollTop() > 100) {
9          pagetop.fadeIn();
10     } else {
11          pagetop.fadeOut();
12     }
13  });
14  pagetop.click(function () {
15     $('body, html').animate({ scrollTop: 0 }, 500);
16     return false;
17  });
18});
19
20// gototop
21$(function() {
22    $('body').append('<p id="page-top"><a href="#">TOP</a></p>');
23    $("#page-top").hide();
24    $(window).scroll(function () {
25        if ($(this).scrollTop() > 100) $('#page-top').fadeIn();
26        else $('#page-top').fadeOut();
27    });
28    $("#page-top a").click(function () {
29        $("body, html").animate({scrollTop: 0}, 500);
30        return false;
31    });
32});
33
34// global-nav
35  $(function() {
36      var $header = $('#global-nav');
37      $(window).scroll(function() {
38          if ($(window).scrollTop() > 400) {
39              $header.addClass('fixed');
40          } else {
41              $header.removeClass('fixed');
42          }
43      });
44  });
45
46// ページ内スクロール
47$('a[href^="#"]').click(function () {
48  const speed = 600;
49  let href = $(this).attr("href");
50  let target = $(href == "#" || href == "" ? "html" : href);
51  let position = target.offset().top;
52  $("body,html").animate({ scrollTop: position }, speed, "swing");
53  return false;
54});

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.