PageSourceSearch

https://blog.hankyu-travel.com/news/js/scripts.js

js hankyu-travel.com collected 2026-09-24 15:28:13 UTC 1,030 bytes, 51 lines download raw bytes

1var app = app || {};
2
3app.init = function () {
4
5   app.match_height();
6   app.smooth_scroll();
7   app.stop_btn_go_top();
8
9}
10
11app.match_height = function() {
12  $('.same-link .box-inner').matchHeight();
13}
14
15app.smooth_scroll = function(){
16$('a.scroll').click(function() {
17   var speed = 500;
18   var href= $(this).attr("href");
19   var target = $(href == "#" || href == "" ? 'html' : href);
20   var position = target.offset().top;
21   $('body,html').animate({scrollTop:position}, speed, 'swing');
22   
23   return false;
24   });
25}
26
27app.stop_btn_go_top = function() {
28  
29
30   $(window).on("load scroll", function () {
31var height_doc = $("html").outerHeight();
32var height_footer = $("footer").outerHeight();
33var mouse_scroll = $(window).scrollTop() + $(window).height();
34var pos_stop =  $("html").outerHeight() -  $("footer").outerHeight();
35
36var wqwqw = mouse_scroll - pos_stop
37if (mouse_scroll >= (pos_stop + 20) ) {
38$("#btn-top").css("bottom", wqwqw);
39}
40else{
41$("#btn-top").css("bottom", "20px");
42
43}
44   });
45}
46
47$(function() {
48
49app.init();
50
51});

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.