PageSourceSearch

https://www.metalfactory.ch/media/plg_system_loginpopup/js/script.js

js metalfactory.ch collected 2026-10-02 06:57:17 UTC 1,041 bytes, 37 lines download raw bytes

1/**
2 * @copyright	Copyright (c) 2014 Skyline Technology Ltd (http://extstore.com). All rights reserved.
3 * @license		GNU General Public License version 2 or later; see LICENSE.txt
4 */
5
6if (!ExtStore) {
7	var ExtStore	= {};
8}
9
10ExtStore.LoginPopup	= {
11	offset_top: 	0,
12
13	open: function() {
14		var popup	= jQuery('#lp-popup');
15		var overlay	= jQuery('#lp-overlay');
16
17		overlay.addClass('lp-open');
18		popup.addClass('lp-open');
19
20		var window_width	= overlay.width();
21		var window_height	= overlay.height();
22		var popup_width		= popup.outerWidth();
23		var popup_heigh		= popup.outerHeight();
24		var left			= window_width - popup_width < 0 ? 0 : (window_width - popup_width) / 2;
25		var top				= window_height - popup_heigh - ExtStore.LoginPopup.offset_top / 2 < 0 ? 0 : (window_height - popup_heigh) / 2 - ExtStore.LoginPopup.offset_top;
26
27		popup.css({
28			'left':	left,
29			'top': top
30		});
31	},
32
33	close: function() {
34		jQuery('#lp-overlay').removeClass('lp-open');
35		jQuery('#lp-popup').removeClass('lp-open');
36	}
37};

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.