PageSourceSearch

https://mdf.ru/js/hints.js

js mdf.ru collected 2026-10-02 10:47:58 UTC 2,110 bytes, 79 lines download raw bytes

1$(document).ready(function(){
2   $(".search .textfield").ezpz_hint();
3	
4	$('a.goTop').click(function(e){
5		e.preventDefault();
6		$('html, body').animate({scrollTop:0}, 800);
7	});
8	$(document, window).scroll(function(){
9		if($(this).scrollTop()>document.documentElement.clientHeight/4){
10			$('a.goTop').fadeIn(400);
11		} else {
12			$('a.goTop').fadeOut(400);
13		}
14	});
15	
16	$("#application-link, #application-link-popup").fancybox({ajax : {type:"GET"},"padding": 0,"showCloseButton":false});
17	$(".public-data .fancy").fancybox({ajax : {type:"GET"}});
18	
19	$(".application-popup .close").live("click",function(e){
20		e.preventDefault();
21		$.fancybox.close();
22	});
23	
24	$("a.fancy_content").fancybox({
25		'titleShow': false
26  });
27  
28	$("#subscribe-link").fancybox({
29		ajax : {type:"GET"},
30		"padding": 0,
31		"showCloseButton":false,
32		onStart : function(){
33			$("#fancybox-wrap").css({'margin-left':'-235px'});
34		}
35	});
36	
37	$(".subscribe-popup__close").live("click",function(e){
38		e.preventDefault();
39		$.fancybox.close();
40	});
41	
42	$(".subscribe-popup").live("submit",function(e){
43		var $this = $(this);
44		var $mail = $(this).find('.subscribe-popup__input');
45		var RegMail = /^([a-z0-9_\-]+\.)*[a-z0-9_\-]+@([a-z0-9][a-z0-9\-]*[a-z0-9]\.)+[a-z]{2,4}$/i;
46		
47		if (!RegMail.test($mail.val())) {
48			$mail.css("border-color", "red");
49		}
50		else{
51			$.post("/subscription.php",{email: $mail.val()},function(data){
52				$.fancybox(data, {
53					onStart : function(){
54						$("#fancybox-wrap").css({'margin-left':'0'});
55					}
56				});
57			});
58		}
59		return false;
60	});
61	$(".subscribe-popup__input").live("focus",function(e){
62		$(this).css("border-color", "#bebebe");
63	});
64	
65	$(".events_archive h2 span").live("click", function(e){
66		e.preventDefault();
67		console.log("1");
68		var $wrap = $(this).closest('.events_archive'),
69				$list = $wrap.find('.events_archive-list');
70				
71		$list.slideToggle("slow", function(){
72			$wrap.toggleClass('events_archive--open');
73		});
74	});
75	
76	$(".art-for-kids ul li>span, ul.accordion-event li>span").click(function(){
77		$(this).parent("li").toggleClass("active").find(".info").slideToggle(300);
78	});
79});

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.