PageSourceSearch

https://zabel-partners.com/css/js/jquery.anchor.js

js zabel-partners.com collected 2026-10-06 18:53:49 UTC 975 bytes, 39 lines download raw bytes

1/*******
2
3	***	Anchor Slider by Cedric Dugas   ***
4	*** Http://www.position-absolute.com ***
5	
6	Never have an anchor jumping your content, slide it.
7
8	Don't forget to put an id to your anchor !
9	You can use and modify this script for any project you want, but please leave this comment as credit.
10	
11*****/
12		
13
14
15$(document).ready(function() {
16	$("a.anchorLink").anchorAnimate()
17});
18
19jQuery.fn.anchorAnimate = function(settings) {
20
21 	settings = jQuery.extend({
22		speed : 1100
23	}, settings);	
24	
25	return this.each(function(){
26		var caller = this
27		$(caller).click(function (event) {	
28			event.preventDefault()
29			var locationHref = window.location.href
30			var elementClick = $(caller).attr("href")
31			
32			var destination = $(elementClick).offset().top;
33			$("html:not(:animated),body:not(:animated)").animate({ scrollTop: destination}, settings.speed, function() {
34				window.location.hash = elementClick
35			});
36		  	return false;
37		})
38	})
39}

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.