PageSourceSearch

https://www.granit-realty.ru/plugins/content/highslide/config/js/highslide-sitesettings.js

js granit-realty.ru collected 2026-10-05 01:43:44 UTC 7,381 bytes, 263 lines download raw bytes

1/*
2*  Highslide site settings
3*  DO NOT EDIT. Generated on 2014-09-30 16:57:10 (GMT) by the Highslide Configuration Component 2.0.11
4*/
5
6hs.showCredits = false;
7hs.creditsPosition = 'top left';
8hs.graphicsDir = 'plugins/content/highslide/graphics/';
9hs.outlineStartOffset = 3;
10hs.outlineWhileAnimating = 2;
11hs.loadingOpacity = 0.75;
12hs.dimmingOpacity = 0;
13hs.padToMinWidth = false;
14hs.expandCursor = 'zoomin.cur';
15hs.restoreCursor = 'zoomout.cur';
16hs.creditsHref = 'https://highslide.com';
17hs.easing = 'easeInQuad';
18hs.easingClose = hs.easing;
19hs.fullExpandOpacity = 1.0;
20hs.marginTop = 10;
21hs.marginBottom = 15;
22hs.marginLeft = 10;
23hs.marginRight = 15;
24hs.minHeight = 200;
25hs.minWidth = 200;
26hs.numberOfImagesToPreload = 5;
27hs.transitions = ['expand'];
28hs.fullExpandPosition = 'bottom right';
29hs.objectLoadTime = 'before';
30hs.align = '';
31hs.anchor = '';
32hs.allowSizeReduction = false;
33hs.fadeInOut = false;
34hs.allowMultipleInstances = true;
35hs.allowWidthReduction = false;
36hs.allowHeightReduction = true;
37hs.blockRightClick = false;
38hs.enableKeyListener = true;
39hs.dynamicallyUpdateAnchors = true;
40hs.forceAjaxReload = false;
41hs.allowSimultaneousLoading = false;
42hs.useBox = false;
43hs.cacheAjax = true;
44hs.preserveContent = true;
45hs.dragByHeading = true;
46hs.dragSensitivity = 5;
47hs.dimmingDuration = 50;
48hs.expandDuration = 250;
49hs.transitionDuration = 500;
50hs.expandSteps = 10;
51hs.zIndexCounter = 1001;
52hs.Expander.prototype.onBeforeGetCaption = function(sender)
53{
54	if (typeof sender.captionId != 'undefined' && sender.captionId != null)
55	{
56		if ((document.getElementById( sender.captionId ) || hs.clones[ sender.captionId ]) == null && sender.a.onclick != null)
57		{
58			var onclick = sender.a.onclick.toString();
59			var onclickprop = onclick.match(/hsjcaption(["']*):\s*('|")([^'"]*)/);
60			if (onclickprop != null)
61			{
62				var text = unescape( onclickprop[3] );
63				var div = document.createElement('div');
64				div['innerHTML'] = hs.replaceLang( text );
65				div['id'] = sender.captionId;
66				div['className'] = 'highslide-caption';
67				var onclickstyle = onclick.match(/hsjcaptionstyle(["']*):\s*('|")([^'"]*)/);
68				if (onclickstyle != null)
69				{
70					var styles = onclickstyle[3].match(/([^:; ])*:\s*([^,;}])*/g);
71					if (styles != null)
72					{
73						for (var i = 0; i < styles.length; i++)
74						{
75							var arr;
76							arr = styles[i].split(":");
77							div.style[arr[0]] = arr[1].replace( " ", "");
78						}
79					}
80				}
81				if (sender.a.nodeName == "A")
82				{
83					sender.a.appendChild( div );
84				}
85				else
86				{
87					var x = document.getElementsByTagName('DIV');
88					x[x.length-1].appendChild( div );
89				}
90			}
91		}
92	}
93	return true;
94}
95hs.Expander.prototype.onBeforeGetHeading = function(sender)
96{
97	if (typeof sender.headingId != 'undefined' && sender.headingId != null)
98	{
99		if ((document.getElementById( sender.headingId ) || hs.clones[ sender.headingId ]) == null && sender.a.onclick != null)
100		{
101			var onclick = sender.a.onclick.toString();
102			var onclickprop = onclick.match(/hsjheading(["']*):\s*('|")([^'"]*)/);
103			if (onclickprop != null)
104			{
105				var text = unescape( onclickprop[3] );
106				var div = document.createElement('div');
107				div['innerHTML'] = hs.replaceLang( text );
108				div['id'] = sender.headingId;
109				div['className'] = 'highslide-heading';
110				var onclickstyle = onclick.match(/hsjheadingstyle(["']*):\s*('|")([^'"]*)/);
111				if (onclickstyle != null)
112				{
113					var styles = onclickstyle[3].match(/([^:; ])*:\s*([^,;}])*/g);
114					if (styles != null)
115					{
116						for (var i = 0; i < styles.length; i++)
117						{
118							var arr;
119							arr = styles[i].split(":");
120							div.style[arr[0]] = arr[1].replace( " ", "");
121						}
122					}
123				}
124				if (sender.a.nodeName == "A")
125				{
126					sender.a.appendChild( div );
127				}
128				else
129				{
130					var x = document.getElementsByTagName('DIV');
131					x[x.length-1].appendChild( div );
132				}
133			}
134		}
135	}
136	return true;
137}
138hs.Expander.prototype.onBeforeGetContent = function(sender)
139{
140	if (typeof sender.contentId != 'undefined' && sender.contentId != null)
141	{
142		if ((document.getElementById( sender.contentId ) || hs.clones[ sender.contentId ]) == null && sender.a.onclick != null)
143		{
144			var onclick = sender.a.onclick.toString();
145			var onclickprop = onclick.match(/hsjcontent(["']*):\s*('|")([^'"]*)/);
146			if (onclickprop != null)
147			{
148				var text = unescape( onclickprop[3] );
149				var div = document.createElement('div');
150				div['innerHTML'] = hs.replaceLang( text );
151				div['id'] = sender.contentId;
152				div['className'] = 'highslide-html-content';
153				var onclickstyle = onclick.match(/hsjcontentstyle(["']*):\s*('|")([^'"]*)/);
154				if (onclickstyle != null)
155				{
156					var styles = onclickstyle[3].match(/([^:; ])*:\s*([^,;}])*/g);
157					if (styles != null)
158					{
159						for (var i = 0; i < styles.length; i++)
160						{
161							var arr;
162							arr = styles[i].split(":");
163							div.style[arr[0]] = arr[1].replace( " ", "");
164						}
165					}
166				}
167				if (sender.a.nodeName == "A")
168				{
169					sender.a.appendChild( div );
170				}
171				else
172				{
173					var x = document.getElementsByTagName('DIV');
174					x[x.length-1].appendChild( div );
175				}
176			}
177		}
178	}
179	return true;
180}
181hs.Expander.prototype.onBeforeExpand = function (sender) {
182	if (this.custom != null
183       &&this.custom['overlayId'] != null)
184    {
185		sender.createOverlay( this.custom );
186	}
187	return true;
188}
189hs.Expander.prototype.onInit = function (sender)
190{
191	if (sender.a.onclick != null)
192	{
193		var onclick = sender.a.onclick.toString();
194		var onclickprop = onclick.match(/overlayId(["']*):\s*('|")([^'"]*)/);
195		if (onclickprop != null)
196		{
197			var overlayId = onclickprop[3];
198			if ((document.getElementById( overlayId ) || hs.clones[ overlayId ]) == null)
199			{
200				var onclickprop = onclick.match(/hsjcustomOverlay(["']*):\s*('|")([^'"]*)/);
201				if (onclickprop != null)
202				{
203					var text = unescape( onclickprop[3] );
204					var div = document.createElement('div');
205					div['innerHTML'] = hs.replaceLang( text );
206					div['id'] = overlayId;
207					div['className'] = 'highslide-overlay';
208					var onclickstyle = onclick.match(/hsjcustomOverlayStyle(["']*):\s*('|")([^'"]*)/);
209					if (onclickstyle != null)
210					{
211						var styles = onclickstyle[3].match(/([^:; ])*:\s*([^,;}])*/g);
212						if (styles != null)
213						{
214							for (var i = 0; i < styles.length; i++)
215							{
216								var arr;
217								arr = styles[i].split(":");
218								div.style[arr[0]] = arr[1].replace( " ", "");
219							}
220						}
221					}
222					sender.a.appendChild( div );
223					var overlayExists = false;
224					for (var i = 0; i < hs.overlays.length; i++)
225					{
226						if (hs.overlays[i].overlayId == overlayId)
227						{
228							overlayExists = true;
229						}
230					}
231					if (! overlayExists)
232					{
233						onclickprop = onclick.match(/customOverlay(["']*):\s*{\s*([^}]*)}/);
234						if (onclickprop != null)
235						{
236							try
237							{
238								eval( "var opts = {" + onclickprop[2] + "}" );
239								opts.overlayId = overlayId;
240								if (typeof sender.thumb.id != "undefined" && sender.thumb.id != "")
241								{
242									opts.thumbnailId = sender.thumb.id;
243									hs.registerOverlay( opts );
244								}
245								else
246								if (typeof sender.a.id != "undefined" && sender.a.id != "")
247								{
248									opts.thumbnailId = sender.a.id;
249									hs.registerOverlay( opts );
250								}
251							}
252							catch(e)
253							{
254								//	ignore
255							}
256						}
257					}
258				}
259			}
260		}
261	}
262	return true;
263}

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.