PageSourceSearch

https://www.pesticidy.ru/ps-content/all/js/tips.js

js pesticidy.ru collected 2026-09-25 03:58:12 UTC 1,888 bytes, 79 lines download raw bytes

1(function init_tips_var() {
2	var tipsVar = {};
3	tipsVar['staus_type_show'] = false;
4	tipsVar['over_flag'] = false;
5
6	GetTipsVar = function(key) {
7		return tipsVar[key];
8	}
9
10	SetTipsVar = function(key, val) {
11		tipsVar[key] = val;
12	}
13})();
14
15
16
17$(function() {
18
19	$('#go_termin').click( function() { $(this).blur(); });
20	$('#tip_dictionary').offset({top:0, left:0});
21	
22	init_tips_work();
23
24	$('#tip_dictionary').stop().mouseenter( function() { SetTipsVar('over_flag', true); });
25	$('#tip_dictionary').stop().mouseleave( function() {
26		SetTipsVar('over_flag', false);
27		setTimeout("hide_tip()",100);
28	});	
29
30});
31
32init_tips_work = function() {
33
34	$('.termin_new').mouseover( function() {	
35		if( !GetTipsVar('staus_type_show') ) {
36			
37			var num_termin = function(elem) {
38				var clas_var = $(elem).attr('class')
39								.split('termin_id_')[1];
40				if(clas_var) {
41					return clas_var.split(' ')[0];
42				}
43				else {
44					var termin_id = $(elem).attr('id').split('_');
45					return termin_id[termin_id.length-2];
46				}
47			}(this);
48
49			if(termin[num_termin]) {
50				fill_tip(this, num_termin);
51				var br = getOffsetRect(this);
52				$('#tip_dictionary').offset({top:br.top+17, left:br.left-10});
53				$('#tip_dictionary').css({visibility:"visible"});
54				SetTipsVar('staus_type_show', true);
55			}
56		}	
57	});
58
59	$('.termin_new').stop().mouseleave( function() { setTimeout("analyse_tip()",100); });
60}
61
62
63analyse_tip = function (){
64	if( !GetTipsVar('over_flag') ) hide_tip();
65}
66
67hide_tip = function () {
68	$('#tip_dictionary').css({visibility:"hidden"});
69	//$('#typ_header').empty();
70	$('#typ_content').empty();
71	SetTipsVar('staus_type_show', false);
72}
73
74fill_tip = function (elem_termin, num_termin) {
75	var termin_text = termin[num_termin].split('::');
76	//$('#typ_header').prepend(termin_text[0]);
77	$('#typ_content').prepend(termin_text[1]);
78	$('#go_termin').attr('href', dictionary_path+'/'+termin_text[2]);
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.