PageSourceSearch

https://wb86.com/zb_users/theme/xxmy/script/custom.js

js wb86.com collected 2026-10-08 17:45:01 UTC 1,519 bytes, 61 lines download raw bytes

1$(document).ready(function() {
2	var s = document.location;
3	$("#divNavBar a").each(function() {
4		if (this.href == s.toString().split("#")[0]) {
5			$(this).addClass("on");
6			return false;
7		}
8	});
9});
10
11
12//重写了common.js里的同名函数
13zbp.plugin.unbind("comment.reply", "system");
14zbp.plugin.on("comment.reply", "xxmy", function(i) {
15	$("#inpRevID").val(i);
16	var frm = $('#divCommentPost'),
17		cancel = $("#cancel-reply"),
18		temp = $('#temp-frm');
19
20
21	var div = document.createElement('div');
22	div.id = 'temp-frm';
23	div.style.display = 'none';
24	frm.before(div);
25
26	$('#AjaxComment' + i).before(frm);
27
28	frm.addClass("reply-frm");
29
30	cancel.show();
31	cancel.click(function() {
32		$("#inpRevID").val(0);
33		var temp = $('#temp-frm'),
34			frm = $('#divCommentPost');
35		if (!temp.length || !frm.length) return;
36		temp.before(frm);
37		temp.remove();
38		$(this).hide();
39		frm.removeClass("reply-frm");
40		return false;
41	});
42	try {
43		$('#txaArticle').focus();
44	} catch (e) {}
45	return false;
46});
47
48//重写GetComments,防止评论框消失
49zbp.plugin.on("comment.get", "xxmy", function(postid, page) {
50	$('span.commentspage').html("Waiting...");
51});
52	zbp.plugin.on("comment.got", "xxmy", function(formData, data, textStatus, jqXhr) {
53		$('#AjaxCommentBegin').nextUntil('#AjaxCommentEnd').remove();
54		$('#AjaxCommentEnd').before(data);
55		$("#cancel-reply").click();
56	});
57
58
59zbp.plugin.on("comment.postsuccess", "主题ID", function () {
60	$("#cancel-reply").click();
61});

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.