PageSourceSearch

https://www.denisonforum.org/wp-content/themes/circlescocollective/js/anchor.js

js denisonforum.org collected 2026-09-24 17:35:08 UTC 886 bytes, 35 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
15jQuery.fn.anchorAnimate = function(settings) {
16
17 	settings = jQuery.extend({
18		speed : 1100
19	}, settings);	
20	
21	return this.each(function(){
22		var caller = this
23		jQuery(caller).click(function (event) {	
24			event.preventDefault()
25			var locationHref = window.location.href
26			var elementClick = jQuery(caller).attr("href")
27			
28			var destination = jQuery(elementClick).offset().top;
29			jQuery("html:not(:animated),body:not(:animated)").animate({ scrollTop: destination}, settings.speed, function() {
30				window.location.hash = elementClick
31			});
32		  	return false;
33		})
34	})
35}

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.