PageSourceSearch

https://www.map.gonefishing.ru/Scripts/other.js

js gonefishing.ru collected 2026-10-02 19:05:06 UTC 5,636 bytes, 197 lines download raw bytes

1// JavaScript Document
2// ÷òåíèå ïåðåìåííîé èç cookie
3function readCookie(name)
4{
5  var cookieValue = "";
6  var search = name + "=";
7  if(document.cookie.length > 0)
8  { 
9    offset = document.cookie.indexOf(search);
10    if (offset != -1)
11    { 
12      offset += search.length;
13      end = document.cookie.indexOf(";", offset);
14      if (end == -1) end = document.cookie.length;
15      cookieValue = unescape(document.cookie.substring(offset, end))
16    }
17  }
18  return cookieValue;
19}
20function PrintTime()
21{
22	var t =  readCookie("set_generation_time");
23	if (t)
24	{
25		document.write(parseInt(t*1000)/1000);
26	}
27	else
28	{
29		document.write('?');
30	}
31}
32
33function PrintQueryCount()
34{
35	var cn = readCookie("set_query_count");
36	if (cn)
37	{
38		document.write(cn);
39	}
40	else
41	{
42		document.write('?');
43	}
44}
45
46function PrintGzip()
47{
48	var before = readCookie("page_size_before");
49	var after = readCookie("page_size_after");
50	var raz = (100 - Math.round(after/before*100));
51	document.write(before + " / " + after + " - " + raz+ "%");
52	//
53}
54
55
56
57// Äëÿ ôîðìû îòïðàâêè êîììåíòàðèé
58// JavaScript Document
59/*Ñêðèïò äëÿ ðàáîòû ñ ôîðìîé ñîîáùåíèÿ*/
60b_help = "Æèðíûé òåêñò: [b]òåêñò[/b]";
61i_help = "Íàêëîííûé òåêñò: [i]òåêñò[/i]";
62u_help = "Ïîä÷¸ðêíóòûé òåêñò: [u]òåêñò[/u]";
63q_help = "Öèòàòà: [quote]òåêñò[/quote]";
64ul_help = "Íåíóìåðîâàííûé ñïèñîê: [list]òåêñò[/list]";
65o_help = "Íóìåðîâàííûé ñïèñîê: [list=]òåêñò[/list]";
66p_help = "Âñòàâèòü êàðòèíêó: [img]http://image_url[/img]";
67sup_help = "Òåêñò â íèæíåì ðåãèñòðå: [sup]Òåêñò[/sup]";
68sub_help = "Òåêñò â âåðõíåì ðåãèñòðå: [sub]Òåêñò[/sub]";
69//w_promt = "Âñòàâèòü ññûëêó: [url]http://url[/url] èëè [url=http://url]server[/url]";
70eml_help = 'Âñòàâèòü email: [email=âàø e-mail]òåêñò[/email]';
71cl_help = "";
72enter_help = "Ââåäèòå òåêñò";
73email_help = 'Ââåäèòå âàø e-mail';
74name_help = 'Ââåäèòå âàøå èìÿ';
75number_help = 'Ââåäèòå êîëè÷åñòâî ñòðîê â ñïèñêå';
76str_list_help = 'Ââåäèòå ñòðîêó ñïèñêà';
77quote_help = 'Ââåäèòå èìÿ öèòèðóåìîãî';
78bbcode = new Array();
79bbtags = new Array('[b]','[/b]','[i]','[/i]','[u]','[/u]','[quote]','[/quote]','[list]','[/list]','[list=]','[/list]','[img]','[/img]','[url]','[/url]','[email]','[/email]');
80
81function Help(help)
82{
83	// âûâîä ïîäñêàçêè äëÿ òåêóùåé êíîïêè
84	document.message.help_line.value = eval(help + '_help');
85}
86// *******************************************************
87// replacements for unsupported array functions (because arrayname.push(var)
88// and arrayname.pop() are not implemented in IE until version 5.5)
89
90function getarraysize(thearray) {
91// replacement for arrayname.length property
92	for (i = 0; i < thearray.length; i++) {
93		if ((thearray[i] == "undefined") || (thearray[i] == "") || (thearray[i] == null))
94			return i;
95		}
96	return thearray.length;
97}
98
99function arraypush(thearray,value) {
100// replacement for arrayname.push(value)
101	thearraysize = getarraysize(thearray);
102	thearray[thearraysize] = value;
103}
104
105function arraypop(thearray) {
106// replacement for arrayname.pop()
107	thearraysize = getarraysize(thearray);
108	retval = thearray[thearraysize - 1];
109	delete thearray[thearraysize - 1];
110	return retval;
111}
112// ââîä â textarea bbcode [b], [i], [u]
113function code(theform, bbcode, prompttext)
114{
115	//var txtarea = document.message.message_text;
116	inserttext = prompt(enter_help + "\n[" + bbcode + "]âàø òåêñò[/" + bbcode + "]", prompttext);
117	if ((inserttext != "") && (inserttext != null)) theform.message_text.value += "[" + bbcode + "]" + inserttext + "[/" + bbcode + "]"; 
118
119    
120}
121// ââîä 
122function paramcode(theform, bbcode, prompttext)
123{
124    if (bbcode == 'email') ref = prompt(email_help, prompttext);
125	else ref = prompt(quote_help, prompttext)
126	if ((ref != '') && (ref != null))
127	{
128		if (bbcode == 'email') inserttext = prompt(name_help, ''); 
129		else inserttext = prompt(enter_help, '');
130		if ((inserttext != '') && (inserttext != null))
131		{
132			theform.message_text.value += '[' + bbcode + '=' + ref + ']' +  inserttext + '[/' + bbcode + ']'; 
133		}
134	}
135	theform.message_text.focus();
136	
137}
138function listcode(theform, bbcode, prompttext)
139{
140	// êîëè÷åñòâî ýëåìåíòîâ â ñïèñêå
141	var num_list = eval(prompt(number_help, prompttext));
142	if ((num_list != '') && (num_list != null))
143	{
144		var res_list = '';
145		for (var i=1;i<=num_list;i++)
146		{
147			str_list = prompt(str_list_help + ' ¹' + (i), '');
148			if ((str_list != '') && (str_list != null))
149			{
150				res_list += '[*]' + str_list + '\n';
151			}
152			
153		}
154		if ((res_list != '') && (res_list != null))
155		{
156			//res_list += '[' + bbcode + ']' + res_list + '[/' +  bbcode + ']';
157			theform.message_text.value += '[' + bbcode + ']\n' + res_list + '[/' +  'list' + ']';
158			theform.message_text.focus();
159		}
160	}
161}
162function test()
163{
164	alert('sdfdf');
165}
166function PreSubmit(theform)
167{
168	if (theform.message_text.value == '')
169	alert('Ïîëå ñîîáùåíèÿ íå äîëæíî áûòü ïóñòûì');
170	else
171	theform.submit();
172	
173}
174
175
176$(document).ready(function() {
177	
178	$("ul.gallery li").hover(function() { //On hover...
179		
180		var thumbOver = $(this).find("img").attr("src"); //Get image url and assign it to 'thumbOver'
181		
182		//Set a background image(thumbOver) on the &lt;a&gt; tag 
183		$(this).find("a.thumb").css({'background' : 'url(' + thumbOver + ') no-repeat center bottom'});
184		//Fade the image to 0
185		$(this).find("span").stop().fadeTo('normal', 0 , function() {
186			$(this).hide() //Hide the image after fade
187		}); 
188	} , function() { //on hover out...
189		//Fade the image to 1 
190		$(this).find("span").stop().fadeTo('normal', 1).show();
191	});
192
193});
194
195
196	
197	

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.