PageSourceSearch

https://www.yu-hsiu.org/js/goTop.js

js yu-hsiu.org collected 2026-10-02 14:30:24 UTC 1,509 bytes, 52 lines download raw bytes

1// JavaScript Document
2
3$(function(){
4    
5    $("#goTop").click(function(){
6		$("html,body").animate({scrollTop:0},300);
7		return false;
8	});
9	
10	$(".language > a").click(function(){
11      $(".language > a").next("ul").slideToggle();
12    });
13	$(".subM > div").click(function(){
14      $(".subM").toggleClass("subM_se");
15    });
16	
17	$(".search_pic").click(function(){
18      $(".search_input").stop().addClass('search_open');
19      $(".search_btn").stop().addClass('search_btn_open');
20    });
21	
22	$(".reservationA .faqA:eq(0)").show();
23	$(".faqQ").click(function(){
24		$('html,body').animate({scrollTop:$(this).offset().top - 90 + "px"}, 500);
25		$(this).next('.faqA').slideToggle(500);
26    });
27    
28    $(".anchorM a").click(function() {
29        $("html, body").animate({scrollTop: $($(this).attr("href")).offset().top - 80 + "px"}, 300);
30        return false;
31    });
32
33    var bodyClass = document.body.classList;
34	
35	$(window).bind('scroll resize', function(){
36        var $this = $(this);
37        var $this_Top=$this.scrollTop();
38        if($this_Top > 100){
39            bodyClass.add('hideUp');
40			$(".goTop").css("right","20px");
41			$(".search_input").stop().removeClass('search_open');
42			$(".search_btn").stop().removeClass('search_btn_open');
43        }
44        if($this_Top < 100){
45            bodyClass.remove('hideUp');
46			$(".goTop").css("right","-90px");
47			$(".search_input").stop().removeClass('search_open');
48			$(".search_btn").stop().removeClass('search_btn_open');
49        }
50    }).scroll();
51  
52});

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.