PageSourceSearch

https://www.b9casino.vip/t/default/js/commonMgr.js?v=1.23.292

js b9casino.vip collected 2026-10-08 08:10:59 UTC 7,053 bytes, 246 lines download raw bytes

1getCCL = function (id) {
2	$.ajax({
3		type: "POST",
4		url: "a/getCCL",
5		dataType: "json",
6	}).success(function (data) {
7		if (data.status == "0") {
8			$("#" + id).html(data.d.return_ccl.all["ccl"]);
9		}
10	});
11};
12loginUser = function (fName, showAgree) {
13	if (mobileView == "m") {
14		show_proccessing("logging");
15	}
16	$.ajax({
17		type: "POST",
18		url: "a/login",
19		data: $("#" + fName).serialize(),
20		dataType: "json",
21	}).success(function (data) {
22		var paths = location.pathname.substring(1).split("/");
23		var m = paths[0].trim().length == 2 && paths[0].trim().toLowerCase() != '4d'? paths[0].trim() + "/" : "";
24		var link = "/" + m;
25
26		if (data.status != "0") {
27			alert(data.msg);
28		} else {
29			if (ui_method == 2) {
30				if (showAgree == "1") {
31					document.location.href = "agree.html";
32				} else {
33					document.location.href = link;
34				}
35			} else {
36				if (showAgree == "1") {
37					showPageContent("agree");
38				} else {
39					showPageContent("index");
40				}
41			}
42		}
43		if (mobileView == "m") {
44			close_popup();
45		}
46	});
47	return false;
48};
49logoutUser = function () {
50	$.ajax({
51		type: "POST",
52		url: "a/logout",
53		dataType: "json",
54	}).success(function (data) {
55		var paths = location.pathname.substring(1).split("/");
56		var m = paths[0].trim().length == 2 && paths[0].trim().toLowerCase() != '4d'? paths[0].trim() + "/" : "";
57		var link = "/" + m;
58
59		agreePage = false;
60		if (ui_method == 2) {
61			document.location.href = link;
62		} else {
63			showPageContent("index");
64		}
65	});
66};
67triggerSave = function (cType, fName) {
68	$.ajax({
69		type: "POST",
70		url: "a/set" + cType,
71		data: $("#" + fName).serialize(),
72		dataType: "json",
73	}).success(function (data) {
74		if (data["d"]["error"] != "") {
75			alert(data["d"]["error"]);
76		} else {
77			if (data.status == "0") {
78				if (data["d"]["page"] == "changePassword") {
79					editLinkage(data["d"]["page"], data["d"]["editid"]);
80				} else {
81					showPopUpContent(cType);
82				}
83			}
84		}
85	});
86};
87showPopUpContent = function (cType, width, topPosition = "") {
88	$.ajax({
89		type: "POST",
90		url: "tp/" + cType,
91		data: { theme: theme, ap: "1" },
92		dataType: "html",
93	}).success(function (data) {
94		// alert(data);
95		show_popup(data, width, topPosition);
96	});
97};
98getAnnouncement = function (id, pop, lang) {
99	$.ajax({
100		type: "POST",
101		url: "a/getAnnouncement?" + lang,
102		data: { lang: lang, pop: pop },
103		dataType: "json",
104	}).success(function (data) {
105		// alert(data.d.announcement);
106		if (data.status == "0") {
107			if (pop == "1") {
108				executeFunctionByName(id, window, data.d.announcement);
109			} else {
110				$("#" + id).html(data.d.announcement);
111			}
112		}
113	});
114};
115executeFunctionByName = function (functionName, context /*, args */) {
116	var args = [].slice.call(arguments).splice(2);
117	var namespaces = functionName.split(".");
118	var func = namespaces.pop();
119	for (var i = 0; i < namespaces.length; i++) {
120		context = context[namespaces[i]];
121	}
122	return context[func].apply(this, args);
123};
124
125//add thousand separator
126numberWithCommas = function (n) {
127	var parts = n.toString().split(".");
128	return parts[0].replace(/\B(?=(\d{3})+(?!\d))/g, ",") + (parts[1] ? "." + parts[1] : "");
129};
130
131//create form and submit
132submitForm = function (action, target, dataArr) {
133	var hiddenField;
134	var form = document.createElement("form");
135	form.setAttribute("method", "post");
136	form.setAttribute("action", action);
137	if (target != "") {
138		form.setAttribute("target", target);
139	}
140	$.each(dataArr, function (key, value) {
141		hiddenField = document.createElement("input");
142		hiddenField.setAttribute("type", "hidden");
143		hiddenField.setAttribute("name", key);
144		hiddenField.setAttribute("value", value);
145		form.appendChild(hiddenField);
146		document.body.appendChild(form);
147	});
148	form.submit();
149};
150getGenericData = function (actionName, postData, callback) {
151	$.ajax({
152		type: "POST",
153		url: "a/" + actionName,
154		data: postData,
155		async: async,
156	}).success(function (data) {
157		if (typeof data == 'object') {
158			data = JSON.stringify(data);
159		}
160		
161		window[callback](data);
162	});
163};
164
165getUnreadMessage = function (mid) {
166	if (mid == undefined) mid = "mailbox";
167	if (loginFlag) {
168		$.ajax({
169			type: "POST",
170			url: "a/getPrivateMessage",
171			data: { action: "unread" },
172			dataType: "json",
173		}).success(function (data) {
174			if (data.status == "0") {
175				unreadCount = data.d.unread;
176				if (unreadCount > 0) {
177					$("#" + mid).html('<div class="mailunread"><a href="myinbox.html" style="color:#ffffff;">' + unreadCount + '<span class="inboxunread">&nbsp;</span></a></div>');
178				} else {
179					$("#" + mid).html('<a href="myinbox.html"><div class="inboxread">&nbsp;</div></a>');
180				}
181			}
182		});
183	}
184};
185checkAjaxStatus = function (ErrMsg) {
186	var urlCheckArray = ["a/makeBDeposit", "a/makePDeposit", "a/makeBDepositV2", "a/makeBDepositV3", "a/makeBDeposit_test"];
187	$(document).ajaxError(function (event, jqxhr, settings, thrownError) {
188		if (jqxhr.status == "403") {
189			if (urlCheckArray.indexOf(settings.url) > -1) {
190				if (window["close_popup"] !== undefined) close_popup();
191				alert(ErrMsg);
192			}
193		}
194	});
195};
196
197_fmg = function (g, postdata, cb) {
198	var id = "miniTokenNo";
199	$e = $("#" + id);
200
201	if (cb == undefined) {
202		cb = function (data) {
203			if (typeof data.d.tickets !== "undefined") {
204				$e.html(data.d.tickets);
205			}
206		};
207	}
208
209	if (postdata == undefined) {
210		postdata = {
211			custom: {
212				no_winner: 1,
213			},
214		};
215	}
216
217	postdata.game = g;
218
219	$.ajax({
220		type: "POST",
221		url: "a/getMinigameInfo",
222		dataType: "json",
223		data: postdata,
224		success: cb,
225	});
226};
227
228function replaceBrokenImages() {
229	// START OF REPLACE BROKEN IMAGES
230	$('img').on('error', function() {
231		if ((this.naturalWidth == 0 || typeof this.naturalWidth == "undefined") && !$(this).data('fail-loaded') && this.complete) {
232			$(this).data('fail-loaded', true);
233			$(this).attr('src', 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkBAMAAACCzIhnAAAAGFBMVEXp7vG6vsHq7/Pe4uW+wsXW2t3Kz9Lj5+qGFwmRAAAA/0lEQVRYw+3Vzw7BQBDH8c0ynCdWz8IbaPoAUh5gI7i2h6bXDcHrq/5Juj3YXw8OZL4uJCYfqzWUkiRJkqT/aT0IGEmOJ+/hghMzHpSGJrQ1e69dFFTy9Ol1N9eQkmcr78wTsw0qmaKid+RNcKRS5jkfRirEbGpGw8qj+mbrt00cqsy6EVuiSvfBiCMHKt3xLXMJKvpWNAi/Gey66PWqQd4MpDRPqL4nI7eBFKXOLVIxoEKcUXvrL0DFctQivMQU6v3AQMX2Rpbo1R81UilTHq14I4tvKXTqdYEUbz9qREljryS8lCyPXn208/erScNrPB7kgD+Ljy8lSZIk6ad7AeNBVtTVOZjgAAAAAElFTkSuQmCC');
234		}
235	});
236	/*
237	setInterval(() => {
238		$('img').each(function () {
239			if ((this.naturalWidth == 0 || typeof this.naturalWidth == "undefined") && !$(this).data('fail-loaded') && this.complete) {
240				$(this).data('fail-loaded', true);
241				$(this).attr('src', 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkBAMAAACCzIhnAAAAGFBMVEXp7vG6vsHq7/Pe4uW+wsXW2t3Kz9Lj5+qGFwmRAAAA/0lEQVRYw+3Vzw7BQBDH8c0ynCdWz8IbaPoAUh5gI7i2h6bXDcHrq/5Juj3YXw8OZL4uJCYfqzWUkiRJkqT/aT0IGEmOJ+/hghMzHpSGJrQ1e69dFFTy9Ol1N9eQkmcr78wTsw0qmaKid+RNcKRS5jkfRirEbGpGw8qj+mbrt00cqsy6EVuiSvfBiCMHKt3xLXMJKvpWNAi/Gey66PWqQd4MpDRPqL4nI7eBFKXOLVIxoEKcUXvrL0DFctQivMQU6v3AQMX2Rpbo1R81UilTHq14I4tvKXTqdYEUbz9qREljryS8lCyPXn208/erScNrPB7kgD+Ljy8lSZIk6ad7AeNBVtTVOZjgAAAAAElFTkSuQmCC');
242			}
243		});
244	}, 500);*/
245	// END OF REPLACE BROKEN IMAGES
246}

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.