PageSourceSearch

https://medprior.ru/wp-content/themes/turquoise/js/fairy.js

js medprior.ru collected 2026-10-04 19:35:27 UTC 1,545 bytes, 48 lines download raw bytes

1/*************************************************************
2СКРИПТЫ ТЕМЫ
3*************************************************************/
4
5jQuery.noConflict();
6(function($) {
7  $(function(){	
8
9/*************************************************************
10КНОПКА ВВЕРХ
11*************************************************************/
12// browser window scroll (in pixels) after which the "back to top" link is shown
13	var offset = 300,
14		//browser window scroll (in pixels) after which the "back to top" link opacity is reduced
15		offset_opacity = 1200,
16		//duration of the top scrolling animation (in ms)
17		scroll_top_duration = 700,
18		//grab the "back to top" link
19		$back_to_top = $('.cd-top');
20
21	//hide or show the "back to top" link
22	$(window).scroll(function(){
23		( $(this).scrollTop() > offset ) ? $back_to_top.addClass('cd-is-visible') : $back_to_top.removeClass('cd-is-visible cd-fade-out');
24		if( $(this).scrollTop() > offset_opacity ) { 
25			$back_to_top.addClass('cd-fade-out');
26		}
27	});
28
29	//smooth scroll to top
30	$back_to_top.on('click', function(event){
31		event.preventDefault();
32		$('body,html').animate({
33			scrollTop: 0 ,
34		 	}, scroll_top_duration
35		);
36	});
37	
38/*************************************************************
39ЯКОРЬ
40*************************************************************/
41	$("#oglavl").on("click", "a", function (event) {
42		event.preventDefault();
43		var id  = $(this).attr('href'),
44			top = $(id).offset().top;
45		$('body,html').animate({scrollTop: top-60}, 1000);
46	});	
47
48})})(jQuery);

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.