PageSourceSearch

https://bookbrahmalitfest.com/wp-content/plugins/popup-more/assets/javascript/YpmObserver.js?ver=7.0

js bookbrahmalitfest.com collected 2026-10-08 12:25:31 UTC 1,494 bytes, 72 lines download raw bytes

1function YpmObserver() {
2
3	this.list = [];
4	this.currentId = 0;
5}
6
7YpmObserver.prototype.init = function () {
8
9	if(typeof YPM_IDS == 'undefined' || !YPM_IDS.length) {
10		return;
11	}
12
13	this.list = YPM_IDS;
14	this.currentId = this.list[0];
15
16	this.openCurrent();
17	this.nextListener();
18};
19
20YpmObserver.prototype.openCurrent = function () {
21
22	this.openPopup(this.currentId);
23};
24
25YpmObserver.prototype.nextListener = function () {
26
27	var that = this;
28	jQuery('#ypmcolorbox').on("ypmPopupClose", function () {
29		that.prepareNextOpen();
30	});
31};
32
33YpmObserver.prototype.prepareNextOpen = function () {
34
35	this.list.shift();
36	this.currentId = this.list[0];
37	this.openCurrent();
38};
39
40YpmObserver.openPopupById = function (popupId, event = 'Onload') {
41	var data = YPM_DATA[popupId];
42
43	var currentPopup = new YpmPopup();
44	currentPopup.setPopupId(popupId);
45	currentPopup.setPopupData(data);
46	currentPopup['Onload']({key2: 0})
47}
48
49YpmObserver.prototype.openPopup = function(popupId) {
50
51	if(typeof YPM_DATA[popupId] == 'undefined') {
52		return;
53	}
54
55	var data = YPM_DATA[popupId];
56	var eventsSettings = data['ypm-events-settings'];
57
58	for (var current in eventsSettings) {
59		var currentEvent = eventsSettings[current];
60		var currentPopup = new YpmPopup();
61		currentPopup.setPopupId(popupId);
62		currentPopup.setPopupData(data);
63		if (currentPopup[currentEvent['key1']]) {
64			currentPopup[currentEvent['key1']](currentEvent);
65		}
66	}
67};
68
69jQuery(document).ready(function () {
70		var obs = new YpmObserver();
71		obs.init();
72});

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.