PageSourceSearch

https://www.goobike.com/smp/js/smooth-scroll.js?time=202207061026

js goobike.com collected 2026-09-24 17:54:18 UTC 1,237 bytes, 47 lines download raw bytes

1//#1520 start by ljb 20140810 GooBikeSP¥È¥Ã¥×¥Ú¡¼¥¸¤Î¥ê¥Ë¥å¡¼¥¢¥ë
2;(function($){
3
4	$(function(){
5		$('.smoothScroll').pageScroller();
6	});
7
8	jQuery.fn.extend({
9
10		pageScroller: function(){
11
12			var scrollTime = 400;
13
14			$(this).click(function(){
15				var offset = $($(this).attr('href')).offset();
16
17//				$($.browser.safari ? 'body' : 'html').animate({scrollTop:offset.top}, scrollTime);
18				if ($.browser.safari || navigator.userAgent.match("Chrome")) {
19					$('body').animate({scrollTop:offset.top}, scrollTime);
20				} else {
21					$('html').animate({scrollTop:offset.top}, scrollTime);
22				}
23
24				return false;
25			});
26		}
27	});
28})(jQuery);
29//#1520 end by ljb 20140810 GooBikeSP¥È¥Ã¥×¥Ú¡¼¥¸¤Î¥ê¥Ë¥å¡¼¥¢¥ë
30
31// 200608 -¥È¥Ã¥×¥Ú¡¼¥¸¤Ø
32$(function(){
33   // #¤Ç»Ï¤Þ¤ë¥¢¥ó¥«¡¼¤ò¥¯¥ê¥Ã¥¯¤·¤¿¾ì¹ç¤Ë½èÍý
34   $('a[href^=#]').click(function() {
35      // ¥¹¥¯¥í¡¼¥ë¤Î®ÅÙ
36      var speed = 400; // ¥ß¥êÉÃ
37      // ¥¢¥ó¥«¡¼¤ÎÃͼèÆÀ
38      var href= $(this).attr("href");
39      // °ÜưÀè¤ò¼èÆÀ
40      var target = $(href == "#" || href == "" ? 'html' : href);
41      // °ÜưÀè¤ò¿ôÃͤǼèÆÀ
42      var position = target.offset().top;
43      // ¥¹¥à¡¼¥¹¥¹¥¯¥í¡¼¥ë
44      $('body,html').animate({scrollTop:position}, speed, 'swing');
45      return false;
46   });
47});

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.