PageSourceSearch

https://www.humanitarian-love.com/js/main.js

js humanitarian-love.com collected 2026-10-08 11:56:07 UTC 1,563 bytes, 66 lines download raw bytes

1//Check to see if the window is top if not then display button
2$(window).scroll(function(){
3	if ($(this).scrollTop() >200 ){
4		$('#to_top').fadeIn();
5	} else {
6		$('#to_top').fadeOut();
7	}
8});
9
10//Click event to scroll to top
11$('.to_top').click(function(){
12	$('html, body').animate({'scrollTop':0}, 1500, 'easeInOutExpo');
13	return false;
14});
15
16
17//
18$(".list_before.account li:empty").hide();
19
20// img加alt
21$(document).ready(function(){$("img").each(function(){let t=$(this).attr("alt");var a=companyData;t&&""!==t.trim()||$(this).attr("alt",a)})});
22
23// 浮動
24$(document).ready(function () {
25  
26  let ww = $(window).width();
27
28  if (ww < 768) {
29    fixLinksClick();
30  } else {
31    fixLinksClick();
32    fixLinksHover();
33  }
34
35  function fixLinksClick() {
36    $('.linksBtn').click(function() {
37      var $infoLinks = $(this).siblings('.info_fix_links');
38      if ($infoLinks.hasClass('linkBox_Open')) {
39        hideMenu($(this))
40      } else {
41        var $infoLinks = $(this).siblings('.info_fix_links');
42        $infoLinks.show().addClass('linkBox_Open');
43      }
44    });
45  }
46  
47  function fixLinksHover() {
48    $('.info_fix').hover(
49      function() {
50        var $infoLinks = $(this).children('.info_fix_links');
51        $infoLinks.show().addClass('linkBox_Open');
52      },
53      function() {
54        hideMenu($(this).children('.linksBtn'))
55      }
56    );
57  }
58  
59  function hideMenu(element) {
60    element.siblings('.info_fix_links').hide().removeClass('linkBox_Open');
61  }
62
63})
64
65
66//# sourceURL=main.js

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.