PageSourceSearch

https://artistscope.com/assets/js/app.js

js artistscope.com collected 2026-10-02 02:55:54 UTC 642 bytes, 25 lines download raw bytes

1$(document).ready(function() {
2	$('body.js-scrollto a').on('click', function(e) {
3		const href = $(this).attr('href');
4		if(href.substr(0, 1) === '#') {
5			e.preventDefault();
6			const anchor = $(href).length ? $(href) : $(`a[name="${href.substr(1)}"]`);
7			const navbar = $('#navbar');
8			let allowance = navbar.length ? - (navbar.height() + 40) : 0;
9			app.scrollTo(anchor, allowance);
10		}
11	});
12});
13
14var app = {
15
16	scrollTo : function( node, allowance ) {
17		if(typeof allowance == 'undefined') {
18			var allowance = 0;
19		}
20
21		$('html, body').animate({
22			scrollTop: $( node ).offset().top + allowance
23		}, 800);
24	},
25};

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.