PageSourceSearch

https://siver.com.ua/.s/src/video_gfunc.js

js siver.com.ua collected 2026-09-24 19:59:33 UTC 3,145 bytes, 113 lines download raw bytes

1var videoLightbox = function(vicode) {
2	// open content in fancybox5
3	if (window.uFancy || uCoz && uCoz.uLightboxType === 2) {
4		//remove frame block on page
5		const oldEl = document.getElementById('videocontent');
6		oldEl && (oldEl.innerHTML = '');
7
8		return typeof showVideoFrame === "function" && showVideoFrame(vicode || window.vicode);
9	}
10
11
12	// set content
13	var $videoBlock = $("#videocontent");
14	$videoBlock.html(vicode || window.vicode);
15
16	// get/set content size
17	var getElSize = function ($el ) {
18		if ($el.attr('width') && $el.attr('width').length ) {
19			return {
20				width  : $el.attr('width')  || $el.width()  || 'auto',
21				height : $el.attr('height') || $el.height() || 'auto',
22			}
23		} else if ($el.children().length) {
24			return getElSize($el.children());
25		} else {
26			return {
27				width  : 'auto',
28				height : 'auto',
29			}
30		}
31	};
32	var sizes = getElSize($videoBlock);
33	$videoBlock.width(sizes.width);
34	if ($.browser && $.browser.opera ) $videoBlock.height(sizes.height);
35
36	// open content in lightbox
37	$.fancybox({
38		href        : "#videocontent",
39		fitToView   : false,
40		width       : "70%",
41		height      : "70%",
42		autoSize    : true,
43		closeClick  : false,
44		openEffect  : "none",
45		closeEffect : "none",
46		padding     : 3,
47		fixed       : true,
48		afterShow   : function () {
49			$('.fancybox-inner').css('overflow', 'hidden !important');
50		},
51		afterClose  : function () {
52			setTimeout(function () {
53				$videoBlock.html('');
54			}, 100);
55		},
56		helpers     : {
57			title: null,
58			overlay: {
59				opacity: 0.8,
60				speedIn: 0,
61				speedOut: 0
62			},
63			buttons: {}
64		}
65	})
66};
67
68if ((($.browser && $.browser.msie) && ($.browser.version < 10) && (document.compatMode == "BackCompat")) || $.fn.jquery.split('.').map(function (i) {return('0'+i).slice(-2)}).join('.') < '01.07' ) {
69	videoLightbox = function () {
70		var vTitle = $('.vep-title').text();
71		new _uWnd('', vTitle, 7, 7, {autosize:1, hideonmove:0, fadetype:0, modal:1, resize:0, fadeclosetype:0, closeonesc:1, align:'left'}, (vicode || window.vicode));
72	};
73}
74
75/* ---- category obj ---- */
76var category = function(cat_type) {
77	this.cat_type  = cat_type;
78	this.imgStore  = {
79		EMPTY  : '/.s/img/vi/deficon/cat-arrow.png',
80		OPENED : '/.s/img/vi/deficon/c_m.png',
81		CLOSED : '/.s/img/vi/deficon/c_p.png',
82	};
83	this.tr_states = [];
84
85	this.tr_group = function(id, container) {
86		if (!this.tr_states[id] ) {
87			this.tr_states[id] = {state:'closed'};
88		}
89		if (this.tr_states[id].state == 'closed' ) {
90			this._set_bg(id, this.imgStore['OPENED']);
91			this.tr_states[id].state = 'opened';
92			$('#'+this.cat_type+'_'+id).show();
93		} else {
94			this._set_bg(id, this.imgStore['CLOSED']);
95			this.tr_states[id].state = 'closed';
96			$('#'+this.cat_type+'_'+id).hide();
97		}
98	};
99
100	this.opBranch = function(data, type) {
101		for (var idx = 0; idx < data.length - 1; idx++ ) {
102			this.tr_group(data[idx]);
103		}
104	};
105
106	this._set_bg = function(id, src) {
107		$('#'+this.cat_type+'_row'+id+'_trigger').css('background-image', 'url('+src+')');
108	};
109
110	this._error = function(msg) {
111		_uWnd.alert("<div style='margin-top:15px' class='myWinError'>"+msg+'</div>', '', {w:250, h:90, tm:5000});
112	};
113};

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.