PageSourceSearch

https://cobdc.net/16JCID/wp-content/plugins/ttg-reaktions/js/popup/popup.js?ver=1.0

js cobdc.net collected 2026-09-24 19:31:57 UTC 2,792 bytes, 87 lines download raw bytes

1
2/**
3 *	EXTERNAL LIBRARY FOR POPUP PLAYER
4 * http://rip747.github.io/popupwindow/
5 * Popup windows
6 * Used in the popup player
7 * 
8 */
9
10
11(function($){
12
13$.fn.popupwindow = function(p)
14{
15
16
17
18	$("body").on("click", ".qt-popupwindow", function(e){
19		e.preventDefault();
20		
21
22
23
24		var settings, parameters, mysettings, b, a, winObj;
25		
26		// for overrideing the default settings
27
28		var btn = $(this),
29			destination = btn.attr("href"),
30			name = btn.attr("data-name"),
31			width= btn.attr("data-width"),
32			height= btn.attr("data-height");
33			
34		settings = {
35			height:600, // sets the height in pixels of the window.
36			width:600, // sets the width in pixels of the window.
37			toolbar:0, // determines whether a toolbar (includes the forward and back buttons) is displayed {1 (YES) or 0 (NO)}.
38			scrollbars:0, // determines whether scrollbars appear on the window {1 (YES) or 0 (NO)}.
39			status:0, // whether a status line appears at the bottom of the window {1 (YES) or 0 (NO)}.
40			resizable:1, // whether the window can be resized {1 (YES) or 0 (NO)}. Can also be overloaded using resizable.
41			left:0, // left position when the window appears.
42			top:0, // top position when the window appears.
43			center:0, // should we center the window? {1 (YES) or 0 (NO)}. overrides top and left
44			createnew:1, // should we create a new window for each occurance {1 (YES) or 0 (NO)}.
45			location:0, // determines whether the address bar is displayed {1 (YES) or 0 (NO)}.
46			menubar:0, // determines whether the menu bar is displayed {1 (YES) or 0 (NO)}.
47			onUnload:null // function to call when the window is closed
48		};
49
50		if(width) {
51			settings.width = width;
52		}
53		if(height) {
54			settings.height = height;
55		}
56
57		// center the window
58		if (settings.center == 1)
59		{
60			settings.top = (screen.height-(settings.height + 110))/2;
61			settings.left = (screen.width-settings.width)/2;
62		}
63		
64		parameters = "location=" + settings.location + ",menubar=" + settings.menubar + ",height=" + settings.height + ",width=" + settings.width + ",toolbar=" + settings.toolbar + ",scrollbars=" + settings.scrollbars  + ",status=" + settings.status + ",resizable=" + settings.resizable + ",left=" + settings.left  + ",screenX=" + settings.left + ",top=" + settings.top  + ",screenY=" + settings.top;
65		/*
66		Main popup opening function
67		 */
68		winObj = window.open(destination, name, parameters);
69
70		
71		if (settings.onUnload) {
72			// Incremental check for window status
73			// Attaching directly to window.onunlaod event causes invoke when document within window is reloaded
74			// (i.e. an inner refresh)
75			unloadInterval = setInterval(function() {
76				if (!winObj || winObj.closed) {
77					clearInterval(unloadInterval);	
78					settings.onUnload.call($(this));
79				}
80			},500);
81		}
82		
83		
84		return false;
85	});
86};
87})(jQuery);

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.