PageSourceSearch

https://www.etone.de/fileadmin/templates2012/_js/jquery.anchor.js?1513685031

js etone.de collected 2026-10-06 15:21:12 UTC 992 bytes, 39 lines download raw bytes

1jQuery(document).ready(function() {
2	var hashElement = window.location.hash.split('#')[1];
3	
4	jQuery('.anker').anchorAnimate();
5	if(hashElement) {
6		console.log("ELEMENT: " + hashElement);
7		animateScrollTo(hashElement);
8	}
9});
10
11jQuery.fn.anchorAnimate = function(){
12	return this.each(function(){
13		var caller = this;
14		
15		jQuery(caller).click(function(event){
16			event.preventDefault();
17			
18			var elementClickValue = jQuery(caller).attr('href');
19			var elementClick = elementClickValue.split('#');
20			var elementClickID = elementClick[1];
21			
22			animateScrollTo(elementClickID);
23			if (typeof history.pushState !== 'undefined') {
24				history.pushState(null, null, window.location.pathname + "#" + elementClickID);
25			}
26		});
27	});
28};
29
30function animateScrollTo(elementID) {
31	var destination = jQuery('#' + elementID).offset().top-180;			
32		
33	jQuery('html,body').stop();
34	jQuery('html:not(:animated),body:not(:animated)').animate({
35		scrollTop: destination
36	}, 600, 'swing');
37
38	return false;
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.